[−][src]Trait r1cs::HashFunction
A function which hashes a sequence of field elements, outputting a single field element.
Required methods
fn hash(
&self,
builder: &mut GadgetBuilder<F>,
blocks: &[Expression<F>]
) -> Expression<F>
&self,
builder: &mut GadgetBuilder<F>,
blocks: &[Expression<F>]
) -> Expression<F>
Provided methods
fn hash_evaluate(&self, blocks: &[Element<F>]) -> Element<F>
Like hash
, but actually evaluates the hash function rather than just adding it to a
GadgetBuilder
.
Implementors
impl<F: Field, C: CompressionFunction<F>> HashFunction<F> for MerkleDamgard<F, C>
[src]
fn hash(
&self,
builder: &mut GadgetBuilder<F>,
blocks: &[Expression<F>]
) -> Expression<F>
[src]
&self,
builder: &mut GadgetBuilder<F>,
blocks: &[Expression<F>]
) -> Expression<F>