Skip to main content

What is an Attestation?

A signed statement by an issuer about a subject, stored on-chain. Example: “KYC Provider X attests that Wallet Y is verified at level Basic”

Attestation Properties

PropertyDescription
uidUnique identifier (32 bytes)
schemaUidReference to schema structure
attesterWho created the attestation
subjectWho the attestation is about
valueAttestation data (JSON string)
timestampWhen created
expirationTimeWhen it expires (optional)
revokedWhether invalidated

Lifecycle

Created ──▶ Active ──▶ Expired

                └──▶ Revoked
Created: Attestation issued and stored on-chain Active: Valid and queryable Expired: Past expiration time (still on-chain) Revoked: Explicitly invalidated by attester

Use Cases

  • KYC/Identity: Verify user identity
  • Credentials: Professional certifications
  • Reputation: On-chain reputation scores
  • Access Control: Gate access to services
  • Compliance: Regulatory attestations

Schema Relationship

Every attestation references a schema that defines its structure:
// Schema defines structure
'struct KYC { bool verified; string level; }'

// Attestation follows structure
{ verified: true, level: 'basic' }

Next Steps