Skip to content
This repository has been archived by the owner on Aug 15, 2024. It is now read-only.

Commit

Permalink
Merge branch 'check-franklin-circuit-transpile' of https://github.com…
Browse files Browse the repository at this point in the history
…/matter-labs/franklin-crypto into check-franklin-circuit-transpile
  • Loading branch information
shamatar committed Apr 9, 2020
2 parents 19fe872 + 8837646 commit 4b97598
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/eddsa.rs
Original file line number Diff line number Diff line change
Expand Up @@ -610,7 +610,7 @@ impl<E: JubjubEngine> PublicKey<E> {
p_g: FixedGenerators,
params: &E::Params,
) -> bool {
assert!(msg.len() < 32);
assert!(msg.len() <= 32);

// c = H*(R_x || M)
let (r_g_x, _) = sig.r.into_xy();
Expand Down Expand Up @@ -660,7 +660,7 @@ impl<E: JubjubEngine> PublicKey<E> {
p_g: FixedGenerators,
params: &E::Params,
) -> bool {
assert!(msg.len() < 32);
assert!(msg.len() <= 32);

let (pk_x, _) = self.0.into_xy();
let mut pk_x_bits: Vec<bool> = BitIterator::new(pk_x.into_repr()).collect();
Expand Down Expand Up @@ -730,7 +730,7 @@ impl<E: JubjubEngine> PublicKey<E> {
p_g: FixedGenerators,
params: &E::Params,
) -> bool {
assert!(msg.len() < 32);
assert!(msg.len() <= 32);

// c = H*(PK_x || R_x || M)
let (pk_x, _) = self.0.into_xy();
Expand Down Expand Up @@ -815,7 +815,7 @@ impl<E: RescueEngine + JubjubEngine> PublicKey<E> {
rescue_params: &<E as RescueEngine>::Params,
jubjub_params: &<E as JubjubEngine>::Params,
) -> bool {
assert!(msg.len() < 32);
assert!(msg.len() <= 32);

// c = H*(PK_x || R_x || M)
let (pk_x, _) = self.0.into_xy();
Expand Down Expand Up @@ -1161,4 +1161,4 @@ mod baby_tests {
let (x, y) = vk.0.into_xy();
println!("Public generator x = {}, y = {}", x, y);
}
}
}

0 comments on commit 4b97598

Please sign in to comment.