Skip to content

Commit de7219d

Browse files
committed
Move Poseidon primitive into halo2_poseidon
1 parent 6a1962b commit de7219d

File tree

11 files changed

+17
-1
lines changed

11 files changed

+17
-1
lines changed

Cargo.lock

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

halo2_gadgets/Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ arrayvec = "0.7.0"
2626
bitvec = "1"
2727
ff = "0.13"
2828
group = "0.13"
29+
halo2_poseidon = { version = "0.0", path = "../halo2_poseidon", default-features = false }
2930
halo2_proofs = { version = "0.3", path = "../halo2_proofs", default-features = false }
3031
lazy_static = "1"
3132
pasta_curves = "0.5"
@@ -40,6 +41,7 @@ plotters = { version = "0.3.0", default-features = false, optional = true }
4041

4142
[dev-dependencies]
4243
criterion = "0.3"
44+
halo2_poseidon = { version = "0.0", path = "../halo2_poseidon", default-features = false, features = ["test-dependencies"] }
4345
proptest = "1.0.0"
4446
sinsemilla = { version = "0.1", features = ["test-dependencies"] }
4547

halo2_gadgets/src/poseidon.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ use halo2_proofs::{
1313
mod pow5;
1414
pub use pow5::{Pow5Chip, Pow5Config, StateWord};
1515

16-
pub mod primitives;
16+
pub use ::halo2_poseidon as primitives;
1717
use primitives::{Absorbing, ConstantLength, Domain, Spec, SpongeMode, Squeezing, State};
1818

1919
/// A word from the padded input to a Poseidon sponge.

halo2_poseidon/Cargo.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,10 @@ readme = "README.md"
1515
categories = ["cryptography"]
1616

1717
[dependencies]
18+
bitvec = "1"
19+
ff = "0.13"
20+
group = "0.13"
21+
pasta_curves = "0.5"
22+
23+
[features]
24+
test-dependencies = []
File renamed without changes.

0 commit comments

Comments
 (0)