Forked from
Eclipse Projects / xfsc / Organisational Credential Manager - W-Stack / Storage Service
56 commits behind, 1 commit ahead of the upstream repository.
-
Steffen Schulze authoredSteffen Schulze authored
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
Chaining.md 960 B
Chaining
To chain credentials the call /credentials/chain must be triggered with an chain statement in the following pattern:
{
"chainName": "provenanceProof",
"root":"test",
"chain": [
{
"item": "test2",
"chain": [
{
"item": "test3"
}
]
}
]
}
All IDs of the credentials in the item/root definitions must be existing otherwise it returns an error that the chaining is not possible. "ChainName" defines the name of the root of the embeddings. Example:
{
"credentialSubject": {
"id": "Test"
},
"provenanceProof": [
{
"credentialSubject": {
"id": "Test"
},
"provenanceProof": [
{
"credentialSubject": {
"id": "Test"
},
"test": "test4"
}
],
"test": "test4"
}
],
"test": "test4"
}
The credentials were added as json under the ids test, test2,test3 with the following pattern:
{
"test":"test4",
"credentialSubject": {
"id":"Test"
}
}