The proof registry stores public commitment status for EarnProof credentials.

Responsibilities

  • Register proof commitments.
  • Store proof status.
  • Store expiration.
  • Revoke proofs.
  • Query proof validity.
  • Prevent duplicate proof registration.
  • Reject registration when the issuer is inactive.
  • Reject registration when the schema version is not approved.
  • Reject registration when the protocol is paused.

Functions

Validity Rules

A proof is valid only when:
  • it exists,
  • it is active,
  • it has not expired,
  • it has not been revoked,
  • the registering issuer is active,
  • the schema version is approved,
  • the protocol is not paused.

Commitment Hash

The commitment hash should be derived from a canonical credential payload, excluding mutable fields such as verification event count.

Storage Lifetime

Proof records are stored in durable contract storage and use a shared TTL policy. Reads and writes extend storage lifetime so active proof records do not expire unexpectedly while the protocol is in use.