txsigner

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2020 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Default = &TransactionSigner{}

Functions

This section is empty.

Types

type SigPub

type SigPub struct {
	Signature []byte
	Pubkey    []byte
}

type TransactionSigner

type TransactionSigner struct {
}

func (*TransactionSigner) SignTransactionHash

func (singer *TransactionSigner) SignTransactionHash(message []byte, privateKey []byte, eccType uint32) ([]byte, error)

SignTransactionHash 交易哈希签名算法 required

func (*TransactionSigner) VerifyAndCombineTransaction

func (singer *TransactionSigner) VerifyAndCombineTransaction(emptyTrans string, sigPub []SigPub) (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