Skip to content

Commit

Permalink
Clean up ark dependencies in sub-packages.
Browse files Browse the repository at this point in the history
Co-Authored-By:  Alex Xiong <[email protected]>
  • Loading branch information
mmaker and alxiong committed Dec 16, 2024
1 parent bdec8c4 commit 1b7abd7
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 15 deletions.
19 changes: 10 additions & 9 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,13 @@ members = [
]


[patch.crates-io]
ark-std = { git = "https://github.com/arkworks-rs/utils" }
ark-ec = { git = "https://github.com/arkworks-rs/algebra" }
ark-ff = { git = "https://github.com/arkworks-rs/algebra" }
ark-serialize = { git = "https://github.com/arkworks-rs/algebra" }
ark-bls12-381 = { git = "https://github.com/arkworks-rs/algebra" }
ark-curve25519 = { git = "https://github.com/arkworks-rs/algebra" }
ark-pallas = { git = "https://github.com/arkworks-rs/algebra" }
ark-vesta = { git = "https://github.com/arkworks-rs/algebra" }
# Un-comment below for latest arkworks libraries.
# [patch.crates-io]
# ark-std = { git = "https://github.com/arkworks-rs/utils" }
# ark-ec = { git = "https://github.com/arkworks-rs/algebra" }
# ark-ff = { git = "https://github.com/arkworks-rs/algebra" }
# ark-serialize = { git = "https://github.com/arkworks-rs/algebra" }
# ark-bls12-381 = { git = "https://github.com/arkworks-rs/algebra" }
# ark-curve25519 = { git = "https://github.com/arkworks-rs/algebra" }
# ark-pallas = { git = "https://github.com/arkworks-rs/algebra" }
# ark-vesta = { git = "https://github.com/arkworks-rs/algebra" }
8 changes: 4 additions & 4 deletions nimue-poseidon/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,19 @@ license = "MIT/Apache-2.0"

[dependencies]
nimue = { path = "../nimue", features = ["ark"]}
ark-ff = "0.5.0"
ark-ff = "^0.5"
zeroize = "1.8.1"
ark-bls12-381 = {version = "^0.5", optional = true}
ark-bn254 = {version = "^0.5", optional = true}

[dev-dependencies]
ark-bls12-381 = "0.5.0"
ark-bls12-381 = "^0.5"

[features]
bls12-381 = ["ark-bls12-381"]
bn254 = ["ark-bn254"]
solinas = []
bls12-381 = ["nimue/ark", "dep:ark-bls12-381"]

[[example]]
name = "schnorr_algebraic_hash"
required-features = ["ark", "ark-bls112-381"]
required-features = ["ark-bls12-381"]
2 changes: 0 additions & 2 deletions nimue/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,12 @@ ark-ff = { version = "^0.5", optional = true }
ark-ec = { version = "^0.5", optional = true }
ark-serialize = { version = "^0.5", optional = true, features = ["std"] }
group = { version = "0.13.0", optional = true }
ark-bls12-381 = { version = "^0.5", optional = true }
hex = "0.4.3"

[features]
default = []
ark = ["dep:ark-ff", "dep:ark-ec", "dep:ark-serialize"]
group = ["dep:group"]
ark-bls12-381 = ["ark", "dep:ark-bls12-381"]
asm = ["keccak/asm", "keccak/simd"]

[dev-dependencies]
Expand Down

0 comments on commit 1b7abd7

Please sign in to comment.