Documentation ¶
Index ¶
- type FabricCoder
- func (fc *FabricCoder) DeserializeBlockHeader(headerBz []byte) (common.Header, error)
- func (fc *FabricCoder) DeserializeTransaction(transactionBz []byte, extraDataBz []byte) (common.Transactioner, error)
- func (fc *FabricCoder) GenerateBlockData(header common.Header) (*storage.BlockData, error)
- func (fc *FabricCoder) GenerateTransactionData(blocker common.Blocker) (*storage.TransactionData, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FabricCoder ¶
type FabricCoder struct{}
FabricCoder is the implementation of Coder interface for Fabric
func (*FabricCoder) DeserializeBlockHeader ¶
func (fc *FabricCoder) DeserializeBlockHeader(headerBz []byte) (common.Header, error)
DeserializeBlockHeader deserializes binary bytes to Fabric's block header
func (*FabricCoder) DeserializeTransaction ¶
func (fc *FabricCoder) DeserializeTransaction(transactionBz []byte, extraDataBz []byte) ( common.Transactioner, error)
DeserializeTransaction deserializes the binary bytes of transaction and extra data to transaction
func (*FabricCoder) GenerateBlockData ¶
GenerateBlockData generates transaction data, contains block hash and block header bytes
func (*FabricCoder) GenerateTransactionData ¶
func (fc *FabricCoder) GenerateTransactionData(blocker common.Blocker) (*storage.TransactionData, error)
GenerateTransactionData generates transaction data, only contains tx hash map with the txs in block
Click to show internal directories.
Click to hide internal directories.