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

InvalidAccessError: key is not extractable #25

Closed
jaxoncreed opened this issue Dec 17, 2022 · 1 comment
Closed

InvalidAccessError: key is not extractable #25

jaxoncreed opened this issue Dec 17, 2022 · 1 comment

Comments

@jaxoncreed
Copy link

When running generateKey with extractable set to false:

await generateKey({"name": "ECDSA", "namedCurve": "P-256"}, false, ["sign", "verify"])

the following error is always thrown:

stringify error InvalidAccessError: key is not extractable

This was encountered by others too: smallbets/userbase#275

The above code should generate a key pair with an unextractable private key.

@sirpy
Copy link
Collaborator

sirpy commented Dec 18, 2022

That's simply impossible. As the library is a bridge between native space and the browser. if a key is not extractable it simply cannot be communicated back to the native space from the browser.

@sirpy sirpy closed this as completed Dec 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants