Schema Registry

Hypersign Schema Registry

The Hypersign Schema comply Verifiable Credentials JSON Schema 2022 data model specification and is stored on Hypersign Identity Blockchain Network as it is adviced to store schema documents and made available as immutable objects.

Syntax of Hypersign Schema ID

The syntax of Schema ID is as follows:

sch:hid:<chain-namespace>:<method-specific-id>:<version-number>
  • sch:hid - Schema Method, where sch is the document identifier and hid is the method name

  • <chain-namespace> - (Optional) Name of the blockchain where the schema document is registered. It is omitted for the document registered on mainnet chain

  • <method-specific-id> - Alpha-numeric string of minimum 32 character length

  • <version-number> - Model version of schema. For instance, 1.0, 1.1 and 2.1

Schema Operations

  • Transaction Based

    • Register/Update a Schema Document

  • Query Based

    • Query Schema Document(s)

Usage

Register/Update Schema

Both registration and update of Schema happens through the RPC CreateSchema

CLI Signature

Example

Register/Update Schema

CLI Signature

Example

REST

  1. Query a specific version of schema document for given schema id:

  1. Query all versions of a schema document:

  1. Query a list of registered schema documents:

Last updated