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 polyfill for generateKey() that implements Ed25519 key generation in userspace #1395

Merged
merged 2 commits into from
Jul 14, 2023

Conversation

steveluscher
Copy link
Collaborator

@steveluscher steveluscher commented Jul 13, 2023

refactor(experimental): a polyfill for generateKey() that implements Ed25519 key generation in userspace

Summary

For environments where Ed25519 key generation is not supported, this polyfill injects a suitable implementation that uses @noble/curves/ed25519 behind the scenes.

Here's the list of environments that do support it: WICG/webcrypto-secure-curves#20

Test Plan

cd packages/webcrypto-ed25519-polyfill
pnpm test:unit:browser
pnpm test:unit:node

Stack created with Sapling. Best reviewed with ReviewStack.

@steveluscher steveluscher force-pushed the pr1395 branch 2 times, most recently from 53ab9eb to 1b9abaf Compare July 14, 2023 23:30
…e 58 encoded address

## Summary

This is useful in cases where you, yourself, generated a keypair, and now you need to display the public key in your UI. Otherwise, you will typically already have the `Base58EncodedAddress` object.

## Test Plan

```
cd packages/keys/
pnpm test:unit:browser
pnpm test:unit:node
```
…s Ed25519 key generation in userspace

## Summary

For environments where Ed25519 key generation is not supported, this polyfill injects a suitable implementation that uses `@noble/curves/ed25519` behind the scenes.

Here's the list of environments that do support it: WICG/webcrypto-secure-curves#20

## Test Plan

```
cd packages/webcrypto-ed25519-polyfill
pnpm test:unit:browser
pnpm test:unit:node
```
@steveluscher steveluscher merged commit f0d60d9 into master Jul 14, 2023
@steveluscher steveluscher deleted the pr1395 branch July 14, 2023 23:38
@github-actions
Copy link
Contributor

🎉 This PR is included in version 1.78.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

@github-actions
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 Aug 15, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants