From 3bdf598431e582c104eec180d860bb7e0ab554ff Mon Sep 17 00:00:00 2001 From: howardwu Date: Thu, 4 Mar 2021 10:59:43 -0800 Subject: [PATCH] Update field and curves traits --- compiler/src/value/field/field_type.rs | 2 +- compiler/src/value/group/targets/edwards_bls12.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/compiler/src/value/field/field_type.rs b/compiler/src/value/field/field_type.rs index 576515c3c6..a03e6e1bc4 100644 --- a/compiler/src/value/field/field_type.rs +++ b/compiler/src/value/field/field_type.rs @@ -22,8 +22,8 @@ use leo_ast::Span; use snarkvm_fields::PrimeField; use snarkvm_gadgets::fields::AllocatedFp; -use snarkvm_gadgets::fields::FieldGadget; use snarkvm_gadgets::fields::FpGadget; +use snarkvm_gadgets::traits::fields::FieldGadget; use snarkvm_gadgets::traits::utilities::alloc::AllocGadget; use snarkvm_gadgets::traits::utilities::boolean::Boolean; use snarkvm_gadgets::traits::utilities::eq::ConditionalEqGadget; diff --git a/compiler/src/value/group/targets/edwards_bls12.rs b/compiler/src/value/group/targets/edwards_bls12.rs index a58740ab09..34d58ebb0c 100644 --- a/compiler/src/value/group/targets/edwards_bls12.rs +++ b/compiler/src/value/group/targets/edwards_bls12.rs @@ -29,10 +29,10 @@ use snarkvm_fields::Fp256; use snarkvm_fields::One; use snarkvm_fields::Zero; use snarkvm_gadgets::curves::edwards_bls12::EdwardsBlsGadget; -use snarkvm_gadgets::curves::GroupGadget; use snarkvm_gadgets::fields::AllocatedFp; -use snarkvm_gadgets::fields::FieldGadget; use snarkvm_gadgets::fields::FpGadget; +use snarkvm_gadgets::traits::curves::GroupGadget; +use snarkvm_gadgets::traits::fields::FieldGadget; use snarkvm_gadgets::traits::utilities::alloc::AllocGadget; use snarkvm_gadgets::traits::utilities::boolean::Boolean; use snarkvm_gadgets::traits::utilities::eq::ConditionalEqGadget;