Skip to content

Commit

Permalink
feat(types): Added KZG info needed for 4844 blobs (#894)
Browse files Browse the repository at this point in the history
## What ❔

In order to support blobs we need to transform our pubdata into kzg
commitments and compute opening/proofs to be used within our
contracts/for blob transactions.

## Why ❔

This will allow us to take full advantage of 4844 blobs.

## Checklist

<!-- Check your PR fulfills the following items. -->
<!-- For draft PRs check the boxes as you complete them. -->

- [x] PR title corresponds to the body of PR (we generate changelog
entries from PRs).
- [x] Tests for the changes have been added / updated.
- [x] Documentation comments have been added / updated.
- [x] Code has been formatted via `zk fmt` and `zk lint`.
- [x] Spellcheck has been run via `zk spellcheck`.
  • Loading branch information
koloz193 committed Feb 7, 2024
1 parent e6ca5bf commit 758f487
Show file tree
Hide file tree
Showing 8 changed files with 4,552 additions and 23 deletions.
40 changes: 19 additions & 21 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 12 additions & 1 deletion core/lib/l1_contract_interface/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,15 @@ zksync_prover_interface = { path = "../prover_interface" }
# Used to serialize proof data
codegen = { git = "https://github.com/matter-labs/solidity_plonk_verifier.git", branch = "dev" }
# Used to calculate commitment for vk from the old L1 verifier contract (backward comatibility needs)
zkevm_test_harness = { git = "https://github.com/matter-labs/era-zkevm_test_harness.git", branch = "v1.3.3" }
zkevm_test_harness_1_3_3 = { package = "zkevm_test_harness", git = "https://github.com/matter-labs/era-zkevm_test_harness.git", branch = "v1.3.3" }

# Used to calculate the kzg commitment and proofs
zkevm_test_harness_1_4_1 = { package = "zkevm_test_harness", git = "https://github.com/matter-labs/era-zkevm_test_harness.git", branch = "v1.4.1" }
sha2 = "0.10.8"
sha3 = "0.10.8"

[dev-dependencies]
hex = "0.4"
serde = "1.0.90"
serde_json = "1.0.0"
serde_with = { version = "1", features = ["base64", "hex"] }
Loading

0 comments on commit 758f487

Please sign in to comment.