Documentation ¶
Overview ¶
Package coder defines coding and decoding interface and contains the implementations of each chain
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Coder ¶
type Coder interface { // SerializeBlockHeader serializes block header to binary bytes SerializeBlockHeader(header common.Header) ([]byte, error) // DeserializeBlockHeader deserializes binary bytes to block header DeserializeBlockHeader(serializeBlockHeader []byte) (common.Header, error) // GenerateTransactionData generates transaction data, contains tx hash map, tx bytes map and // extra data(about each tx) bytes map with the txs in block GenerateTransactionData(blocker common.Blocker) (*storage.TransactionData, error) // DeserializeTransaction deserializes the binary bytes of transaction and extra data to transaction DeserializeTransaction(serializeTransaction []byte, serializeExtraData []byte) (common.Transactioner, error) }
Coder defines coding and decoding interface
Click to show internal directories.
Click to hide internal directories.