Skip to content

Commit

Permalink
some version updates
Browse files Browse the repository at this point in the history
  • Loading branch information
anupsv committed Jan 27, 2025
1 parent 6b66c6b commit 4bdbaa8
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 14 deletions.
12 changes: 10 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,14 @@ members = [
resolver = "2"

[workspace.dependencies]
thiserror = "2.0.10"
thiserror = "2.0.11"

[workspace.package]
edition = "2021"
rust-version = "1.81"
repository = "https://github.com/Layr-Labs/rust-kzg-bn254"
homepage = ""
license-file = "LICENSE"

[profile.bench]
opt-level = 3
Expand All @@ -30,4 +37,5 @@ lto = false
panic = 'abort'
incremental = false
codegen-units = 16
rpath = false
rpath = false

5 changes: 4 additions & 1 deletion batch/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
[package]
name = "rust-kzg-bn254-batch-verification"
version = "0.1.0"
edition = "2021"
license-file.workspace = true
edition.workspace = true
rust-version.workspace = true
repository.workspace = true

[dependencies]
rust-kzg-bn254-primitives = { path = "../primitives", version = "0.1.0" }
Expand Down
6 changes: 3 additions & 3 deletions batch/tests/batch_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,17 @@ mod tests {

#[test]
fn test_multiple_proof_random_100_blobs() {
let mut rng = rand::thread_rng();
let mut rng = rand::rng();
let mut kzg = KZG_INSTANCE.clone();

let mut blobs: Vec<Blob> = Vec::new();
let mut commitments: Vec<G1Affine> = Vec::new();
let mut proofs: Vec<G1Affine> = Vec::new();

(0..100).for_each(|_| {
let blob_length = rand::thread_rng().gen_range(35..50000);
let blob_length = rng.random_range(35..50000);
let random_blob: Vec<u8> = (0..blob_length)
.map(|_| rng.gen_range(32..=126) as u8)
.map(|_| rng.random_range(32..=126) as u8)
.collect();

let input = Blob::from_raw_data(&random_blob);
Expand Down
12 changes: 6 additions & 6 deletions kzg/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
[package]
name = "rust-kzg-bn254"
version = "0.1.0"
edition = "2021"
rust-version = "1.81"
edition.workspace = true
rust-version.workspace = true
description = "This library offers a set of functions for generating and interacting with bn254 KZG commitments and proofs in rust, with the motivation of supporting fraud and validity proof logic in EigenDA rollup integrations."
readme = "README.md"
repository = "https://github.com/Layr-Labs/rust-kzg-bn254"
license-file = "LICENSE"
repository.workspace = true
license-file.workspace = true
exclude = ["tests/*", "benches/*"]
# TODO: is this needed for the image to show up in the rust docs?
include = ["./kzg_commitment_diagram.png"]
Expand All @@ -26,8 +26,8 @@ num_cpus = "1.16.0"

[dev-dependencies]
rand = "0.8.5"
criterion = "0.5"
lazy_static = "1.5"
criterion = "0.5.1"
lazy_static = "1.5.0"
tracing = { version = "0.1.41", features = ["log"] }
tracing-subscriber = "0.3.19"

Expand Down
6 changes: 4 additions & 2 deletions primitives/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
[package]
name = "rust-kzg-bn254-primitives"
version = "0.1.0"
edition = "2021"
edition.workspace = true
repository.workspace = true
license-file.workspace = true

[dependencies]
ark-bn254 = "0.5.0"
Expand All @@ -13,7 +15,7 @@ ark-poly = { version = "0.5.0", features = ["parallel"] }
sha2 = "0.10.8"
crossbeam-channel = "0.5"
num-traits = "0.2"
thiserror = "2.0.10"
thiserror = "2.0.11"

[dev-dependencies]
rand = "0.8.5"
Expand Down

0 comments on commit 4bdbaa8

Please sign in to comment.