Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StateBlock ¶
type StateBlock struct { Type string `json:"type" mapstructure:"type"` Hash string `json:"hash" mapstructure:"hash"` Account string `json:"account" mapstructure:"account"` Previous string `json:"previous" mapstructure:"previous"` Representative string `json:"representative" mapstructure:"representative"` Balance string `json:"balance" mapstructure:"balance"` Link string `json:"link" mapstructure:"link"` LinkAsAccount string `json:"link_as_account,omitempty" mapstructure:"link_as_account,omitempty"` Work string `json:"work" mapstructure:"work"` Signature string `json:"signature" mapstructure:"signature"` Banano bool `json:"-"` }
StateBlock is a block from the nano protocol
func (*StateBlock) Sign ¶
func (b *StateBlock) Sign(privateKey ed25519.PrivateKey) error
Click to show internal directories.
Click to hide internal directories.