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

Method to_keyed_proof

kvac/src/bbs_sharp/proof.rs:539–544  ·  view source on GitHub ↗

Create a new sub-proof that can be verified by someone with the secret key. This doesn't need to be created if `self.proof_of_validity` is set.

(&self)

Source from the content-addressed store, hash-verified

537 /// Create a new sub-proof that can be verified by someone with the secret key.
538 /// This doesn't need to be created if `self.proof_of_validity` is set.
539 pub fn to_keyed_proof(&self) -> KeyedProof<G> {
540 KeyedProof {
541 B_0: self.A_hat,
542 C: self.B_bar,
543 }
544 }
545
546 /// Verify Schnorr proofs and proof of knowledge of public key if designated verifier proof
547 pub fn verify_common(

Calls

no outgoing calls