did-key.js icon indicating copy to clipboard operation
did-key.js copied to clipboard

Doesn't handle bls type `zUC7`

Open brianorwhatever opened this issue 4 years ago • 1 comments

This string is only found in the readme. The credentials from the vc-http-api test suite all use this did:key type which is the one found in the spec https://w3c-ccg.github.io/did-method-key/#bls-12381. These VCs are failing using this library. Maybe I am missing something?

brianorwhatever avatar Sep 16 '21 18:09 brianorwhatever

Yep, this is a bug.

https://github.com/transmute-industries/did-key.js/blob/main/packages/did-key.js/src/index.ts#L26

This file is missing the prefixes for G1 and G2 by themselves.

OR13 avatar Sep 20 '21 21:09 OR13