Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Default = &TransactionSigner{}
Functions ¶
This section is empty.
Types ¶
type Transaction ¶
type Transaction struct {
*rpc.Transaction
SenderPublicKey string `json:"senderPublicKey"`
}
func (*Transaction) GenerateHash ¶
func (tx *Transaction) GenerateHash(skipSignature bool) (hash []byte)
func (*Transaction) GetID ¶
func (tx *Transaction) GetID() string
type TransactionSigner ¶
type TransactionSigner struct {
}
func (*TransactionSigner) SignTransactionHash ¶
func (singer *TransactionSigner) SignTransactionHash(msg []byte, privateKey []byte, eccType uint32) ([]byte, error)
SignTransactionHash 交易哈希签名算法 required
func (*TransactionSigner) VerifyAndCombineTransaction ¶
func (singer *TransactionSigner) VerifyAndCombineTransaction(emptyTrans string, message, signature, publickKey []byte) (bool, string, error)
VerifyAndCombineTransaction verify signature required
Click to show internal directories.
Click to hide internal directories.