Skip to content

Commit 0c97400

Browse files
committed
Added crates for jubjub and poseidon to try to replace midnight while it is not published.
1 parent 9ec3f5d commit 0c97400

File tree

3 files changed

+79
-3
lines changed

3 files changed

+79
-3
lines changed

Cargo.lock

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

mithril-stm/Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ future_snark = [
2626
"sha2",
2727
"group",
2828
"num-traits",
29+
"dusk-poseidon",
2930
] # For activating snark features
3031

3132
[dependencies]
@@ -34,6 +35,7 @@ blake2 = "0.10.6"
3435
# Enforce blst portable feature for runtime detection of Intel ADX instruction set.
3536
blst = { version = "0.3.16", features = ["portable"] }
3637
digest = { workspace = true }
38+
dusk-poseidon = { version = "0.41.0", optional = true }
3739
ff = { version = "0.13.1", optional = true }
3840
group = { version = "0.13.0", optional = true }
3941
midnight-circuits = { git = "https://github.com/midnightntwrk/midnight-zk", rev = "c88a50c2169f060120a52ad0980de90f08bc9535", optional = true }

mithril-stm/src/schnorr_signature/signature.rs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
use anyhow::{Result, anyhow};
2-
use midnight_circuits::hash::poseidon::PoseidonChip;
3-
use midnight_circuits::instructions::HashToCurveCPU;
4-
use midnight_circuits::instructions::hash::HashCPU;
2+
3+
use midnight_circuits::{
4+
hash::poseidon::PoseidonChip,
5+
instructions::{HashToCurveCPU, hash::HashCPU},
6+
};
7+
58
use midnight_curves::{Fq as JubjubBase, Fr as JubjubScalar, JubjubSubgroup};
69

710
use group::{Group, GroupEncoding};

0 commit comments

Comments
 (0)