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

Key representation descriptions #43

Open clehner opened 2 years ago

clehner commented 2 years ago

This document says "Ed25519 / X25519", "Secp256k1", etc. Should it describe the representation formats more specifically? e.g. that a Secp256k1 key is encoded as an octet string according to SEC1 (with point compression), and Ed25519 according to RFC 8032? Or is it expected that the multicodec code sufficiently identifies the key and its expected representation(s)?

dmitrizagidulin commented 2 years ago

I think that the multicodec spec sufficiently identifies the key type & representation.