Documentation ¶
Index ¶
Constants ¶
View Source
const CoinBasePayloadVersion byte = 0x04
View Source
const DeployCodePayloadVersion byte = 0x00
View Source
const RecordPayloadVersion byte = 0x00
View Source
const RegisterPayloadVersion byte = 0x00
View Source
const SideChainPowPayloadVersion byte = 0x00
View Source
const TransferAssetayloadVersion byte = 0x00
View Source
const WithdrawFromSideChainPayloadVersion byte = 0x00
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeployCode ¶
type DeployCode struct { Code *FunctionCode Name string CodeVersion string Author string Email string Description string }
func (*DeployCode) Data ¶
func (dc *DeployCode) Data(version byte) []byte
func (*DeployCode) Deserialize ¶
func (dc *DeployCode) Deserialize(r io.Reader, version byte) error
type Record ¶
func (*Record) Deserialize ¶
Deserialize is the implement of SignableData interface.
type RegisterAsset ¶
func (*RegisterAsset) Data ¶
func (a *RegisterAsset) Data(version byte) []byte
func (*RegisterAsset) Deserialize ¶
func (a *RegisterAsset) Deserialize(r io.Reader, version byte) error
type SideChainPow ¶ added in v0.0.3
type SideChainPow struct { SideBlockHash Uint256 SideGenesisHash Uint256 BlockHeight uint32 SignedData []byte }
func (*SideChainPow) Data ¶ added in v0.0.3
func (a *SideChainPow) Data(version byte) []byte
func (*SideChainPow) Deserialize ¶ added in v0.0.3
func (a *SideChainPow) Deserialize(r io.Reader, version byte) error
type TransferAsset ¶
type TransferAsset struct { }
func (*TransferAsset) Data ¶
func (a *TransferAsset) Data(version byte) []byte
func (*TransferAsset) Deserialize ¶
func (a *TransferAsset) Deserialize(r io.Reader, version byte) error
type TransferCrossChainAsset ¶ added in v0.0.3
type TransferCrossChainAsset struct { CrossChainAddresses []string OutputIndexes []uint64 CrossChainAmounts []common.Fixed64 }
func (*TransferCrossChainAsset) Data ¶ added in v0.0.3
func (a *TransferCrossChainAsset) Data(version byte) []byte
func (*TransferCrossChainAsset) Deserialize ¶ added in v0.0.3
func (a *TransferCrossChainAsset) Deserialize(r io.Reader, version byte) error
type WithdrawFromSideChain ¶ added in v0.0.3
type WithdrawFromSideChain struct { BlockHeight uint32 GenesisBlockAddress string SideChainTransactionHashes []common.Uint256 }
func (*WithdrawFromSideChain) Data ¶ added in v0.0.3
func (t *WithdrawFromSideChain) Data(version byte) []byte
func (*WithdrawFromSideChain) Deserialize ¶ added in v0.0.3
func (t *WithdrawFromSideChain) Deserialize(r io.Reader, version byte) error
Click to show internal directories.
Click to hide internal directories.