Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Data ¶
type Data struct { BlockNumber uint64 Prevhash []byte Datahash []byte BlockSignatures []blocklib.BlockSignature Channel string Txs []blocklib.Tx Events []*peer.ChaincodeEvent }
type Parser ¶
type Parser interface { // Parse is responsible for parsing passed block Parse(block *common.Block) (*Data, error) }
Parser serves as a contract for the implementation of the logic responsible for processing data from the blockchain. Simply put, this is about how exactly and into what constituent parts we will disassemble the blocks.
Click to show internal directories.
Click to hide internal directories.