Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

didkit-wasm: Missing elliptic curve point in JWK #272

Open
Harasz opened this issue Mar 5, 2022 · 2 comments
Open

didkit-wasm: Missing elliptic curve point in JWK #272

Harasz opened this issue Mar 5, 2022 · 2 comments
Labels
regression Bugs that returned, and/or functionality that was inadvertently removed

Comments

@Harasz
Copy link

Harasz commented Mar 5, 2022

Hi,
I got this Missing elliptic curve point in JWK weird error coming from @spruceid/didkit-wasm-node and @spruceid/didkit-wasm. Here is my code:

const keyType = {
      kty: 'EC',
      crv: 'secp256k1',
      alg: 'ES256K-R',
      key_ops: ['signTypedData'],
};

const stringifyCredential = JSON.stringify(credential);
const preparedVC = await DIDKit.prepareIssueCredential(
      stringifyCredential,
      JSON.stringify(proofOptions),
      JSON.stringify(keyType)
);

When I am using didkit-wasm-node everything is fine. Is this some bugs or some API has changed?

@clehner
Copy link
Contributor

clehner commented Mar 7, 2022

Hi @Harasz,
This was inadvertently broken in spruceid/ssi#253. The public key material ("x" and "y" values per RFC 8812) has to be provided now. Opened spruceid/ssi#405 to track this.

@Harasz
Copy link
Author

Harasz commented Mar 8, 2022

Okay, thanks for you answer. Can't wait on fix!

@clehner clehner added the regression Bugs that returned, and/or functionality that was inadvertently removed label Apr 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
regression Bugs that returned, and/or functionality that was inadvertently removed
Projects
None yet
Development

No branches or pull requests

2 participants