Closed pstuermlinger closed 1 year ago
@andrewwhitehead -- is this handled by your recent #2060 PR? If not, what is needed to support this. AFAIK, it should be supported according to this table in the OOB RFC, third entry.
When calling the /out-of-band/receive-invitation API, extract and put only the invitation item in the payload of the request body like this:
{
"@type": "did:sov:BzCbsNYhMrjHiqZDTUASHg;spec/out-of-band/1.1/invitation",
"@id": "6ebcb4d6-628b-44de-99bf-b30e6f54c258",
"services": [
{
"id": "#inline",
"type": "did-communication",
"recipientKeys": [
"did:key:z6MkrWU3yJioLKhXLmt8PTubfSqeoihJpzWntBhmC6DCCDoo"
],
"serviceEndpoint": "http://192.168.56.1:10002"
}
],
"label": "Verifier",
"requests~attach": [
{
"@id": "request-0",
"mime-type": "application/json",
"data": {
"json": {
"@type": "did:sov:BzCbsNYhMrjHiqZDTUASHg;spec/present-proof/1.0/request-presentation",
"@id": "0ce52b2d-68af-410b-983b-0a0c17a98e27",
"request_presentations~attach": [
{
"@id": "libindy-request-presentation-0",
"mime-type": "application/json",
"data": {
"base64": "ey...=="
}
}
],
"~thread": {
"pthid": "6ebcb4d6-628b-44de-99bf-b30e6f54c258"
}
}
}
}
]
}
@kukgini this worked, thank you!
Using 0.7.5 I try to process an OOB present-proof.
Steps to reproduce: 1) At verifier: POST /present-proof/create-request Body:
2) At verifier: POST /out-of-band/create-invitation Body:
3) At holder: POST resulting oob invitation to /out-of-band/receive-invitation Body:
Result at holder:
As you can see, a
requests_attach
is set and received. Nevertheless, the holders ACA-Py throws this error. Is this a bug or did I make a mistake?