Skip to content

[DID Content References] "!" notation is problematic for a DID Resolver #167

@mwherman2000

Description

@mwherman2000

Consider the following single "Hashlink" example from the paper https://github.com/WebOfTrustInfo/rwot8-barcelona/blob/master/topics-and-advance-readings/DID-Content-References.md ...

did:sov:21tDAKCERh95uGgKbJNHYp!hl:zQmWvQxTqbG2Z9HPJgG57jjwR154cKhbtJenbyYTWkjgF3e

  1. How is a DID Resolver for the "did:sov:" DID method supposed to know what type of JSON document to return for the identifier 21tDAKCERh95uGgKbJNHYp (within the "did:sov:` DID method context)?

Clearly the data for the object as serialized and stored on the ledger will know its object type (via some sort of type or subtype attribute) ...i.e. whether the corresponding object is a DID Document, a Hashlink object, etc.

  1. What if 21tDAKCERh95uGgKbJNHYp is the id for a DID Document and the Resolver is asked to apply the "!" operator to a DID Document instead of an intended Hashlink object? Does the Resolver return some sort of "type mismatch" error diagnostic to the caller?

CC: @talltree @peacekeeper

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions