vc.js icon indicating copy to clipboard operation
vc.js copied to clipboard

Error: Ed25519KeyPair requires publicKeyBase58 or publicKeyJwk, recieved neither.

Open OR13 opened this issue 4 years ago • 3 comments

Caused by sec/v2 not understanding publicKeyJwk...

proposed solution, any suite that uses publicKeyJwk should have the result of get verification method to ensure the property exists as publicKeyJwk not sec:publicKeyJwk... move evidence that security context remains a blocker for adoption.

OR13 avatar Jan 31 '21 15:01 OR13

@gjgd I believe this is related to the issue you encountered with photon as well.

It should be resolvable with tests in this repo and use did:key and application/did+json.

OR13 avatar Jan 31 '21 15:01 OR13

@gjgd Is there a current quick fix for this via either the Ed25519KeyPair issue/verify APIs or via the context provided in the credential?

aaj3f avatar Apr 09 '21 18:04 aaj3f

@aaj3f this issue is caused by this:

https://github.com/transmute-industries/verifiable-data/blob/main/packages/ed25519-signature-2018/src/Ed25519Signature2018.ts#L56

https://github.com/transmute-industries/verifiable-data/blob/main/packages/ed25519-signature-2018/src/Ed25519Signature2018.ts#L260

It should be resolved in the latest version fo ed25519-signature-2018.

OR13 avatar Apr 10 '21 16:04 OR13