Skip to content

Commit

Permalink
rustfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
redshiftzero committed Apr 4, 2024
1 parent 0afde62 commit 37b37d8
Show file tree
Hide file tree
Showing 8 changed files with 29,076 additions and 100 deletions.
2 changes: 1 addition & 1 deletion poseidon377/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ pub const RATE_6_PARAMS: PoseidonParameters<7, 6, 49, 36, 39, 7, 273, 31> =

/// Parameters for the rate-7 instance of Poseidon.
pub const RATE_7_PARAMS: PoseidonParameters<8, 7, 64, 49, 39, 8, 312, 31> =
params::rate_7::rate_7();
params::rate_7::rate_7();

pub use decaf377::Fq;
pub use poseidon_parameters::v1::PoseidonParameters;
Expand Down
2,314 changes: 2,298 additions & 16 deletions poseidon377/src/params/rate_2.rs

Large diffs are not rendered by default.

3,246 changes: 3,230 additions & 16 deletions poseidon377/src/params/rate_3.rs

Large diffs are not rendered by default.

4,252 changes: 4,236 additions & 16 deletions poseidon377/src/params/rate_4.rs

Large diffs are not rendered by default.

5,317 changes: 5,301 additions & 16 deletions poseidon377/src/params/rate_5.rs

Large diffs are not rendered by default.

6,426 changes: 6,410 additions & 16 deletions poseidon377/src/params/rate_6.rs

Large diffs are not rendered by default.

7,612 changes: 7,594 additions & 18 deletions poseidon377/src/params/rate_7.rs

Large diffs are not rendered by default.

7 changes: 6 additions & 1 deletion poseidon377/tests/r1cs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,12 @@ use proptest::prelude::*;
use rand_core::OsRng;

// This is a domain separator we'll use as a constant in our circuits below.
const DOMAIN_SEP: Fq = Fq::from_montgomery_limbs([15545862963729521748, 8301038308012579564, 6940338389606830037, 431207966161902270]);
const DOMAIN_SEP: Fq = Fq::from_montgomery_limbs([
15545862963729521748,
8301038308012579564,
6940338389606830037,
431207966161902270,
]);

/// The maximum fixed-width Poseidon hash exposed to downstream users of this crate.
const MAX_WIDTH_POSEIDON_HASH: usize = 7;
Expand Down

0 comments on commit 37b37d8

Please sign in to comment.