Documentation ¶
Index ¶
- func GetAddress(publicKey *btcec.PublicKey) string
- func GetAddressByPublicKey(pubKey string) (string, error)
- func GetAddressHash(address string) ([]byte, error)
- func GetNetWork() []byte
- func ParseTxStr(txStr string) (pb.Transaction, error)
- func Sign(data string, privateKey *btcec.PrivateKey) (string, error)
- func SignEnd(txStr string, txSignStr string) (string, error)
- func SignStart(txStr string) (string, error)
- func ValidateAddress(address string) bool
- type Transaction
- type TronTokenTransaction
- type TronTransaction
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAddress ¶
func GetAddress(publicKey *btcec.PublicKey) string
func GetAddressByPublicKey ¶
func GetAddressHash ¶
func GetNetWork ¶
func GetNetWork() []byte
func ParseTxStr ¶
func ParseTxStr(txStr string) (pb.Transaction, error)
func ValidateAddress ¶
Types ¶
type Transaction ¶
type TronTokenTransaction ¶
type TronTokenTransaction struct { TronTransaction AssetName string `json:"asset"` ContractAddress string `json:"contractAddress"` FeeLimit int64 `json:"feelimit"` Trc string `json:"trc"` }
Click to show internal directories.
Click to hide internal directories.