Documentation ¶
Index ¶
- func EthSignature(prikey []byte, hash []byte) ([]byte, uint16)
- func GetTxSigner(symbol string) openwallet.TransactionSigner
- func IcxSignature(prikey []byte, hash []byte) ([]byte, uint16)
- func NasSignature(prikey []byte, hash []byte) ([]byte, uint16)
- func RegTxSigner(name string, manager openwallet.TransactionSigner, config ...config.Configer)
- func SignTxHash(symbol string, msg []byte, privateKey []byte, eccType uint32) ([]byte, error)
- func TronSignature(prikey []byte, hash []byte) ([]byte, uint16)
- func VSYSSignature(prikey, msg []byte) ([]byte, uint16)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EthSignature ¶
@function:ETH signature @paramter[in]prikey pointer to private key @paramter[in]hash pointer to the hash of message(Transaction txt) @parameter[out]the first part is signature(r||s||v,total 65 byte); the second part
func GetTxSigner ¶ added in v1.1.13
func GetTxSigner(symbol string) openwallet.TransactionSigner
GetTxSigner 根据币种类型获取已注册的交易签名工具
func IcxSignature ¶
@function:ICX signature @paramter[in]prikey pointer to private key @paramter[in]hash pointer to the hash of message(Transaction txt) @parameter[out]the first part is signature(r||s||v,total 65 byte); the second part
func NasSignature ¶
@function:NAS signature @paramter[in]prikey pointer to private key @paramter[in]hash pointer to the hash of message(Transaction txt) @parameter[out]the first part is signature(r||s||v,total 65 byte); the second part
func RegTxSigner ¶ added in v1.1.13
func RegTxSigner(name string, manager openwallet.TransactionSigner, config ...config.Configer)
RegTxSigner 注册交易签名工具 @param name 资产别名 @param manager 交易签名工具 @param config 加载配置
func SignTxHash ¶
signTxHash 签名交易单哈希
func TronSignature ¶
@function:Tron signature(ECDSA&&secp256k1) @paramter[in]prikey pointer to private key @paramter[in]hash pointer to the hash of message(Transaction txt) @parameter[out]the first part is signature(r||s||v,total 65 byte); the second part
func VSYSSignature ¶
Types ¶
This section is empty.