typelevel / bobcats

Typelevel's very own CryptoKitties!
Apache License 2.0
28 stars 9 forks source link

remove dependence on scala-js-dom facade from asymmetric keys #53

Open bblfish opened 2 years ago

bblfish commented 2 years ago

The branch on which PR https://github.com/typelevel/bobcats/pull/48 is located, used the browser dom web crypto API to get going (in order to make the task more manageable). Node JS uses the same Web Crypto API but somewhat differently, and so it seems better to build a local facade as is done for the symmetric keys.

Implementing https://github.com/typelevel/bobcats/issues/52 will likely depend on this.

Implementing more cryptographic algorithms, such as in https://github.com/typelevel/bobcats/issues/51, would help lay the groundwork of tests to help work out what parts of the facade need to be written.

armanbilge commented 2 years ago

Node JS uses the same Web Crypto API but somewhat differently

Minor clarification: Node.js has its own crypto APIs. Also, in recent versions they've experimentally provided the Web Crypto API as well, but so far there are no stability guarantees for it.

https://nodejs.org/api/webcrypto.html#web-crypto-api

yilinwei commented 1 year ago

This is now stable:2.