w3c-ccg / did-method-key

DID (Decentralized Identifier) did:key method for embedding keys in DID urls
https://w3c-ccg.github.io/did-method-key
Other
18 stars 12 forks source link

Support for other encodings #26

Open nikosft opened 3 years ago

nikosft commented 3 years ago

Hi, I am wondering since did:key supports multibase, why the draft enforces base58btc. We are using Ed25519 keys, but we prefer base64url, so it will be nice if we could have something like:

did:key:uXX6varD0RjXZfW58v4DGtd7kltX6Kzn9fghX94LvrMDxo

(XX should be replaced with the multicodec part)

OR13 commented 3 years ago

I believe base64url encoding is legal, but nobody is using it or bothered to provide test vectors for it.

OR13 commented 3 years ago

other encodings are supported, but a PR to the spec might make this clearer.