# Functions
DeserializeBlockStoresPb decode byte stream into BlockStores pb message.
DeserializeSystemLogPb parse the byte stream into TransactionLogs Pb message.
GenesisBlock returns the genesis block.
GenesisHash returns the genesis block's hash.
LoadGenesisHash is done once to compute and save the genesis'es hash.
LogTokenTxRecord generates token transaction record from log.
NewBlockDeprecated returns a new block This method is deprecated.
NewBuilder creates a Builder.
NewDeserializer creates a new deserializer.
NewRunnableActionsBuilder creates a RunnableActionsBuilder.
NewTestingBuilder creates a Builder.
NewTokenTxRecord creates a new TokenTxRecord.
NewTransactionLog creates a new TransactionLog.
NewValidator creates a validator with a set of sealed envelope validators.
ReceiptTransactionLog generates transaction log from receipt.
# Structs
transaction log definitions.
Block defines the struct of block.
Body defines the struct of body.
Builder is used to construct Block.
Deserializer de-serializes a block
It's a wrapper to set certain parameters in order to correctly de-serialize a block Currently the parameter is EVM network ID for tx in web3 format, it is called like
blk, err := (&Deserializer{}).SetEvmNetworkID(id).FromBlockProto(pbBlock) blk, err := (&Deserializer{}).SetEvmNetworkID(id).DeserializeBlock(buf).
Footer defines a set of proof of this block.
Header defines the struct of block header make sure the variable type and order of this struct is same as "BlockHeaderPb" in blockchain.pb.go.
RunnableActions is abstructed from block which contains information to execute all actions in a block.
RunnableActionsBuilder is used to construct RunnableActions.
No description provided by the author
TestingBuilder is used to construct Block.
transaction log definitions.
transaction log definitions.
# Interfaces
Validator is the interface of validator.