Documentation ¶
Overview ¶
* Copyright (C) 2018 The ZeepinChain Authors * This file is part of The ZeepinChain library. * * The ZeepinChain is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * The ZeepinChain is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with The ZeepinChain. If not, see <http://www.gnu.org/licenses/>. * This file is part of The ZeepinChain library.
Index ¶
Constants ¶
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) Deserialization ¶
func (dc *DeployCode) Deserialization(source *common.ZeroCopySource) error
note: DeployCode.Code has data reference of param source
func (*DeployCode) Deserialize ¶
func (dc *DeployCode) Deserialize(r io.Reader) error
func (*DeployCode) Serialization ¶
func (dc *DeployCode) Serialization(sink *common.ZeroCopySink) 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) Deserialization ¶
func (self *InvokeCode) Deserialization(source *common.ZeroCopySource) error
func (*InvokeCode) Deserialize ¶
func (self *InvokeCode) Deserialize(r io.Reader) error
func (*InvokeCode) Serialization ¶
func (self *InvokeCode) Serialization(sink *common.ZeroCopySink) error