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

[javascript] Switch to WebCrypto API #1166

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

arjunyel
Copy link
Contributor

Motivation

Edge runtimes like Cloudflare Workers bill based on on milliseconds of CPU time which means its important for cryptography operations to use the WebCrypto API. Also one less dependency :D

Solution

Replaced fast-sha256 with the WebCrypto API.

Breaking changes:

  1. Now requires the environment to have the WebCrypto API available. Its enabled by default on Node LTS and can be easily polyfilled in older environments.

  2. Both sign and verify are now async

Based on #1163

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

Successfully merging this pull request may close these issues.

None yet

1 participant