Skip to main content

What is a Schema?

A schema defines the structure of attestation data. All attestations reference a schema.

Creating a Schema

Schema Syntax

Supported Types

Example Schemas

KYC Verification

Professional Credential

Reputation Score

Generating Schema UID

Schema UIDs are deterministic based on definition + authority:

Querying Schemas

Best Practices

  1. Keep it simple - Only include necessary fields
  2. Use appropriate types - u64 for timestamps, bool for flags
  3. Consider revocability - Set revocable: true for credentials that may need invalidation
  4. Version schemas - Include version in name: struct KYC_v2 { ... }