did-resolution
did-resolution copied to clipboard
Define invalidDidDocument error
A number of implementations use an invalidDidDocument error code to indicate that a DID document is not valid (not compliant with the DID spec). We should define this error code and include it in the DID Resolution algorithm.
Also align this with the corresponding error code in the CID spec: https://www.w3.org/TR/cid-1.0/#INVALID_CONTROLLED_IDENTIFIER_DOCUMENT.
This has been addressed by https://github.com/w3c/did-resolution/pull/146