Documentation ¶
Index ¶
- func CalculateTransactionDataHash(txData *bcostars.TransactionData) (string, error)
- func CreateSignedTransaction(privateKey string, groupId string, chainId string, to string, dataHex string, ...) (txHash string, txHex string, err error)
- func CreateTransaction(from string, txData *bcostars.TransactionData, txDataHash string, ...) (*bcostars.Transaction, error)
- func CreateTransactionData(groupId string, chainId string, to string, dataHex string, abiJson string, ...) (*bcostars.TransactionData, error)
- func DecodeTransactionDataFromHex(txDataHex string) (*bcostars.TransactionData, error)
- func DecodeTransactionFromHex(txHex string) (*bcostars.Transaction, error)
- func EncodeTransaction(tx *bcostars.Transaction) (string, error)
- func EncodeTransactionDataToHex(tx *bcostars.TransactionData) (string, error)
- func GetBlockLimit(groupId string) (int64, error)
- func HexByte2Int8(dataHex []byte) []int8
- func Int82Byte(data []int8) []byte
- func Nonce() string
- func ParseKeyPairFromPrivateKey(privateKey string) (*ecdsa.PrivateKey, error)
- func PrivateKeyToAddress(privateKey string) (string, error)
- func SignTransactionDataHash(privateKey string, txDataHash string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CalculateTransactionDataHash ¶
func CalculateTransactionDataHash(txData *bcostars.TransactionData) (string, error)
func CreateSignedTransaction ¶
func CreateTransaction ¶
func CreateTransaction(from string, txData *bcostars.TransactionData, txDataHash string, signedTxDataHash string, attribute int32) (*bcostars.Transaction, error)
func CreateTransactionData ¶
func CreateTransactionData(groupId string, chainId string, to string, dataHex string, abiJson string, blockLimit int64) (*bcostars.TransactionData, error)
1
func DecodeTransactionDataFromHex ¶
func DecodeTransactionDataFromHex(txDataHex string) (*bcostars.TransactionData, error)
func DecodeTransactionFromHex ¶
func DecodeTransactionFromHex(txHex string) (*bcostars.Transaction, error)
func EncodeTransaction ¶
func EncodeTransaction(tx *bcostars.Transaction) (string, error)
func EncodeTransactionDataToHex ¶
func EncodeTransactionDataToHex(tx *bcostars.TransactionData) (string, error)
func HexByte2Int8 ¶
func ParseKeyPairFromPrivateKey ¶
func ParseKeyPairFromPrivateKey(privateKey string) (*ecdsa.PrivateKey, error)
func PrivateKeyToAddress ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.