To issue Verifiable Credentials, the issuer will have to first create a Schema and then a Credential Definition.
The request body must contain the schema
object, which defines the attributes, name and version of the Schema. This will create a DID-Linked Resource of type anonCredsSchema
.
Schema identifier
"did:(method):2:schema_name:1.0"
Schema attribute names
Attribute name
"score"
Issuer Identifier of the credential definition or schema
"did:(method):WgWxqztrNooG92RXvxSTWv"
Schema name
"Example schema"
Schema version
"1.0"
Schema identifier
"did:(method):2:schema_name:1.0"
Create transaction for endorser (optional, default false). Use this for agents who don't specify an author role but want to create a transaction for an endorser to sign.
false
Connection identifier (optional) (this is an example). You can set this if you know the endorser's connection id you want to use. If not specified then the agent will attempt to find an endorser connection.
"3fa85f64-5717-4562-b3fc-2c963f66afa6"
Schema attribute names
Attribute name
"score"
Issuer Identifier of the credential definition or schema
"did:(method):WgWxqztrNooG92RXvxSTWv"
Schema name
"Example schema"
Schema version
"1.0"
Schema attribute names
Attribute name
"score"
Issuer Identifier of the credential definition or schema
"did:(method):WgWxqztrNooG92RXvxSTWv"
Schema name
"Example schema"
Schema version
"1.0"
Schema identifier
"did:(method):2:schema_name:1.0"