package
0.1.2
Repository: https://github.com/scroll-tech/da-codec.git
Documentation: pkg.go.dev

# Functions

CheckBatchCompressedDataCompatibility checks compressed data compatibility of a batch built by a single chunk.
CheckChunkCompressedDataCompatibility checks compressed data compatibility of a batch built by a single chunk.
CodecFromConfig determines and returns the appropriate codec based on chain configuration, block number, and timestamp.
CodecFromVersion returns the appropriate codec for the given version.
DecodeBitmap decodes skipped L1 message bitmap of the batch from bytes to big.Int's.
GetBatchEnableCompression returns whether to enable compression for the given block height and timestamp.
GetChunkEnableCompression returns whether to enable compression for the given block height and timestamp.
GetCodecVersion returns the encoding codec version for the given block height and timestamp.
GetHardforkName returns the name of the hardfork active at the given block height and timestamp.
IsL1MessageSkipped checks if the L1 message at the given index is skipped.
TxsToTxsData converts transactions to a TransactionData array.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

Batch represents a batch of chunks.
Block represents an L2 block.
Chunk represents a group of blocks.
DAChunkRawTx groups consecutive DABlocks with their L2 transactions, L1 msgs are loaded in another place.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Interfaces

Codec represents the interface for encoding and decoding DA-related structures.
DABatch contains metadata about a batch of DAChunks.
DABlock represents a Data Availability Block.
DAChunk groups consecutive DABlocks with their transactions.

# Type aliases

CodecVersion represents the version of the codec.