Skip to content

Commit

Permalink
Add notes on making DID public before creating Schema definition
Browse files Browse the repository at this point in the history
  • Loading branch information
Selbin committed Aug 26, 2020
1 parent 9de6758 commit 0686a3b
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions credential-issue-and-verification-api-user-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,14 @@ In your browser you can start three tabs to execute the APIs using swagger.

| Agent | Swagger API endpoint admin UI |
| ------------- | ------------- |
| Test Center | [agent1.swagger.localhost](agent1.swagger.localhost) |
| Alice (Data4Life User) | [agent2.swagger.localhost](agent2.swagger.localhost) |
| Travel Company | [agent3.swagger.localhost](agent3.swagger.localhost) |
| Test Center | [agent1.swagger.localhost](http://agent1.swagger.localhost) |
| Alice (Data4Life User) | [agent2.swagger.localhost](http://agent2.swagger.localhost) |
| Travel Company | [agent3.swagger.localhost](http://agent3.swagger.localhost) |

# Schema definition by a legal entity
On [Test Center Agent](agent1.swagger.localhost), you can execute the schema definiton API to register the schema in the ledger. Ideally this is defined by a legal entity or a standardisation body.

On [Test Center Agent](http://agent1.swagger.localhost), you can execute the schema definiton API to register the schema in the ledger. Ideally this is defined by a legal entity or a standardisation body.
To define schema first you have to create a public DID.
To create public DID follow step 1 of [Credenial issuance by the issuer (Test Center)](#credenial-issuance-by-the-issuer-test-center).
Sends a schema to the ledger with the API `POST: ​/schemas` with the json body as given:

{
Expand Down Expand Up @@ -91,12 +92,12 @@ After the secured connection is established between the two agents, the Test Cen
Here, a credential is issued by the Test Center based on a standard scehma earlier defined by the legal entity.

1. Create a local DID for the test center and make it public by publishing it to the ledger
1. Call `POST ​/wallet​/did​/create`
This generates the DID and verification key
2. After creating local DID, you need to register it with ledger at [indy.igrant.io](indy.igrant.io) as shown below
![](indy-screenshot.png)
3. After Registering with ledger call `POST /wallet/did/public`

`POST ​/wallet​/did​/create`

This generates the DID and verification key which now is registered
![](indy-screenshot.png)

2. Repeat step 1 to create DID for the Data4Life-User, but DO NOT publish this to ledger as it shall remain private.

3. Now, based on the schema, Test Center creates a credential definition to the ledger.
Expand Down

0 comments on commit 0686a3b

Please sign in to comment.