-
Notifications
You must be signed in to change notification settings - Fork 8
Description
What
Using the did:peer:2 example found on the identity foundation page here. I was unable to use the library on it for two reasons.
-
The did ends with the.Sentry, which is base64 encoded, and base64 uses=as padding, however the REGEX found in thepydidlibrary here does not accept the=and throws an error. Maybe this library can strip those =, or I can submit an issue to that repo as well. -
The
.Eentry afterdecode_multibase_numbasishas the relationshipAUTHENTICATION, however the_build_did_doc_numalgo_2()only accepts the relationshipKEY_AGREEMENT. found on this line.
Why
Is there an issue with example? or is there a different method I should need to use? I am just learning about did:peer messages and documents, but my goal is to change the aries-cloudagent-python project to use did:peer:2 and possibly did:peer:3.
Success Criteria
Base64 padding should be handled, either by- see herepydidor this library- did doc should be created from this did successfully.
Anything Else
If .E entry must by of type KEY_AGREEMENT and the .V must have relationship of type AUTHENTICATION, is there an issue with the example I am using? Or is there error handling that can nudge the developer in the right direction?