Closed TimoGlastra closed 4 years ago
@andrewwhitehead can you take this?
Any update on this?
I would love to make AFJ interoperable with ACA-Py.
I understand if you don't have the time to go into detail. In that case i'll just go ahead and send the DID without the did:sov
part.
@andrewwhitehead - please review and respond. Thanks.
I agree something needs to change if it can't handle a prefixed DID, but it seems like this will need significant testing (including against the mobile apps) before we roll out a version with these changes. It also looks like when ACA-py might be producing a connection request it's using the un-prefixed DID, which may go back to a previous version of the RFC.
Thanks @andrewwhitehead. I've discussed and for now we'll change to using the un-prefixed DID. Maybe ACA-Py could eventually support both prefixed DIDs and un-prefixed DIDs for backwards compatibility.
This is more a question than a bug report.
When testing interoperability between aries-framework-javascript (AFJ) and ACA-PY there was an issue with the did and diddoc while creating a connection. (the
connection
andconnection~sig
parameters in request / response)ACA-Py throws the error:
Connection DID does not match DIDDoc id
I could find this interaction in the rocket chat where @andrewwhitehead says you should send the
DID
without thedid:sov:
part.The issue lies with that in AFJ we call the indyCreateAndStoreMyDid function for a new connection with the
"method_name": "sov"
parameter, which returns the whole did instead of only the did identifier.Removing the
did:sov
part indeeds works, but this leaves me with some questions.id
in the theDIDDoc
is still the full did containingdid:sov:
while theDID
parameter now only contains the did identifier. So when the error is thrown they do match and after fixing the error and they do not match anymore the error is not thrown. This seems reversed to me?DID
parameter indicates a DID, ACA-Py expects it to be a DID identifier. Why is that?aries-framework-dotnet also uses the did identifier instead of the full did, however they don't check if the diddoc id matches with the did, so it is "okay".
If only sending the did identifier is the way to go I'll make the necessary changes in AFJ, but as it contradicts with how I interpret the RFC I want to be sure.