Open bblfish opened 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.
This is now stable:2
.
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.