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

Method commit_as_projective

utils/src/commitment.rs:58–64  ·  view source on GitHub ↗
(
        &self,
        message: &G::ScalarField,
        randomness: &G::ScalarField,
    )

Source from the content-addressed store, hash-verified

56 }
57
58 pub fn commit_as_projective(
59 &self,
60 message: &G::ScalarField,
61 randomness: &G::ScalarField,
62 ) -> G::Group {
63 self.g * message + self.h * randomness
64 }
65}

Callers 3

commitMethod · 0.80
verifyMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected