Describe the bug
The @veramo/did-provider-key package is creating unusual keys, starting with did:key:z7r8... instead of did:key:zQ3s...
To Reproduce
const identifier = agent.didManagerCreate({provider: 'did:key', options: { keyType: 'Secp256k1'}})
console.log(identifier.did)
// prints did:key:z7r8...
agent.resolveDid({didUrl: identifier.did})
// throws unsupported key type
Details
Some DID resolvers, including the one provided in @veramo/did-provider-key fail to resolve these DIDs since they match by prefix.
This seems to be caused by the fact that the Secp256k1 keys internally managed by Veramo (in kms-local) are uncompressed.
Versions (please complete the following information):
Veramo: 5.4.1 (but this probably applies to all previous versions that implement the did:key provider)
Bug severity 3
Describe the bug The
@veramo/did-provider-key
package is creating unusual keys, starting withdid:key:z7r8...
instead ofdid:key:zQ3s...
To Reproduce
Details Some DID resolvers, including the one provided in @veramo/did-provider-key fail to resolve these DIDs since they match by prefix. This seems to be caused by the fact that the Secp256k1 keys internally managed by Veramo (in kms-local) are uncompressed.
Versions (please complete the following information):