[][src]Function amcl_wrapper::commitment::commit_to_field_element

pub fn commit_to_field_element(
    g: &G1,
    h: &G1,
    elem: &FieldElement,
    r: &FieldElement
) -> G1

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