payload

package
v0.0.0-...-c8e9c26 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2018 License: LGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const BookkeeperPayloadVersion byte = 0x00
View Source
const (
	MaxVoteKeys = 1024
)

Variables

This section is empty.

Functions

This section is empty.

Types

type BookKeeping

type BookKeeping struct {
	Nonce uint64
}

func (*BookKeeping) Deserialize

func (a *BookKeeping) Deserialize(r io.Reader) error

func (*BookKeeping) Serialize

func (a *BookKeeping) Serialize(w io.Writer) error

type Bookkeeper

type Bookkeeper struct {
	PubKey keypair.PublicKey
	Action BookkeeperAction
	Cert   []byte
	Issuer keypair.PublicKey
}

func (*Bookkeeper) Deserialize

func (self *Bookkeeper) Deserialize(r io.Reader) error

func (*Bookkeeper) Serialize

func (self *Bookkeeper) Serialize(w io.Writer) error

type BookkeeperAction

type BookkeeperAction byte
const (
	BookkeeperAction_ADD BookkeeperAction = 0
	BookkeeperAction_SUB BookkeeperAction = 1
)

type DeployCode

type DeployCode struct {
	Code        *vmtypes.VmCode
	NeedStorage bool
	Name        string
	Version     string
	Author      string
	Email       string
	Description string
}

func (*DeployCode) Deserialize

func (dc *DeployCode) Deserialize(r io.Reader) error

func (*DeployCode) Serialize

func (dc *DeployCode) Serialize(w io.Writer) error

func (*DeployCode) ToArray

func (dc *DeployCode) ToArray() []byte

type InvokeCode

type InvokeCode struct {
	GasLimit common.Fixed64
	Code     vmtypes.VmCode
}

func (*InvokeCode) Deserialize

func (self *InvokeCode) Deserialize(r io.Reader) error

func (*InvokeCode) Serialize

func (self *InvokeCode) Serialize(w io.Writer) error

type Vote

type Vote struct {
	PubKeys []keypair.PublicKey // vote node list

	Account common.Address
}

func (*Vote) Check

func (self *Vote) Check() bool

func (*Vote) Deserialize

func (self *Vote) Deserialize(r io.Reader) error

func (*Vote) Serialize

func (self *Vote) Serialize(w io.Writer) error

Jump to

Keyboard shortcuts

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