ion icon indicating copy to clipboard operation
ion copied to clipboard

Add different public key algorithm

Open thomas-tran opened this issue 3 years ago • 4 comments

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?

thomas-tran avatar Jun 27 '21 23:06 thomas-tran

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.

csuwildcat avatar Jun 27 '21 23:06 csuwildcat

Thanks

thomas-tran avatar Jun 28 '21 00:06 thomas-tran

@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

image

thomas-tran avatar Jun 29 '21 23:06 thomas-tran

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

OR13 avatar Jun 29 '21 23:06 OR13