#merkle-tree #zk-sync #blockchain #api-server

zksync_metadata_calculator

ZKsync batch metadata calculator

1 unstable release

0.1.0 Jul 13, 2024

#50 in #api-server

Download history 104/week @ 2024-07-08 24/week @ 2024-07-15 6/week @ 2024-07-22 2/week @ 2024-08-12 21/week @ 2024-09-16 20/week @ 2024-09-23 13/week @ 2024-09-30

54 downloads per month
Used in 4 crates (3 directly)

MIT/Apache

2MB
49K SLoC

zksync_metadata_calculator

Component responsible for calculating any supplementary metadata required for L1 batches. Most notably, this is component responsible for maintaining the Merkle Tree.

Additionally, this crate provides ability to spawn the Merkle Tree API server.


lib.rs:

This module applies updates to the ZkSyncTree, calculates metadata for sealed blocks, and stores them in the DB.

Dependencies

~130MB
~2.5M SLoC