bitauth
bitauth copied to clipboard
Support for Web Cryptography API
This is on the horizon: http://www.w3.org/TR/WebCryptoAPI/
It would be great if bitauth was ready and supporting this as soon as implementations start to emerge in browsers.
+1, great idea. I'll be pursuing this shortly.
The secp256k1 curve unfortunately isn't supported. Also, with browser crypto.subtle support, I don't think there would be a need for this library, as it would be provided by the browser.
You can just specify the secp256k1 as ECDSA parameters: http://www.w3.org/TR/WebCryptoAPI/#dfn-EcdsaParams
Just perusing this document, this API is similar to BouncyCastle's.
I can't help but notice that crypto.subtle doesn't support ECDH shared secrets, but neither does WebCryptoAPI, so maybe I can sweet talk you guys into going the extra mile?