Skip to content

Remove node:crypto dependency #72

Description

@sidvishnoi

Consider using WebCrypto Subtle API instead of Node.js specific crypto API. It's used only for createHash here, which we can replace with crypto.subtle.digest.

The subtle crypto API is available in Node globalThis since v20.

This change (along with some more) will help us with Web Monetization extension, where we have to polyfill node:crypto module. See interledger/open-payments-node#7 and interledger/open-payments-node#4.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions