Documentation ¶
Index ¶
- func ComputeID(preBlockHash, txnHash common.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() ([]common.Uint160, error)
- func (b *Block) GetPrograms() []*pb.Program
- func (b *Block) GetTxsSize() int
- func (b *Block) Hash() common.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() ([]common.Uint160, error)
- func (h *Header) GetPrograms() []*pb.Program
- func (h *Header) GetSigner() ([]byte, []byte, error)
- func (h *Header) Hash() common.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
- func (h *Header) VerifySignature() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Block ¶
type Block struct { Header *Header Transactions []*transaction.Transaction IsTxnsChecked bool }
func GenesisBlockInit ¶
func (*Block) FromMsgBlock ¶
func (*Block) GetMessage ¶
func (*Block) GetPrograms ¶
func (*Block) GetTxsSize ¶
func (*Block) RebuildMerkleRoot ¶
func (*Block) SetPrograms ¶
func (*Block) ToMsgBlock ¶
type Header ¶
func (*Header) GetMessage ¶
func (*Header) GetPrograms ¶
func (*Header) SerializeUnsigned ¶
Serialize the blockheader data without program
func (*Header) SetPrograms ¶
func (*Header) VerifySignature ¶
Click to show internal directories.
Click to hide internal directories.