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

Method is_valid

proof_system/src/meta_statement.rs:64–66  ·  view source on GitHub ↗

A witness equality should have at least 2 witness references.

(&self)

Source from the content-addressed store, hash-verified

62impl EqualWitnesses {
63 /// A witness equality should have at least 2 witness references.
64 pub fn is_valid(&self) -> bool {
65 self.0.len() > 1
66 }
67
68 pub fn has_wit_ref(&self, wit_ref: &WitnessRef) -> bool {
69 self.0.contains(wit_ref)

Callers 3

validateMethod · 0.45

Calls 1

lenMethod · 0.45

Tested by 1

validateMethod · 0.36