Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Default = &TransactionSigner{}
Functions ¶
func RefBlockNum ¶
func RefBlockPrefix ¶
func SignCanonical ¶
Types ¶
type SignedTransaction ¶
type SignedTransaction struct {
*types.Transaction
}
func NewSignedTransaction ¶
func NewSignedTransaction(tx *types.Transaction) *SignedTransaction
func (*SignedTransaction) Digest ¶
func (tx *SignedTransaction) Digest(chain string) ([]byte, error)
func (*SignedTransaction) ID ¶
func (tx *SignedTransaction) ID() (string, error)
func (*SignedTransaction) Serialize ¶
func (tx *SignedTransaction) Serialize() ([]byte, error)
type TransactionSigner ¶
type TransactionSigner struct {
}
func (*TransactionSigner) SignTransactionHash ¶
func (singer *TransactionSigner) SignTransactionHash(msg []byte, privateKey []byte, eccType uint32) ([]byte, error)
SignTransactionHash 交易哈希签名算法 required
func (*TransactionSigner) VerifyAndCombineSignature ¶
func (singer *TransactionSigner) VerifyAndCombineSignature(msg, publicKey, signature []byte) (bool, []byte, error)
required
Click to show internal directories.
Click to hide internal directories.