Skip to content

Proposed DID document metadata property: network #628

@peacekeeper

Description

@peacekeeper

Some DID methods have the concept of a "network", for example "mainnet", "testnet", "staging", etc. This may sometimes be encoded in the DID itself and separated by ":" characters, e.g.:

did:example:network:123456789abcdefghi

There are also DID methods which encode a "network" in a different way as part of the identifier, or not encode it in the identifier itself at all, but still recognize the concept of a "network".

In all those cases, it could be useful to define a reusable DID document metadata property which returns the "network" as part of DID Resolution e.g.:

{
	"@context": "https://w3id.org/did-resolution/v1",
	"didDocument": {
		"@context": "https://www.w3.org/ns/did/v1",
		"id": "did:example:network:123456789abcdefghi",
		...
	},
	"didResolutionMetadata": {
		"contentType": "application/did"
	},
	"didDocumentMetadata": {
          "network": "testnet"
	}
}

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