Add convenience impls for common types (#137)

* Work

* Tweak

* Fmt

* Work

* Format + typo fixes

* `no-std` fix
This commit is contained in:
Pratyush Mishra
2024-01-27 03:58:26 -05:00
committed by GitHub
parent a12499518c
commit 4020fbc226
13 changed files with 341 additions and 121 deletions

View File

@@ -44,7 +44,7 @@ impl<F: PrimeField> Radix2DomainVar<F> {
impl<F: PrimeField> EqGadget<F> for Radix2DomainVar<F> {
fn is_eq(&self, other: &Self) -> Result<Boolean<F>, SynthesisError> {
if self.gen != other.gen || self.dim != other.dim {
Ok(Boolean::constant(false))
Ok(Boolean::FALSE)
} else {
self.offset.is_eq(&other.offset)
}