ion
ion copied to clipboard
Add different public key algorithm
Is it possible to add other public key algorithms to the Did Document like ED25519 , X25519 key agreement or custom key provided by external services?
You can add any public key JWK representation you want to the DID Document. See here for some options: https://w3c-ccg.github.io/ld-cryptosuite-registry/ - just remember that it needs to be one of the JWK variants.
Thanks
@csuwildcat
You can add any public key JWK representation you want to the DID Document. See here for some options: https://w3c-ccg.github.io/ld-cryptosuite-registry/ - just remember that it needs to be one of the JWK variants.
Does the public key need to be in the JWK format? For example, I would to add to the DidDocument the public key for service authentication but in multibase format or hex format as mentioned in the did core https://www.w3.org/TR/did-core/#referring-to-verification-methods
yes, IIRC ION only supports "publicKeyJwk" / "JsonWebKey2020"...
here are some did:key examples which you can test, https://github.com/transmute-industries/did-core/blob/main/packages/did-core-tests/fixtures/w3c-did-testsuite/did-key-transmute.json