LogoLogo
  • Sign Protocol
    • Introduction
    • FAQ
  • For Hackers
    • Getting Started
  • For Builders
    • Getting Started
      • Fundamentals
      • Tutorials
        • Building a Simple Notary Platform
          • Schema Creation
          • Attestation Creation
          • Querying Attestations
          • Parsing Attestation Data
        • Delegate Attestation Creation
          • Express Backend
          • Solidity
      • Examples
        • Attestation Discord Bot
        • KYC-Gated Smart Contract Access Control
    • Supported Networks
    • Sign Developer Platform
    • Advanced Topics
      • Cross Chain Attestations
      • Hybrid Attestations
      • Schema Hooks
        • Tutorial: Checking Attestation Data
          • Schema Creation
          • Schema Hook
          • Creating an Attestation (Solidity)
      • ZK Attestations
        • Compile a Circuit
        • Create a Schema Hook
    • Querying Data
      • NPM SDK
        • Usage & Examples
      • REST APIs
        • Schemas
        • Attestations
      • GraphQL
        • Schemas
        • Attestations
    • Writing Data
      • NPM SDK
        • Installation
        • Usage
          • Schemas
          • Attestations
        • Examples
        • Changelog
      • Smart Contract
        • EVM
          • Interfaces
            • ISP
            • ISPHook
            • IVersionable
          • Data Models
            • Schema
            • Attestation
            • DataLocation
  • For Thinkers
    • A Future Of Verifiable Trust
    • Effective Attestations
    • Incentive-Aligned Public Good
    • Glossary
      • Attestations
      • Schema
      • Schema Registry
      • Attestation Repository
  • Case Study
    • EthSign
    • KYC-Gated Contract Calls
    • Proof of Audit
    • Developer Onchain Reputation
    • Onboarding Web2 Data
Powered by GitBook
LogoLogo

Copyright Sign 2021-2024

On this page
  • Overview
  • Purpose
  • Design
  • Building a Schema

Was this helpful?

  1. For Thinkers
  2. Glossary

Schema

PreviousAttestationsNextSchema Registry

Last updated 4 months ago

Was this helpful?

Overview

A schema defines the type and structure of data used in attestations, creating standards for accuracy and composability. It ensures attestations are insightful and verifiable. A Schema Registry stores and references schemas, coordinating standards and processes for efficient schema use.

Purpose

Schemas establish rules for data organization in attestations, ensuring they are insightful and valid. They define structure and selection criteria for data points, providing context and provability. Schemas shape attestation standards, enhancing trust system efficiency.

Design

Sign Protocol schemas consist of two core modules:

  1. Header: Contains metadata for initial attestation analysis, including:

    • Attestation ID: Unique identifier for cross-referencing.

    • Claim Reference: Points to a related claim or assertion.

    • Attester ID: Identifies the attestation creator.

    • Signature: Cryptographic certification of the attestation.

    • Schema Registry ID: References the schema used.

  2. Body: Contains detailed attestation data, including:

    • Timestamp: When the event was observed.

    • Subject ID: Identifies the attestation subject.

    • Boolean: Indicates claim truthfulness.

    • Cryptographic Proof: Ensures data integrity.

    • Evidence Data: Supports or refutes the claim.

Building a Schema

Schemas are typically JSON structures, organized as key-value pairs. They can be created using text editors or implemented as blockchain-based scripts. Sign Protocol's Schema Builder streamlines schema creation, offering intuitive flows and reducing complexity.

Schemas are vital for defining attestation nature, ensuring clarity and standardization. A well-crafted schema forms the basis for a robust attestation ecosystem.

For more on schemas, see our blog post: .

Schemas: The Blueprint of Attestations
An EthSign schema on Sign Protocol
How Sign Protocol schemas are structured in Solidity