Documentation
¶
Index ¶
- Constants
- func CreateNewAccountTx(publicKeyHex, payer, referenceBlockIDHex string, ...) *core.Transaction
- func CreateTransferFlowTx(amount float64, toAddr, payer, referenceBlockIDHex string, ...) *core.Transaction
- func CreateTx(script, payer, referenceBlockIDHex string, args []string, ...) *core.Transaction
- func DerivePublicKeyFromPrivate(privateKeyHex string) (string, error)
- func DerivePublicKeyFromPrivateBigInt(privateKeyHex string) (string, error)
- func DerivePublicKeyFromPrivateBigIntRaw(privateKeyHex string) (string, error)
- func GenerateKeyPair() (privKey, pubKey string)
- func SignTx(signerAddr, privKeyHex string, tx *core.Transaction) error
- func ValidateAddress(address string) bool
Constants ¶
View Source
const DefaultAccountIndex = 0
Variables ¶
This section is empty.
Functions ¶
func CreateNewAccountTx ¶
func CreateNewAccountTx(publicKeyHex, payer, referenceBlockIDHex string, payerSequenceNumber, gasLimit uint64) *core.Transaction
func CreateTransferFlowTx ¶
func CreateTransferFlowTx(amount float64, toAddr, payer, referenceBlockIDHex string, payerSequenceNumber, gasLimit uint64) *core.Transaction
func CreateTx ¶
func CreateTx(script, payer, referenceBlockIDHex string, args []string, payerSequenceNumber, gasLimit uint64) *core.Transaction
func DerivePublicKeyFromPrivate ¶
DerivePublicKeyFromPrivate 根据私钥推导公钥(Flow格式)
func DerivePublicKeyFromPrivateBigInt ¶
DerivePublicKeyFromPrivateBigInt 使用大整数操作的替代实现
func DerivePublicKeyFromPrivateBigIntRaw ¶
DerivePublicKeyFromPrivateBigIntRaw 使用大整数操作推导公钥(去掉0x04前缀)
func GenerateKeyPair ¶
func GenerateKeyPair() (privKey, pubKey string)
func ValidateAddress ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.