Documentation ¶
Index ¶
- type CMLightCoder
- func (cms *CMLightCoder) DeserializeBlockHeader(headerBz []byte) (common.Header, error)
- func (cms *CMLightCoder) DeserializeTransaction(transactionBz []byte, extraDataBz []byte) (common.Transactioner, error)
- func (cms *CMLightCoder) GenerateBlockData(header common.Header) (*storage.BlockData, error)
- func (cms *CMLightCoder) GenerateTransactionData(blocker common.Blocker) (*storage.TransactionData, error)
- type CMSPVCoder
- func (cms *CMSPVCoder) DeserializeBlockHeader(headerBz []byte) (common.Header, error)
- func (cms *CMSPVCoder) DeserializeTransaction(transactionBz []byte, extraDataBz []byte) (common.Transactioner, error)
- func (cms *CMSPVCoder) GenerateBlockData(header common.Header) (*storage.BlockData, error)
- func (cms *CMSPVCoder) GenerateTransactionData(blocker common.Blocker) (*storage.TransactionData, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CMLightCoder ¶
type CMLightCoder struct {
// contains filtered or unexported fields
}
CMLightCoder is the implementation of Coder interface for ChainMaker
func (*CMLightCoder) DeserializeBlockHeader ¶
func (cms *CMLightCoder) DeserializeBlockHeader(headerBz []byte) (common.Header, error)
DeserializeBlockHeader deserializes binary bytes to ChainMaker's block header
func (*CMLightCoder) DeserializeTransaction ¶
func (cms *CMLightCoder) DeserializeTransaction(transactionBz []byte, extraDataBz []byte) ( common.Transactioner, error)
DeserializeTransaction deserializes the binary bytes of transaction and extra data(rw_set) to transaction
func (*CMLightCoder) GenerateBlockData ¶
GenerateBlockData generates transaction data, contains block hash and block header bytes
func (*CMLightCoder) GenerateTransactionData ¶
func (cms *CMLightCoder) GenerateTransactionData(blocker common.Blocker) (*storage.TransactionData, error)
GenerateTransactionData generates transaction data, contains txHashMap, txBytesMap and txRWSetMap
type CMSPVCoder ¶
type CMSPVCoder struct {
// contains filtered or unexported fields
}
CMSPVCoder is the implementation of Coder interface for ChainMaker
func (*CMSPVCoder) DeserializeBlockHeader ¶
func (cms *CMSPVCoder) DeserializeBlockHeader(headerBz []byte) (common.Header, error)
DeserializeBlockHeader deserializes binary bytes to ChainMaker's block header
func (*CMSPVCoder) DeserializeTransaction ¶
func (cms *CMSPVCoder) DeserializeTransaction(transactionBz []byte, extraDataBz []byte) ( common.Transactioner, error)
DeserializeTransaction deserializes the binary bytes of transaction and extra data(rw_set) to transaction
func (*CMSPVCoder) GenerateBlockData ¶
GenerateBlockData generates transaction data, contains block hash and block header bytes
func (*CMSPVCoder) GenerateTransactionData ¶
func (cms *CMSPVCoder) GenerateTransactionData(blocker common.Blocker) (*storage.TransactionData, error)
GenerateTransactionData generates transaction data, contains txHashMap, txBytesMap and txRWSetMap