MCPcopy Create free account
hub / github.com/docknetwork/crypto / commit

Method commit

utils/src/commitment.rs:37–39  ·  view source on GitHub ↗

Commit to a message

(&self, message: &G::ScalarField, randomness: &G::ScalarField)

Source from the content-addressed store, hash-verified

35
36 /// Commit to a message
37 pub fn commit(&self, message: &G::ScalarField, randomness: &G::ScalarField) -> G {
38 self.commit_as_projective(message, randomness).into()
39 }
40
41 /// Commit to a batch of messages and output commitments corresponding to each message.
42 pub fn commit_to_a_batch(

Callers 9

initMethod · 0.45
initMethod · 0.45
initMethod · 0.45
newMethod · 0.45
newMethod · 0.45
new_given_randomnessMethod · 0.45

Calls 1

commit_as_projectiveMethod · 0.80