26 releases

new 0.151.4 Mar 21, 2025
0.150.21 Feb 7, 2025
0.150.19 Dec 20, 2024
0.150.16 Nov 21, 2024
0.150.2-rc.2 Jul 31, 2024

#6 in #z-ksync

Download history 3784/week @ 2024-11-28 2230/week @ 2024-12-05 2863/week @ 2024-12-12 2618/week @ 2024-12-19 806/week @ 2024-12-26 3168/week @ 2025-01-02 4447/week @ 2025-01-09 4086/week @ 2025-01-16 3119/week @ 2025-01-23 1723/week @ 2025-01-30 4793/week @ 2025-02-06 3391/week @ 2025-02-13 2363/week @ 2025-02-20 5056/week @ 2025-02-27 4590/week @ 2025-03-06 5131/week @ 2025-03-13

17,878 downloads per month
Used in 12 crates (2 directly)

MIT/Apache

2MB
33K SLoC

Kzg crate

This crate contains functions related to kzg commitment that is used for 4844 blobs.

There are 3 methods that are used by era from this crate:

  • pubdata_to_blob_commitments - computes the blob commitments for given pub data
  • KzgInfo - holds all the methods for converting bytes into blobs
  • ZK_SYNC_BYTES_PER_BLOB - information on how much data is stored per blob.

lib.rs:

Implementation based on https://github.com/ethereum/consensus-specs/blob/86fb82b221474cc89387fa6436806507b3849d88/specs/deneb/polynomial-commitments.md

Dependencies

~15MB
~282K SLoC