Documentation ¶
Index ¶
- type CMLightCoder
- func (cms *CMLightCoder) DeserializeBlockHeader(serializeBlockHeader []byte) (common.Header, error)
- func (cms *CMLightCoder) DeserializeTransaction(serializeTransaction []byte, serializeExtraData []byte) (common.Transactioner, error)
- func (cms *CMLightCoder) GenerateTransactionData(blocker common.Blocker) (*storage.TransactionData, error)
- func (cms *CMLightCoder) SerializeBlockHeader(header common.Header) ([]byte, error)
- type CMSPVCoder
- func (cms *CMSPVCoder) DeserializeBlockHeader(serializeBlockHeader []byte) (common.Header, error)
- func (cms *CMSPVCoder) DeserializeTransaction(serializeTransaction []byte, serializeExtraData []byte) (common.Transactioner, error)
- func (cms *CMSPVCoder) GenerateTransactionData(blocker common.Blocker) (*storage.TransactionData, error)
- func (cms *CMSPVCoder) SerializeBlockHeader(header common.Header) ([]byte, 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(serializeBlockHeader []byte) (common.Header, error)
DeserializeBlockHeader deserializes binary bytes to ChainMaker's block header
func (*CMLightCoder) DeserializeTransaction ¶
func (cms *CMLightCoder) DeserializeTransaction(serializeTransaction []byte, serializeExtraData []byte) ( common.Transactioner, error)
DeserializeTransaction deserializes the binary bytes of transaction and extra data(rw_set) to transaction
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(serializeBlockHeader []byte) (common.Header, error)
DeserializeBlockHeader deserializes binary bytes to ChainMaker's block header
func (*CMSPVCoder) DeserializeTransaction ¶
func (cms *CMSPVCoder) DeserializeTransaction(serializeTransaction []byte, serializeExtraData []byte) ( common.Transactioner, error)
DeserializeTransaction deserializes the binary bytes of transaction and extra data(rw_set) to transaction
func (*CMSPVCoder) GenerateTransactionData ¶
func (cms *CMSPVCoder) GenerateTransactionData(blocker common.Blocker) (*storage.TransactionData, error)
GenerateTransactionData generates transaction data, contains txHashMap, txBytesMap and txRWSetMap