Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Resolution of DID Documents fails when the controller's DID method is not "iota" #1392

Open
UMR1352 opened this issue Jul 29, 2024 · 0 comments

Comments

@UMR1352
Copy link
Contributor

UMR1352 commented Jul 29, 2024

Bug description

When a document stored on the iota network (i.e. an IotaDocument) has its controller property set to a DID with a DID method different that "iota" (e.g. did:key:....), resolution of such DID document fails.

IOTA Identity version

latest

Expected behaviour

Resolution of such a document should not fail, producing a valid IotaDocument. Further operation on the document that expect the document's controller to have a certain DID method should fail instead.

Actual behaviour

The document can't be resolved, failing with DIDSyntaxError as they expect the controller to be a did:iota DID.

This error originates in StateMetadataDocument, a structure used internally upon deserialization of a DID document from a Stardust AliasOutput's state_metadata property. Fixing this should be as simple as parsing the document's controller property into a CoreDID instead of an IotaDID.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Product Backlog
Development

No branches or pull requests

1 participant