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

zksync_metadata_calculator

ZKsync batch metadata calculator

1 unstable release

0.1.0 Jul 13, 2024

#60 in #api-server


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

~132MB
~2.5M SLoC