Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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) Dumps ¶
func (t *Transaction) Dumps() ([]byte, error)
func (*Transaction) GetPubKey ¶
func (t *Transaction) GetPubKey() *ecdsa.PublicKey
func (*Transaction) Sign ¶
func (t *Transaction) Sign(priv *ecdsa.PrivateKey) ([]byte, error)
Sign 签名
Click to show internal directories.
Click to hide internal directories.