Skip to content

Sample Guardianship Schema

mya

This document presents a sample schema for a guardian credential appropriate to the IRC-as-guardian-of-Mya-in-a-refugee-camp use case. It is accompanied by a sample trust framework.

The raw schema is here:

schema thumbnail

For general background on guardianship and its associated credentials, see this slide presentation.

How to Use

The schema documented here could be passed as the attrs arg to the indy_issuer_create_schema() method in libindy. The "1.0" in this document's name refers to the fact that we are using Indy 1.0-style schemas; we aren't trying to use the rich schema constructs that will be available to us when the "schema 2.0" effort is mature.

The actual JSON you would need to pass to the indy_issuer_create_schema() method is given in the attached schema.json file. In code, if you place that file's content in a string variable and pass the variable as the attrs arg, the schema will be registered on the ledger. You might use values like "Red Cross Vulnerable Populations Guardianship Cred" and "1.0" as the name and version args to that same function. You can see an example of how to make the call by looking at the "Save Schema and Credential Definition" How-To in Indy SDK.

See the accompanying trust framework for an explanation of individual fields.