Documentation ¶
Index ¶
- func ComputeID(preBlockHash, txnHash Uint256, randomBeacon []byte) []byte
- type Block
- func (b *Block) FromMsgBlock(msgBlock *pb.Block)
- func (b *Block) FromTrimmedData(r io.Reader) error
- func (b *Block) GetInfo() ([]byte, error)
- func (b *Block) GetMessage() []byte
- func (b *Block) GetProgramHashes() ([]Uint160, error)
- func (b *Block) GetPrograms() []*pb.Program
- func (b *Block) GetSigner() ([]byte, []byte, error)
- func (b *Block) GetTxsSize() int
- func (b *Block) Hash() Uint256
- func (b *Block) Marshal() (data []byte, err error)
- func (b *Block) RebuildMerkleRoot() error
- func (b *Block) SerializeUnsigned(w io.Writer) error
- func (b *Block) SetPrograms(prog []*pb.Program)
- func (b *Block) ToArray() []byte
- func (b *Block) ToMsgBlock() *pb.Block
- func (b *Block) Trim(w io.Writer) error
- func (b *Block) Unmarshal(buf []byte) error
- func (b *Block) Verify() error
- type Header
- func (h *Header) DeserializeUnsigned(r io.Reader) error
- func (h *Header) GetInfo() ([]byte, error)
- func (h *Header) GetMessage() []byte
- func (h *Header) GetProgramHashes() ([]Uint160, error)
- func (h *Header) GetPrograms() []*pb.Program
- func (h *Header) Hash() Uint256
- func (h *Header) Marshal() (buf []byte, err error)
- func (h *Header) SerializeUnsigned(w io.Writer) error
- func (h *Header) SetPrograms(programs []*pb.Program)
- func (h *Header) ToArray() []byte
- func (h *Header) Unmarshal(buf []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Block ¶
type Block struct { Header *Header Transactions []*transaction.Transaction }
func GenesisBlockInit ¶
func (*Block) FromMsgBlock ¶
func (*Block) GetMessage ¶
func (*Block) GetProgramHashes ¶
func (*Block) GetPrograms ¶
func (*Block) GetTxsSize ¶
func (*Block) RebuildMerkleRoot ¶
func (*Block) SetPrograms ¶
func (*Block) ToMsgBlock ¶
type Header ¶
func (*Header) GetMessage ¶
func (*Header) GetProgramHashes ¶
func (*Header) GetPrograms ¶
func (*Header) SerializeUnsigned ¶
Serialize the blockheader data without program
func (*Header) SetPrograms ¶
Click to show internal directories.
Click to hide internal directories.