From d5e7d8bb36b4816317808526b323c9c62adc1c17 Mon Sep 17 00:00:00 2001 From: Pratyush Mishra Date: Wed, 10 Jun 2020 00:04:17 -0700 Subject: [PATCH] Compilation fix --- crypto-primitives/src/commitment/pedersen/constraints.rs | 4 ++-- crypto-primitives/src/crh/bowe_hopwood/constraints.rs | 4 ++-- crypto-primitives/src/crh/pedersen/constraints.rs | 4 ++-- crypto-primitives/src/merkle_tree/constraints.rs | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/crypto-primitives/src/commitment/pedersen/constraints.rs b/crypto-primitives/src/commitment/pedersen/constraints.rs index 941dec3..5cc7f0a 100644 --- a/crypto-primitives/src/commitment/pedersen/constraints.rs +++ b/crypto-primitives/src/commitment/pedersen/constraints.rs @@ -215,7 +215,7 @@ mod test { }; use r1cs_core::ConstraintSystem; use r1cs_std::{ - edwards_on_bls12_381::JubJubGadget, prelude::*, + edwards_on_bls12_381::EdwardsGadget, prelude::*, test_constraint_system::TestConstraintSystem, }; @@ -236,7 +236,7 @@ mod test { let rng = &mut test_rng(); type TestCOMM = PedersenCommitment; - type TestCOMMGadget = PedersenCommitmentGadget; + type TestCOMMGadget = PedersenCommitmentGadget; let randomness = PedersenRandomness(Fr::rand(rng)); diff --git a/crypto-primitives/src/crh/bowe_hopwood/constraints.rs b/crypto-primitives/src/crh/bowe_hopwood/constraints.rs index 8e9a905..dfae33b 100644 --- a/crypto-primitives/src/crh/bowe_hopwood/constraints.rs +++ b/crypto-primitives/src/crh/bowe_hopwood/constraints.rs @@ -150,12 +150,12 @@ mod test { }; use r1cs_core::ConstraintSystem; use r1cs_std::{ - alloc::AllocGadget, edwards_on_bls12_381::JubJubGadget, + alloc::AllocGadget, edwards_on_bls12_381::EdwardsGadget, test_constraint_system::TestConstraintSystem, uint8::UInt8, }; type TestCRH = BoweHopwoodPedersenCRH; - type TestCRHGadget = BoweHopwoodPedersenCRHGadget; + type TestCRHGadget = BoweHopwoodPedersenCRHGadget; #[derive(Clone, PartialEq, Eq, Hash)] pub(super) struct Window; diff --git a/crypto-primitives/src/crh/pedersen/constraints.rs b/crypto-primitives/src/crh/pedersen/constraints.rs index 6857317..422bfd1 100644 --- a/crypto-primitives/src/crh/pedersen/constraints.rs +++ b/crypto-primitives/src/crh/pedersen/constraints.rs @@ -138,13 +138,13 @@ mod test { }; use r1cs_core::ConstraintSystem; use r1cs_std::{ - edwards_on_bls12_381::JubJubGadget, prelude::*, + edwards_on_bls12_381::EdwardsGadget, prelude::*, test_constraint_system::TestConstraintSystem, }; use rand::Rng; type TestCRH = PedersenCRH; - type TestCRHGadget = PedersenCRHGadget; + type TestCRHGadget = PedersenCRHGadget; #[derive(Clone, PartialEq, Eq, Hash)] pub(super) struct Window; diff --git a/crypto-primitives/src/merkle_tree/constraints.rs b/crypto-primitives/src/merkle_tree/constraints.rs index a91a4b9..64f67e7 100644 --- a/crypto-primitives/src/merkle_tree/constraints.rs +++ b/crypto-primitives/src/merkle_tree/constraints.rs @@ -214,7 +214,7 @@ mod test { use super::*; use r1cs_std::{ - edwards_on_bls12_381::JubJubGadget, test_constraint_system::TestConstraintSystem, + edwards_on_bls12_381::EdwardsGadget, test_constraint_system::TestConstraintSystem, }; #[derive(Clone)] @@ -225,7 +225,7 @@ mod test { } type H = PedersenCRH; - type HG = PedersenCRHGadget; + type HG = PedersenCRHGadget; struct JubJubMerkleTreeParams;