Replies: 1 comment 7 replies
-
I'm not a Veramo dev but currently experimenting with the library too, so take this answer with this in mind before it is confirmed by a Veramo dev. If I understand your workflow correctly, the issuer makes a selective disclosure request (SDR) request to the holder. However, the holder does not hold any verifiable credentials (VC) initially. So there is no way for the holder to fulfil this SDR because he does not hold a VC that proofs his When a VC for {
"credentialSubject": {
"birthDate": "2021-03-15",
"id": "did:ethr:rinkeby:0xb2e9fe08ca9a0323103883fe12c9609ed380f475"
},
"issuer": {
"id": "did:web:uzh-veramo-cloud-agent.herokuapp.com"
},
"id": "did:ethr:rinkeby:0xb2e9fe08ca9a0323103883fe12c9609ed380f475",
"type": [
"VerifiableCredential",
"CertificateOfIncorporation"
],
"@context": [
"https://www.w3.org/2018/credentials/v1",
"https://platform.selfkey.org/contexts/kyc/v1.jsonld"
],
"issuanceDate": "2021-03-21T13:02:34.000Z",
"proof": {
"type": "JwtProof2020",
"jwt": "ey..."
}
} Next the holder attempts to login at the Bank (verifier). The bank creates a SDR as you described in your first json and sent to the holder. Using the VC from above, the holder is able to create a Verifiable Presentation (VP) which contains the VC along with some additional information and pass it to the verifier. If my understanding about Veramo is correct, the following requests are needed for your workflow:
If you are using the Veramo CLI, I ran into an issue regarding the SDR response. I currently work on a similar workflow but I have not tested if this issue also exists on the cloud agent. |
Beta Was this translation helpful? Give feedback.
-
Hi,
I am trying to do a simple demo leveraging the veramo framework, but have trouble nailing the sdr flow.
I have a verifier (Bank) which provides a service (Open bank account)
An issuer (company registrar) which can issue a 'CertificateOfIncorporation' credential
And a holder (company who wants to open a bank account)
at this point, all implemented as http servers, have web did in well-known did's and also define a Messaging service endpoint that should handle didcomm and sdr messages
I want to do the following flow:
apply for service on the verifier and get back sdr requremets
understand the missing credential that I need to submit
go to issuer and apply for that credential -> get back sdr requirements for the credential
fill the requirements (let's assume users fills thous manually)
respond to the sdr request and get a credential in return.
Then go ahead and send the credential to verifier
and get back accept or deny
Now, all of thous steps should happen asynchronously (since there might be a manual verification step that is required)
Here is my first attempt for verifier schema
and this one for issuer:
Still I have an issue to wrap my head around how to connect thous peaces in terms of veramo framework and sdr plugin
Can someone help with that?
Beta Was this translation helpful? Give feedback.
All reactions