Documentation ¶
Overview ¶
Package codec_test is a test package for codec.
Index ¶
- type Transaction
- func (e *Transaction) Decode(data []byte) error
- func (e *Transaction) DecodeFromReader(reader *codec.Reader) error
- func (e *Transaction) DecodeStrict(data []byte) error
- func (e *Transaction) DecodeStrictFromReader(reader *codec.Reader) error
- func (e *Transaction) Encode() []byte
- func (e *Transaction) MustDecode(data []byte)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Transaction ¶
type Transaction struct { ID codec.Hex `json:"id"` Module string `json:"module" fieldNumber:"1"` Command string `json:"commandID" fieldNumber:"2"` Nonce uint64 `json:"nonce,string" fieldNumber:"3"` Fee uint64 `json:"fee,string" fieldNumber:"4"` SenderPublicKey codec.Hex `json:"senderPublicKey" fieldNumber:"5"` Params codec.Hex `json:"params" fieldNumber:"6"` Signatures []codec.Hex `json:"signatures" fieldNumber:"7"` }
func (*Transaction) Decode ¶
func (e *Transaction) Decode(data []byte) error
func (*Transaction) DecodeFromReader ¶
func (e *Transaction) DecodeFromReader(reader *codec.Reader) error
func (*Transaction) DecodeStrict ¶
func (e *Transaction) DecodeStrict(data []byte) error
func (*Transaction) DecodeStrictFromReader ¶
func (e *Transaction) DecodeStrictFromReader(reader *codec.Reader) error
func (*Transaction) Encode ¶
func (e *Transaction) Encode() []byte
func (*Transaction) MustDecode ¶
func (e *Transaction) MustDecode(data []byte)
Click to show internal directories.
Click to hide internal directories.