Closed securedimensions closed 4 weeks ago
@PatStLouis or @dbluhm — would either of you be able to weigh in on this one?
The presentation verify endpoint expects an authentication proofPurpose
with a challenge domain included in order to prevent replay attacks.
@securedimensions try setting:
"options": {
"proofType": "Ed25519Signature2020",
"proofPurpose": "authentication"
}
when creating the proof
Thank you! Adding the "proofPurpose": "authentication"
fixed this issue.
Conclusion
At the end, there is this strange error that I cannot resolve into something meaningful :(
Reproduce
Create DID Ed25519Signature2020
works fineIssue VC Ed25519Signature2020
returns errorFix (unsure that's wrong but it works): Change
to
Issue VC Ed25519Signature2020
now works fineVerify Credential
works fineStore Credential
works fineProve presentation
returns errorFix (unsure that's wrong but it works): Change
to
Prove presentation
now works fineVerify Presentation
finally returns bespoke auckward errorComplete response:
Any pointers what I do wrong or how to make the examples work is much appreciated.
Best Andreas