types

package
v0.0.0-...-63f9e25 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2018 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Address

type Address = cmn.HexBytes

Address in go-crypto style

type Map

type Map map[string]interface{}

func (Map) String

func (m Map) String() string

type Transaction

type Transaction struct {
	Signature string `json:"sign,omitempty"`
	Data      string `json:"data,omitempty"`
	Event     string `json:"event,omitempty"`
	Timestamp int64  `json:"time,omitempty"`
	// contains filtered or unexported fields
}

func DecodeTx

func DecodeTx(bs []byte) (*Transaction, error)

func NewTransaction

func NewTransaction() *Transaction

func (*Transaction) Decode

func (t *Transaction) Decode(bs []byte) error

FromBytes 解析Transaction

func (*Transaction) Dumps

func (t *Transaction) Dumps() ([]byte, error)

func (*Transaction) GetPubKey

func (t *Transaction) GetPubKey() *ecdsa.PublicKey

func (*Transaction) Hash

func (t *Transaction) Hash() ([]byte, error)

Hash tx hash

func (*Transaction) Sign

func (t *Transaction) Sign(priv *ecdsa.PrivateKey) ([]byte, error)

Sign 签名

func (*Transaction) VerifySign

func (t *Transaction) VerifySign() error

VerifySign 签名验证

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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