Skip to main content

commit

Function commit 

Source
pub fn commit(context: &str, value: &[u8]) -> (Commitment, Opening)
Expand description

Create a fresh commitment to value, sampling a random 32-byte opening from the OS CSPRNG. Returns (commitment, opening); keep the opening to reveal in a lookup proof.