You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The did:key 0.7 spec introduces some options (with defaults) in the document creation algorithm.
The options are:
publicKeyFormat (should be multiKey or Ed25519VerificationKey2020)
enableExperimentalPublicKeyTypes (defaults to false)
defaultContext (defaults to [https://www.w3.org/ns/did/v1])
enableEncryptionKeyDerivation (should be true to enable keyAgreementKey )
These options should be passed in on didDocument creation regardless of if creating from from privateKey or publicKey seed.
These options also have some validation rules behind them:
If publicKeyFormat is not known to the implementation, an unsupportedPublicKeyType error MUST be raised.
If options.enableExperimentalPublicKeyTypes is set to false and publicKeyFormat is not Multikey, JsonWebKey2020, or Ed25519VerificationKey2020, an invalidPublicKeyType error MUST be raised.
If options.enableExperimentalPublicKeyTypes is set to false and publicKeyFormat is not Multikey, JsonWebKey2020, or X25519KeyAgreementKey2020, an invalidPublicKeyType error MUST be raised.
The text was updated successfully, but these errors were encountered:
The
did:key
0.7 spec introduces some options (with defaults) in the document creation algorithm.The options are:
multiKey
orEd25519VerificationKey2020
)https://www.w3.org/ns/did/v1
])keyAgreementKey
)These options should be passed in on
didDocument
creation regardless of if creating from fromprivateKey
orpublicKey
seed.These options also have some validation rules behind them:
The text was updated successfully, but these errors were encountered: