txsigner

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2020 License: GPL-3.0 Imports: 9 Imported by: 0

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

Jump to

Keyboard shortcuts

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