GoogleChromeLabs / webbundle-plugins

A Webpack plugin for generating Web Bundles output.
https://www.npmjs.com/package/webbundle-webpack-plugin
Apache License 2.0
59 stars 11 forks source link

Ed25519 is supported by Web Cryptography API. Create Web API version that does not depend on Node.js crypto module #68

Open guest271314 opened 10 months ago

guest271314 commented 10 months ago

I figured it out. Replaced all the Node-js specific crypto references with webcrypto equivalents; along with Uint8Array for the Buffer usage. The code can now be run by node, deno, and bun.

I have to clean up the test code then I'll probably file a PR.

guest271314 commented 10 months ago

@sonkkeli https://github.com/WICG/webpackage/tree/main/js/sign / wbn-sign implemented using Web Cryptography API.

guest271314 commented 10 months ago

https://github.com/guest271314/wbn-sign-webcrypto