mirror of
https://github.com/arnaucube/ark-r1cs-std.git
synced 2026-01-11 08:21:30 +01:00
Make libraries compile
This commit is contained in:
@@ -308,7 +308,7 @@ impl<ConstraintF: Field> AllocGadget<bool, ConstraintF> for AllocatedBit {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<ConstraintF: Field> CondSelectGadget<ConstraintF> for AllocatedBit {
|
impl<ConstraintF: PrimeField> CondSelectGadget<ConstraintF> for AllocatedBit {
|
||||||
fn conditionally_select<CS: ConstraintSystem<ConstraintF>>(
|
fn conditionally_select<CS: ConstraintSystem<ConstraintF>>(
|
||||||
cs: CS,
|
cs: CS,
|
||||||
cond: &Boolean,
|
cond: &Boolean,
|
||||||
@@ -328,7 +328,7 @@ impl<ConstraintF: Field> CondSelectGadget<ConstraintF> for AllocatedBit {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn cond_select_helper<F: Field, CS: ConstraintSystem<F>>(
|
fn cond_select_helper<F: PrimeField, CS: ConstraintSystem<F>>(
|
||||||
mut cs: CS,
|
mut cs: CS,
|
||||||
cond: &Boolean,
|
cond: &Boolean,
|
||||||
first: (Option<bool>, impl Into<ConstraintVar<F>>),
|
first: (Option<bool>, impl Into<ConstraintVar<F>>),
|
||||||
@@ -785,7 +785,8 @@ impl<ConstraintF: Field> ToBytesGadget<ConstraintF> for Boolean {
|
|||||||
self.to_bytes(cs)
|
self.to_bytes(cs)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
impl<ConstraintF: Field> CondSelectGadget<ConstraintF> for Boolean {
|
|
||||||
|
impl<ConstraintF: PrimeField> CondSelectGadget<ConstraintF> for Boolean {
|
||||||
fn conditionally_select<CS>(
|
fn conditionally_select<CS>(
|
||||||
mut cs: CS,
|
mut cs: CS,
|
||||||
cond: &Self,
|
cond: &Self,
|
||||||
|
|||||||
@@ -91,7 +91,7 @@ impl<P, ConstraintF, F> GroupGadget<SWProjective<P>, ConstraintF>
|
|||||||
for AffineGadget<P, ConstraintF, F>
|
for AffineGadget<P, ConstraintF, F>
|
||||||
where
|
where
|
||||||
P: SWModelParameters,
|
P: SWModelParameters,
|
||||||
ConstraintF: Field,
|
ConstraintF: PrimeField,
|
||||||
F: FieldGadget<P::BaseField, ConstraintF>,
|
F: FieldGadget<P::BaseField, ConstraintF>,
|
||||||
{
|
{
|
||||||
type Value = SWProjective<P>;
|
type Value = SWProjective<P>;
|
||||||
@@ -329,7 +329,7 @@ where
|
|||||||
impl<P, ConstraintF, F> CondSelectGadget<ConstraintF> for AffineGadget<P, ConstraintF, F>
|
impl<P, ConstraintF, F> CondSelectGadget<ConstraintF> for AffineGadget<P, ConstraintF, F>
|
||||||
where
|
where
|
||||||
P: SWModelParameters,
|
P: SWModelParameters,
|
||||||
ConstraintF: Field,
|
ConstraintF: PrimeField,
|
||||||
F: FieldGadget<P::BaseField, ConstraintF>,
|
F: FieldGadget<P::BaseField, ConstraintF>,
|
||||||
{
|
{
|
||||||
#[inline]
|
#[inline]
|
||||||
@@ -424,7 +424,7 @@ impl<P, ConstraintF, F> AllocGadget<SWProjective<P>, ConstraintF>
|
|||||||
for AffineGadget<P, ConstraintF, F>
|
for AffineGadget<P, ConstraintF, F>
|
||||||
where
|
where
|
||||||
P: SWModelParameters,
|
P: SWModelParameters,
|
||||||
ConstraintF: Field,
|
ConstraintF: PrimeField,
|
||||||
F: FieldGadget<P::BaseField, ConstraintF>,
|
F: FieldGadget<P::BaseField, ConstraintF>,
|
||||||
{
|
{
|
||||||
#[inline]
|
#[inline]
|
||||||
|
|||||||
Reference in New Issue
Block a user