signatureSet

package
v1.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 20, 2019 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EthSignature

func EthSignature(prikey []byte, hash []byte) ([]byte, uint16)

@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 IcxSignature

func IcxSignature(prikey []byte, hash []byte) ([]byte, uint16)

@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

func NasSignature(prikey []byte, hash []byte) ([]byte, uint16)

@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 SignTxHash

func SignTxHash(symbol string, msg []byte, privateKey []byte, eccType uint32) ([]byte, error)

signTxHash 签名交易单哈希

func TronSignature

func TronSignature(prikey []byte, hash []byte) ([]byte, uint16)

@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

func VSYSSignature(prikey, msg []byte) ([]byte, uint16)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL