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

refactor(experimental): a createPrivateKeyFromBytes helper #1913

Conversation

steveluscher
Copy link
Collaborator

@steveluscher steveluscher commented Nov 30, 2023

Summary

Sometimes you just have the bytes already, but you don't want to have to futz with crafting your own PKCS#8 payload. This helper will do it for you.

Note: I left the PKCS#8 header alone in the polyfill, because it's designed to eventually go away.

Test Plan

cd packages/keys/
pnpm test:unit:browser
pnpm test:unit:node

Closes #1813.

@steveluscher
Copy link
Collaborator Author

Current dependencies on/for this PR:

This stack of pull requests is managed by Graphite.

@steveluscher steveluscher force-pushed the 11-30-refactor_experimental_a_createPrivateKeyFromBytes_helper branch from d0c4937 to 883da3d Compare November 30, 2023 03:01
Copy link
Contributor

@mcintyre94 mcintyre94 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Copy link
Contributor

@lorisleiva lorisleiva left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤤

@steveluscher steveluscher merged commit 85b7dfe into master Nov 30, 2023
7 checks passed
@steveluscher steveluscher deleted the 11-30-refactor_experimental_a_createPrivateKeyFromBytes_helper branch November 30, 2023 11:42
Copy link
Contributor

Because there has been no activity on this PR for 14 days since it was merged, it has been automatically locked. Please open a new issue if it requires a follow up.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 15, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[experimental] Create an importPrivateKeyFromBytes() helper
3 participants