Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
npwardberkeley committed Nov 3, 2020
1 parent beee357 commit fdf1668
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
7 changes: 4 additions & 3 deletions src/marlin_pc/constraints.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@ use crate::{
};
use ark_ec::{CycleEngine, PairingEngine};
use ark_ff::{fields::Field, PrimeField, ToConstraintField};
use core::{borrow::Borrow, convert::TryInto, marker::PhantomData, ops::MulAssign};
use ark_nonnative_field::{NonNativeFieldMulResultVar, NonNativeFieldVar};
use ark_relations::r1cs::{ConstraintSystemRef, Namespace, SynthesisError};
use ark_r1cs_std::{
alloc::{AllocVar, AllocationMode},
bits::{boolean::Boolean, uint8::UInt8, ToBitsGadget},
Expand All @@ -23,6 +21,8 @@ use ark_r1cs_std::{
select::CondSelectGadget,
R1CSVar, ToBytesGadget, ToConstraintFieldGadget,
};
use ark_relations::r1cs::{ConstraintSystemRef, Namespace, SynthesisError};
use core::{borrow::Borrow, convert::TryInto, marker::PhantomData, ops::MulAssign};

/// Var for the verification key of the Marlin-KZG10 polynomial commitment scheme.
pub struct VerifierKeyVar<
Expand Down Expand Up @@ -216,7 +216,8 @@ where

let g = PG::G1Var::new_variable(ark_relations::ns!(cs, "g"), || Ok(g.clone()), mode)?;
let h = PG::G2Var::new_variable(ark_relations::ns!(cs, "h"), || Ok(h.clone()), mode)?;
let beta_h = PG::G2Var::new_variable(ark_relations::ns!(cs, "beta_h"), || Ok(beta_h), mode)?;
let beta_h =
PG::G2Var::new_variable(ark_relations::ns!(cs, "beta_h"), || Ok(beta_h), mode)?;

Ok(Self {
g,
Expand Down
4 changes: 2 additions & 2 deletions src/pc_constraints.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use ark_ff::PrimeField;
use core::marker::Sized;
use ark_relations::r1cs::{ConstraintSystemRef, Namespace, SynthesisError};
use ark_r1cs_std::prelude::*;
use ark_relations::r1cs::{ConstraintSystemRef, Namespace, SynthesisError};
use core::marker::Sized;

use crate::data_structures::LabeledCommitment;
use crate::{BTreeMap, BTreeSet, LCTerm, LinearCombination, String, Vec};
Expand Down

0 comments on commit fdf1668

Please sign in to comment.