This specification defines a new error code, to be included in the DID Spec Registries.
Work-in-progress
The error code is notAllowedKeyType
.
This DID Resolution error code is used to indicate that a security policy has been triggered, and the DID document contains a key type that is not allowed.
The DID Resolution Metadata MAY include additional information about why the security policy has been triggered.
{
"@context": "https://w3id.org/did-resolution/v1",
"didDocument": null,
"didResolutionMetadata": {
"error": "notAllowedKeyType"
},
"didDocumentMetadata": {}
}
This specification also defines a new DID Resolution Option.
This DID Resolution Option can be used by a client to override the behavior of the security policy.
Possible values:
error
: A DID Resolution Result with errornotAllowedKeyType
is returned if the security policy is triggered.warn
: A normal DID Resolution Result is returned, but a warning is included in thedidResolutionMetadata
field.ignore
: The security policy is ignored, and a normal DID Resolution Result is returned.
Contributions to this document can be discussed in the DIF I&D Working Group: