check

package
v1.1.0-rc3 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2020 License: MIT Imports: 9 Imported by: 13

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidSig = errors.New("invalid transaction v, r, s values")
)

Functions

This section is empty.

Types

type Check

type Check struct {
	Nonce    []byte
	ChainID  types.ChainID
	DueBlock uint64
	Coin     types.CoinSymbol
	Value    *big.Int
	GasCoin  types.CoinSymbol
	Lock     *big.Int
	V        *big.Int
	R        *big.Int
	S        *big.Int
}

func DecodeFromBytes

func DecodeFromBytes(buf []byte) (*Check, error)

func (*Check) Hash

func (check *Check) Hash() types.Hash

func (*Check) HashWithoutLock added in v0.5.0

func (check *Check) HashWithoutLock() types.Hash

func (*Check) LockPubKey

func (check *Check) LockPubKey() ([]byte, error)

func (*Check) Sender

func (check *Check) Sender() (types.Address, error)

func (*Check) SetSignature added in v0.5.0

func (check *Check) SetSignature(sig []byte)

func (*Check) Sign added in v0.5.0

func (check *Check) Sign(prv *ecdsa.PrivateKey) error

func (*Check) String

func (check *Check) String() string

Jump to

Keyboard shortcuts

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