open-payments icon indicating copy to clipboard operation
open-payments copied to clipboard

Transition to SubtleCrypto from Node's crypto module

Open raducristianpopa opened this issue 1 year ago • 0 comments

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 avatar Feb 06 '24 07:02 raducristianpopa