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

Transition to SubtleCrypto from Node's crypto module #416

Open
3 tasks
raducristianpopa opened this issue Feb 6, 2024 · 0 comments
Open
3 tasks

Transition to SubtleCrypto from Node's crypto module #416

raducristianpopa opened this issue Feb 6, 2024 · 0 comments
Labels
type: enhancement New feature or request

Comments

@raducristianpopa
Copy link
Member

raducristianpopa commented Feb 6, 2024

Context

Currently, using @interledger/http-signature-utils and @interledger/open-payments outside of a Node environment is impractical, primarily due to the use on Node's crypto module. The SubtleCrypto API, while accessible in both browser and Node environments, does not yet offer support for Ed25519 or is experimental:

  • In Chromium-based browsers, the algorithm is accessible by activating the Experimental Web Platform Features flag
  • In Firefox there is no support the algorithm;
  • Safari has support in a stable release;
  • In Node, the Ed25519 algorithm is still considered experimental;

Ed25519 implementation status

Todos

  • Transition to SubtleCrypto from Node's crypto module once the Ed25519 curve support becomes stable across all browsers
    • @interledger/http-signature-utils
    • @interledger/open-payments
@raducristianpopa raducristianpopa added the type: enhancement New feature or request label Feb 6, 2024
@raducristianpopa raducristianpopa self-assigned this Feb 6, 2024
@raducristianpopa raducristianpopa changed the title Drop the usage of the node crypto module for http-signature-utils Transition to SubtleCrypto from Node's crypto module Feb 8, 2024
@raducristianpopa raducristianpopa removed their assignment Feb 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement New feature or request
Projects
Status: Backlog
Development

Successfully merging a pull request may close this issue.

1 participant