Developers
  • Docs
  • Resources
  • API
  • Help
  • Blog

›Additional Projects

Getting Started

  • About SelfKey
  • KEY Token
  • SelfKey Identity Wallet
  • SelfKey Extension

SelfKey API

  • Overview
  • All Endpoints

SelfKey Marketplace

  • About SelfKey Marketplace
  • Integration Process
  • GUIDE: Exchanges
  • GUIDE: Incorporations

Login with SelfKey

  • About Login with SelfKey
  • Authentication Process
  • Client Configuration
  • Server Implementation
  • GUIDE: Basic LWS
  • GUIDE: Marketplace Only LWS
  • GUIDE: KYC Only LWS
  • GUIDE: Full LWS

Additional Projects

  • SelfKey JSON Schema
  • Staking KEY
  • Decentralized Identifiers (DID)
  • Verifiable Credentials

SelfKey JSON Schema

SelfKey JSON Schema

In order to solve certain issues around the area of data harmonization and compatibility regarding the management of data and documents using the SelfKey Identity Wallet and the transfer of data with 3rd party integrators, SelfKey has developed a JSON Schema to manage requested data formatting. The schema is available at http://platform.selfkey.org/schema

Attribute Schema

{
  "id": "http://platform.selfkey.org/schema/attribute/public-key.json",
  "$schema": "http://platform.selfkey.org/schema/identity-attribute.json",
  "title": "Public Key",
  "description": "A cryptographic public key.",
  "type": "string"
}

Document Schema

{
  "id": "http://platform.selfkey.org/schema/attribute/passport.json",
  "$schema": "http://platform.selfkey.org/schema/identity-attribute.json",
  "title": "Passport",
  "description": "A copy of an individuals passport.",
  "type": "object",
  "properties": {
    "image": {
      "anyOf": [
        {
          "type": "string",
          "contentEncoding": "base64",
          "contentMediaType": "image/jpg"
        },
        {
          "type": "string",
          "contentEncoding": "base64",
          "contentMediaType": "image/png"
        },
        {
          "type": "string",
          "contentEncoding": "base64",
          "contentMediaType": "application/pdf"
        }, 
      ]
    }
  },
  "required": [ "image" ]
}

Custom Extended Schema

{
  "id": "http://bigco.com/schema/membership.json",
  "$schema": "http://platform.selfkey.org/schema/identity-attribute.json",
  "title": "BigCo Membership",
  "description": "Membership credentials for the BigCo Membership Programme.",
  "issuers": ["0x19674964C63cc8bd761eB857278aF46f25a80F61"],
  "type": "object",
  "properties": {
    "memberNumber": { "type": "string" },
    "validUntil": { "type": "number", "description": "Unix timestamp at which time this credential expires" },
    "signature": { "type": "string" }
  },
  "required": ["memberNumber", "validUntil", "signature"]
}
← PreviousNext →
  • SelfKey JSON Schema
  • Attribute Schema
  • Document Schema
  • Custom Extended Schema
Developers
Docs
Getting StartedMarketplace IntegrationLogin with SelfkeyAdditional Projects
Resources
View All ResourcesLogin with SelfKey NodeJS SDKSelfkey Developer Twitter
More
SelfKey Developer BlogSelfKey Foundation GitHubStar
Copyright © 2019 SelfKey Foundation