[][src]Module amcl_wrapper_ml::commitment

Functions

commit_to_field_element

Commit to field element elem with randomness r given groups elements g and h, i.e. compute g^elem.h^r

commit_to_field_element_vectors

Commit to field element vectors a and b with random field element c Given group element vectors g and h and group element u, compute (a1g1 + a2g2 + a3g3) + (b1h1 + b2h2 + b3h3) + c*u