Twin DID Method
This document specifies the Twin method
DID Method [did:twin
].
This specification conforms to the requirements specified in the DID specification currently published by the W3C Credentials Community Group. For more information about DIDs and DID method specifications, please see DID Primer and DID Specification.
The namestring that shall identify this DID method is: twin
A DID that uses this method MUST begin with the following prefix: did:twin:
. Per the DID specification,
this prefix MUST be in lowercase. The format of remainder of the DID, after this prefix, is specified below in
the section on Method Specific Identifiers.
Twin DIDs conform with the Generic DID Scheme
described in the DID spec. The format of the twin-specific-idstring
is described below in
ABNF:
twin-did = "did:twin:" twin-specific-idstring
twin-specific-idstring= hyphenReplacedDTMI ":" instanceID
hyphenReplacedDTMI= "dtmi" "-" 1*segment
segment = 1*(ALPHA / DIGIT / "-")
instanceID = 1*(ALPHA / DIGIT / "-" / "." / "_" / "~")
; ALPHA and DIGIT are as defined by RFC 5234, Appendix B.1
An example Twin DID:
did:twin:dtmi-com-unikbase-DigitalPassport-1:f47ac10b-58cc-4372-a567-0e02b2c3d479
Twin DIDs contains hyphen replaced Digital Twin Model Identifier of the digital twin.
The DTMI colons (:) and semicolons (;) are replaced by hyphens (-).
For example, dtmi:com:unikbase:DigitalPassport;1
would become dtmi-com-unikbase-DigitalPassport-1
.
To create a twin DID, the user or system must:
- Determine the DTMI for the digital twin.
- Generate a UUID for the specific instance.
- Format the DID as per the provided structure.
Resolving a twin DID would return a DID document associated with the DID. The resolver should recognize the twin method and parse the to understand the digital twin's model type and the specific instance.
DTC to provide an set of endpoint ?
Updates to the DID document associated with a twin DID can be made by authorized parties, typically the entity controlling the digital twin. The exact mechanism would depend on the underlying infrastructure chosen to host these DIDs.
The deletion or revocation of a twin DID would involve marking the DID as inactive or removing its association. The exact process would depend on the underlying infrastructure.
This document is a work in progress draft.
-
Decentralized Identifiers (DIDs) v0.11 https://w3c-ccg.github.io/did-spec