Function commit_data

Source
pub fn commit_data<E: Curve>(
    rng: &mut (impl RngCore + CryptoRng),
    data: Data<E>,
) -> (Commitment<E>, PrivateCommitment<E>)
Expand description

First round of the protocol: commit to well-constructed Data by itself. Produces Commitment to be sent

rng is used to generate the nonce for the private commitment