Closed lazovicff closed 2 years ago
In create_leaf_with_privates
there's no hasher: H
in the function definition. Should we also consider adding it there? Or where is the field hasher meant to come from?
Edit: we can do the following
struct MixerR1CSProver<E: PairingEngine, H: FieldHasher<E::Fr>, const HEIGHT: usize> {
engine: PhantomData<E>,
hasher: H,
}
and use self.hasher
We also need to add self
to these function definitions @filiplazovic unless you have another idea how we'd access struct fields.
Will leave this open, since we need to do the same for PLONK
To make the API more configurable and more stable, I propose the following struct:
Which will be defined as:
With the name convention:
[prover name]_[ec]_[hasher]_[tree height]
With interface:
NOTE: This interface can be implemented for both R1CS and PLONK systems