Documentation ¶
Index ¶
- Constants
- type BookKeeper
- type BookKeeperAction
- type BookKeeping
- type DataFile
- type DeployCode
- type EcdhAes256
- type EncryptedPayload
- type EncryptedPayloadType
- type InvokeCode
- type IssueAsset
- type LockAsset
- type PayloadEncryptAttr
- type PayloadEncryptType
- type PrivacyPayload
- type Record
- type RegisterAsset
- type TransferAsset
Constants ¶
View Source
const BookKeeperPayloadVersion byte = 0x00
View Source
const BookKeepingPayloadVersion byte = 0x03
View Source
const BookKeepingPayloadVersionBase byte = 0x02
View Source
const DataFilePayloadVersion byte = 0x00
View Source
const IssueAssetPayloadVersion byte = 0x00
View Source
const PrivacyPayloadVersion byte = 0x00
View Source
const RecordPayloadVersion byte = 0x00
View Source
const RegisterPayloadVersion byte = 0x00
View Source
const TransferAssetayloadVersion byte = 0x00
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BookKeeper ¶
type BookKeeper struct { PubKey *crypto.PubKey Action BookKeeperAction Cert []byte Issuer *crypto.PubKey }
func (*BookKeeper) Data ¶
func (bk *BookKeeper) Data(version byte) []byte
func (*BookKeeper) Deserialize ¶
func (self *BookKeeper) Deserialize(r io.Reader, version byte) error
type BookKeeperAction ¶
type BookKeeperAction byte
const ( BookKeeperAction_ADD BookKeeperAction = 0 BookKeeperAction_SUB BookKeeperAction = 1 )
type BookKeeping ¶
type BookKeeping struct {
Nonce uint64
}
func (*BookKeeping) Data ¶
func (b *BookKeeping) Data(version byte) []byte
func (*BookKeeping) Deserialize ¶
func (a *BookKeeping) Deserialize(r io.Reader, version byte) error
type DataFile ¶
func (*DataFile) Deserialize ¶
Deserialize is the implement of SignableData interface.
type DeployCode ¶
type DeployCode struct { Code *code.FunctionCode Params []byte Name string CodeVersion string Author string Email string Description string Language types.LangType ProgramHash common.Uint160 }
func (*DeployCode) Data ¶
func (dc *DeployCode) Data(version byte) []byte
func (*DeployCode) Deserialize ¶
func (dc *DeployCode) Deserialize(r io.Reader, version byte) error
type EcdhAes256 ¶
func (*EcdhAes256) Decrypt ¶
func (ea *EcdhAes256) Decrypt(msg []byte, keys interface{}) ([]byte, error)
func (*EcdhAes256) Deserialize ¶
func (ea *EcdhAes256) Deserialize(r io.Reader) error
type EncryptedPayload ¶
type EncryptedPayload []byte
type EncryptedPayloadType ¶
type EncryptedPayloadType byte
const (
RawPayload EncryptedPayloadType = 0x01
)
type InvokeCode ¶
func (*InvokeCode) Data ¶
func (ic *InvokeCode) Data(version byte) []byte
func (*InvokeCode) Deserialize ¶
func (ic *InvokeCode) Deserialize(r io.Reader, version byte) error
type IssueAsset ¶
type IssueAsset struct { }
func (*IssueAsset) Data ¶
func (a *IssueAsset) Data(version byte) []byte
func (*IssueAsset) Deserialize ¶
func (a *IssueAsset) Deserialize(r io.Reader, version byte) error
type LockAsset ¶
type LockAsset struct { ProgramHash Uint160 AssetID Uint256 Amount Fixed64 UnlockHeight uint32 }
type PayloadEncryptAttr ¶
type PayloadEncryptType ¶
type PayloadEncryptType byte
const (
ECDH_AES256 PayloadEncryptType = 0x01
)
type PrivacyPayload ¶
type PrivacyPayload struct { PayloadType EncryptedPayloadType Payload EncryptedPayload EncryptType PayloadEncryptType EncryptAttr PayloadEncryptAttr }
func (*PrivacyPayload) Data ¶
func (pp *PrivacyPayload) Data(version byte) []byte
func (*PrivacyPayload) Deserialize ¶
func (pp *PrivacyPayload) Deserialize(r io.Reader, version byte) error
type Record ¶
func (*Record) Deserialize ¶
Deserialize is the implement of SignableData interface.
type RegisterAsset ¶
type RegisterAsset struct { Asset *asset.Asset Amount common.Fixed64 Issuer *crypto.PubKey Controller common.Uint160 }
func (*RegisterAsset) Data ¶
func (a *RegisterAsset) Data(version byte) []byte
func (*RegisterAsset) Deserialize ¶
func (a *RegisterAsset) 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
Click to show internal directories.
Click to hide internal directories.