How can we generate a SDR on-behalf of issuer
See original GitHub issueHi Team,
While handling a scenario, where user is scanning a QR code which is seeking attestation from a issuer but as user does not have attestations yet from that issuer and could not able to share the credentials.
But by this time, We already have information about
- Requested Attester DID
- Claim type which were requested
So based on that data, I was trying to generate a SDR on-behalf of issuer and directly sharing the self signed credentials against the generated SDR to Issuer for attestation instead of asking user to go to attester/issuer portal and scan the QR code.
But while generating the SDR on behalf I’m getting a error
Error: the string “No identity: did:ethr:rinkeby:0xe000315b4fd38b0291c0b65c69b86f805fdab09e” was thrown
did:ethr:rinkeby:0xe000315b4fd38b0291c0b65c69b86f805fdab09e is the DID of issuer which was captured from the SP SDR.
code block used
const jwt = await agent.handleAction({
type: SD.ActionTypes.signSdr,
did: signerDid,
data: sdrInput,
save: true,
} as SD.ActionSignSdr);
Could you kindly suggest if there is a way to Generate SDR on behalf
Issue Analytics
- State:
- Created 3 years ago
- Comments:9 (5 by maintainers)
Top GitHub Comments
Yes, Both VP and SDR are message types and can be created independently and sent anywhere. You can create arbitrary VP messages for example as a QR code so anyone can scan it.
You can however optionally provide a
threadId
in your SDR so when you send the VP response you can pass that id along so your database can tie responses to requests.So to Draw a conclusion from above