-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
I see several tests of features that apply to DID Resolution in general, not just the did:key method. I think those should be moved into the DID Resolution test suite, and/or be re-used consistently across future DID method test suites as well.
Here's a list where this might be the case:
- The scheme MUST be the value did
- MUST raise invalidDid error if scheme is not did
- If "didDocument.id" is not a valid DID, an invalidDid error MUST be raised
- If verificationMethod.id is not a valid DID URL, an invalidDidUrl error MUST be raised.
- For Signature Verification Methods, if options.enableExperimentalPublicKeyTypes is set to false and publicKeyFormat is not Multikey, JsonWebKey2020, or Ed25519VerificationKey2020, an invalidPublicKeyType error MUST be raised.
- For Encryption Verification Methods, if options.enableExperimentalPublicKeyTypes is set to false and publicKeyFormat is not Multikey, JsonWebKey2020, or X25519KeyAgreementKey2020, an invalidPublicKeyType error MUST be raised.
- If verificationMethod.controller is not a valid DID, an invalidDid error MUST be raised.
For 5. and 6., don't test this yet until #23 is resolved.
Metadata
Metadata
Assignees
Labels
No labels