MCPcopy Create free account
hub / github.com/cryptidtech/oberon / Proof

Class Proof

python/oberon/classes.py:79–92  ·  view source on GitHub ↗

An oberon proof

Source from the content-addressed store, hash-verified

77
78
79class Proof:
80 """An oberon proof"""
81
82 def __init__(self, value: bytes):
83 if len(value) == proof_size():
84 self.value = value
85 else:
86 raise Exception("invalid proof size")
87
88 def __bytes__(self):
89 return self.value
90
91 def verify(self, identifier: bytes, public_key: PublicKey, nonce: bytes):
92 return verify_proof(self.value, public_key.value, identifier, nonce)

Callers 1

create_proofMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected