Documentation
¶
Index ¶
Constants ¶
View Source
const BookkeeperPayloadVersion byte = 0x00
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bookkeeper ¶
type Bookkeeper struct {
PubKey keypair.PublicKey
Action BookkeeperAction
Cert []byte
Issuer keypair.PublicKey
}
Bookkeeper is an implementation of transaction payload for consensus bookkeeper list modification
func (*Bookkeeper) Deserialize ¶
func (self *Bookkeeper) Deserialize(r io.Reader) error
Deserialize deserialize Bookkeeper from io.Reader
type BookkeeperAction ¶
type BookkeeperAction byte
const ( BookkeeperAction_ADD BookkeeperAction = 0 BookkeeperAction_SUB BookkeeperAction = 1 )
type DeployCode ¶
type DeployCode struct {
Code []byte
NeedStorage bool
Name string
Version string
Author string
Email string
Description string
}
DeployCode is an implementation of transaction payload for deploy smartcontract
func (*DeployCode) Deserialize ¶
func (dc *DeployCode) Deserialize(r io.Reader) error
func (*DeployCode) ToArray ¶
func (dc *DeployCode) ToArray() []byte
type InvokeCode ¶
type InvokeCode struct {
Code []byte
}
InvokeCode is an implementation of transaction payload for invoke smartcontract
func (*InvokeCode) Deserialize ¶
func (self *InvokeCode) Deserialize(r io.Reader) error
Click to show internal directories.
Click to hide internal directories.