types

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const MaxSignDataSize = 1000
View Source
const RegisterIdentification = 0x09
View Source
const RegisterIdentificationVersion = 0x00

Variables

This section is empty.

Functions

func IsRegisterIdentificationTx

func IsRegisterIdentificationTx(tx *types.Transaction) bool

Types

type PayloadRegisterIdentification

type PayloadRegisterIdentification struct {
	ID       string
	Sign     []byte
	Contents []RegisterIdentificationContent
}

func (*PayloadRegisterIdentification) Data

func (p *PayloadRegisterIdentification) Data(version byte) []byte

func (*PayloadRegisterIdentification) Deserialize

func (p *PayloadRegisterIdentification) Deserialize(r io.Reader, version byte) error

func (*PayloadRegisterIdentification) GetData

func (p *PayloadRegisterIdentification) GetData() []byte

func (*PayloadRegisterIdentification) Serialize

func (p *PayloadRegisterIdentification) Serialize(w io.Writer, version byte) error

type RegisterIdentificationContent

type RegisterIdentificationContent struct {
	Path   string
	Values []RegisterIdentificationValue
}

func (*RegisterIdentificationContent) Deserialize

func (a *RegisterIdentificationContent) Deserialize(r io.Reader, version byte) error

func (*RegisterIdentificationContent) Serialize

func (a *RegisterIdentificationContent) Serialize(w io.Writer, version byte) error

type RegisterIdentificationValue

type RegisterIdentificationValue struct {
	DataHash common.Uint256
	Proof    string
	Info     string
}

func (*RegisterIdentificationValue) Deserialize

func (a *RegisterIdentificationValue) Deserialize(r io.Reader, version byte) error

func (*RegisterIdentificationValue) Serialize

func (a *RegisterIdentificationValue) Serialize(w io.Writer, version byte) error

Jump to

Keyboard shortcuts

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