Versions in this module Expand all Collapse all v0 v0.7.2 Apr 16, 2020 v0.7.1 Apr 9, 2020 Changes in this version + const MAX_TX_SIZE + func AddressFromBookkeepers(bookkeepers []keypair.PublicKey) (common.Address, error) + func AddressFromMultiPubKeys(pubkeys []keypair.PublicKey, m int) (common.Address, error) + func AddressFromPubKey(pubkey keypair.PublicKey) common.Address + func IsValidAttributeType(usage TransactionAttributeUsage) bool + type Block struct + Header *Header + Transactions []*Transaction + func BlockFromRawBytes(raw []byte) (*Block, error) + func (b *Block) Hash() common.Uint256 + func (b *Block) RebuildMerkleRoot() + func (b *Block) Serialization(sink *common.ZeroCopySink) + func (b *Block) ToArray() []byte + func (b *Block) Type() common.InventoryType + func (self *Block) Deserialization(source *common.ZeroCopySource) error + type Header struct + BlockRoot common.Uint256 + Bookkeepers []keypair.PublicKey + ConsensusData uint64 + ConsensusPayload []byte + Height uint32 + NextBookkeeper common.Address + PrevBlockHash common.Uint256 + SigData [][]byte + Timestamp uint32 + TransactionsRoot common.Uint256 + Version uint32 + func HeaderFromRawBytes(raw []byte) (*Header, error) + func (bd *Header) Deserialization(source *common.ZeroCopySource) error + func (bd *Header) GetMessage() []byte + func (bd *Header) Hash() common.Uint256 + func (bd *Header) Serialization(sink *common.ZeroCopySink) + func (bd *Header) ToArray() []byte + func (hd *Header) GetRawHeader() *RawHeader + type MutableTransaction struct + GasLimit uint64 + GasPrice uint64 + Nonce uint32 + Payer common.Address + Payload Payload + Sigs []Sig + TxType TransactionType + Version byte + func (self *MutableTransaction) GetSignatureAddresses() []common.Address + func (self *MutableTransaction) Hash() common.Uint256 + func (self *MutableTransaction) IntoImmutable() (*Transaction, error) + type Payload interface + Deserialization func(source *common.ZeroCopySource) error + Serialization func(sink *common.ZeroCopySink) + type RawHeader struct + Height uint32 + Payload []byte + func (self *RawHeader) Deserialization(source *common.ZeroCopySource) error + func (self *RawHeader) Serialization(sink *common.ZeroCopySink) + type RawSig struct + Invoke []byte + Verify []byte + func (self *RawSig) Deserialization(source *common.ZeroCopySource) error + func (self *RawSig) GetSig() (Sig, error) + func (self *RawSig) Serialization(sink *common.ZeroCopySink) error + type Sig struct + M uint16 + PubKeys []keypair.PublicKey + SigData [][]byte + func (self *Sig) GetRawSig() (*RawSig, error) + func (self *Sig) Serialization(sink *common.ZeroCopySink) error + type SmartCodeEvent struct + Action string + Error int64 + Result interface{} + TxHash common.Uint256 + type Transaction struct + GasLimit uint64 + GasPrice uint64 + Nonce uint32 + Payer common.Address + Payload Payload + Raw []byte + SignedAddr []common.Address + Sigs []RawSig + TxType TransactionType + Version byte + func TransactionFromRawBytes(raw []byte) (*Transaction, error) + func (self *Transaction) GetSignatureAddresses() ([]common.Address, error) + func (tx *Transaction) Deserialization(source *common.ZeroCopySource) error + func (tx *Transaction) Hash() common.Uint256 + func (tx *Transaction) IntoMutable() (*MutableTransaction, error) + func (tx *Transaction) Serialization(sink *common.ZeroCopySink) + func (tx *Transaction) ToArray() []byte + func (tx *Transaction) Type() common.InventoryType + func (tx *Transaction) Verify() error + type TransactionAttributeUsage byte + const Description + const DescriptionUrl + const Nonce + const Script + type TransactionType byte + const Bookkeeper + const Deploy + const InvokeNeo + const InvokeWasm + type TxAttribute struct + Data []byte + Size uint32 + Usage TransactionAttributeUsage + func NewTxAttribute(u TransactionAttributeUsage, d []byte) TxAttribute + func (tx *TxAttribute) Deserialization(source *common.ZeroCopySource) error + func (tx *TxAttribute) Serialization(sink *common.ZeroCopySink) error + func (tx *TxAttribute) ToArray() []byte + func (u *TxAttribute) GetSize() uint32