Documentation ¶
Index ¶
- Variables
- func DecodePublicKey(pubKey string) (*secp256k1.PublicKey, error)
- func GetPublicKeyString(pubKey *secp256k1.PublicKey) *string
- func GphBase58CheckDecode(input string) ([]byte, [1]byte, error)
- func SignDigest(digest []byte, wif *string) ([]byte, error)
- type HiveRpcNode
- func (h *HiveRpcNode) BroadcastJson(reqAuth []string, reqPostAuth []string, id string, cj string, wif *string) (string, error)
- func (h *HiveRpcNode) GetBlockRange(startBlock int, count int) ([]json.RawMessage, error)
- func (h *HiveRpcNode) GetBlockRangeFast(startBlock int, count int) ([][]byte, error)
- func (h *HiveRpcNode) GetDynamicGlobalProps() ([]byte, error)
- func (h *HiveRpcNode) GetTransaction(txId string, includeReversible bool) ([]byte, error)
- func (h *HiveRpcNode) VotePost(voter string, author string, permlink string, weight int, wif *string) (string, error)
- type KeyPair
- type TransactionQueryParams
Constants ¶
This section is empty.
Variables ¶
View Source
var PublicKeyPrefix = "STM"
Functions ¶
func DecodePublicKey ¶
Decodes a base58 Hive public key to secp256k1 public key
func GetPublicKeyString ¶
func GetPublicKeyString(pubKey *secp256k1.PublicKey) *string
Types ¶
type HiveRpcNode ¶
type HiveRpcNode struct { MaxConn int MaxBatch int NoBroadcast bool // contains filtered or unexported fields }
func NewHiveRpc ¶
func NewHiveRpc(addr string) *HiveRpcNode
func NewHiveRpcWithOpts ¶
func NewHiveRpcWithOpts(addr string, maxConn int, maxBatch int) *HiveRpcNode
func (*HiveRpcNode) BroadcastJson ¶
func (*HiveRpcNode) GetBlockRange ¶
func (h *HiveRpcNode) GetBlockRange(startBlock int, count int) ([]json.RawMessage, error)
func (*HiveRpcNode) GetBlockRangeFast ¶
func (h *HiveRpcNode) GetBlockRangeFast(startBlock int, count int) ([][]byte, error)
func (*HiveRpcNode) GetDynamicGlobalProps ¶
func (h *HiveRpcNode) GetDynamicGlobalProps() ([]byte, error)
func (*HiveRpcNode) GetTransaction ¶
func (h *HiveRpcNode) GetTransaction(txId string, includeReversible bool) ([]byte, error)
type KeyPair ¶
type KeyPair struct { PrivateKey *secp256k1.PrivateKey PublicKey *secp256k1.PublicKey }
func KeyPairFromWif ¶
Gets a KeyPair from a given WIF String
func (*KeyPair) GetPublicKeyString ¶
type TransactionQueryParams ¶
Click to show internal directories.
Click to hide internal directories.