Skip to content
Merged
Show file tree
Hide file tree
Changes from 44 commits
Commits
Show all changes
47 commits
Select commit Hold shift + click to select a range
286f209
add initial CodecV6 and daBatchV6
jonastheis Dec 27, 2024
6767845
feat: add codecv5 and codecv6 for Euclid fork
omerfirmak Jan 7, 2025
cc9561b
implement blob encoding and decoding according to new blob layout
jonastheis Jan 21, 2025
8c2a5cc
rename to CodecV7
jonastheis Jan 21, 2025
9117170
add NewDABatchFromParams
jonastheis Jan 22, 2025
4ef7bfc
add DecodeBlob to Codec
jonastheis Jan 22, 2025
bf16156
Update da.go
omerfirmak Jan 27, 2025
2817674
Update interfaces.go
omerfirmak Jan 27, 2025
7a60b34
Merge remote-tracking branch 'origin/omerfirmak/euclid' into feat/cod…
jonastheis Jan 28, 2025
64133ef
fixes after merge
jonastheis Jan 28, 2025
1dde89a
address review comments
jonastheis Jan 29, 2025
c9c1a44
add sanity checks for blob payload generation
jonastheis Jan 30, 2025
e980b3d
fix few small bugs uncovered by unit tests
jonastheis Jan 31, 2025
0e930c6
upgrade to latest l2geth version and add correct getter for CodecV7 i…
jonastheis Jan 31, 2025
5d200f3
fix linter warnings
jonastheis Jan 31, 2025
5292e3c
add unit tests
jonastheis Jan 31, 2025
3cfed43
go mod tidy
jonastheis Jan 31, 2025
eed341f
fix linter warnings
jonastheis Jan 31, 2025
be6b422
add function MessageQueueV2ApplyL1MessagesFromBlocks to compute the L…
jonastheis Feb 3, 2025
d77916b
fix lint and unit test errors
Feb 3, 2025
b71c047
call checkCompressedDataCompatibility only once -> constructBlobPaylo…
jonastheis Feb 4, 2025
cbed8b2
address review comments
jonastheis Feb 4, 2025
392b6ff
update BlobEnvelopeV7 documentation
jonastheis Feb 4, 2025
edaf5d2
add CodecV7 to general util functions
jonastheis Feb 5, 2025
894a93b
add InitialL1MessageQueueHash and LastL1MessageQueueHash to encoding.…
jonastheis Feb 5, 2025
f3271d9
Merge remote-tracking branch 'origin/main' into feat/codec-v6
jonastheis Feb 7, 2025
2611ae1
go mod tidy
jonastheis Feb 7, 2025
4d46aad
upgrade go-ethereum dependency to latest develop
jonastheis Feb 7, 2025
f4b274c
implement estimate functions
jonastheis Feb 7, 2025
3c106a2
update TestMain and run go mod tidy
Thegaram Feb 7, 2025
538036b
add NewDAChunk to CodecV7 for easier use in relayer
jonastheis Feb 9, 2025
14d07e7
Merge branch 'feat/codec-v6' of github.com:scroll-tech/da-codec into …
jonastheis Feb 9, 2025
cfb316b
add daChunkV7 type to calculate chunk hash
jonastheis Feb 9, 2025
c6ae41e
allow batch.chunks but check consistency with batch.blocks
jonastheis Feb 10, 2025
d028c53
fix off-by-one error with L1 messages
jonastheis Feb 10, 2025
8fa5e27
Fix: rolling hash implementation (#42)
roynalnaruto Feb 14, 2025
4f13363
Apply suggestions from code review
jonastheis Feb 18, 2025
bcad556
rename initialL1MessageQueueHash -> prevL1MessageQueueHash and lastL1…
jonastheis Feb 18, 2025
7522931
address review comments
jonastheis Feb 18, 2025
32f5b49
address review comments
jonastheis Feb 18, 2025
0247443
add challenge digest computation for batch
jonastheis Feb 18, 2025
2043787
remove InitialL1MessageIndex from CodecV7
jonastheis Feb 19, 2025
de09af4
address review comments
jonastheis Feb 19, 2025
f9608ed
fix tests
jonastheis Feb 19, 2025
01bd9b5
refactoring to minimize duplicate code and increase maintainability
jonastheis Feb 20, 2025
fca406c
fix nil pointer
jonastheis Feb 20, 2025
5fd8356
address review comments
jonastheis Feb 21, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions encoding/codecv0.go
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,10 @@ func (d *DACodecV0) DecodeTxsFromBlob(blob *kzg4844.Blob, chunks []*DAChunkRawTx
return nil
}

func (d *DACodecV0) DecodeBlob(blob *kzg4844.Blob) (DABlobPayload, error) {
return nil, nil
}

// NewDABatch creates a DABatch from the provided Batch.
func (d *DACodecV0) NewDABatch(batch *Batch) (DABatch, error) {
// this encoding can only support a fixed number of chunks per batch
Expand Down Expand Up @@ -223,6 +227,10 @@ func (d *DACodecV0) NewDABatchFromBytes(data []byte) (DABatch, error) {
), nil
}

func (d *DACodecV0) NewDABatchFromParams(_ uint64, _, _ common.Hash) (DABatch, error) {
return nil, nil
}

// EstimateBlockL1CommitCalldataSize calculates the calldata size in l1 commit for this block approximately.
func (d *DACodecV0) EstimateBlockL1CommitCalldataSize(b *Block) (uint64, error) {
var size uint64
Expand Down
Loading