This repository has been archived by the owner on Jul 21, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 52
Cross-Browser compatibility #18
Labels
status/ready
Ready to be worked
Comments
Oh, didn't realise from the convo in IRC that Mobile Chrome was also in jeopardy with the async crypto PR. The performance we get from moving to async crypto is quite significant plus the bundle size reduce. It would be interesting to know how easy it is to shim the missing algorithms in a way that they can be added to the global scope of the Browser, so that js-ipfs implementation wise doesn't have to change. Found https://www.npmjs.com/package/webcrypto-shim but seems that is far from being complete. |
5 tasks
Turns out, mobile chrome is fine, the version on Sauce Labs is just super old. |
What about Internet Explorer and Mobile Firefox? |
|
daviddias
added
status/ready
Ready to be worked
status/deferred
Conscious decision to pause or backlog
and removed
libp2p-backlog
status/ready
Ready to be worked
labels
Dec 2, 2016
daviddias
added
status/ready
Ready to be worked
and removed
status/deferred
Conscious decision to pause or backlog
labels
Feb 5, 2018
wemeetagain
pushed a commit
to ChainSafe/js-libp2p-crypto
that referenced
this issue
Apr 6, 2020
BREAKING CHANGE: Callback support has been dropped in favor of async/await. * feat: use async/await This PR changes this module to remove callbacks and use async/await. The API is unchanged aside from the obvious removal of the `callback` parameter. refs ipfs/js-ipfs#1670 * fix: use latest multihashing-async as it is all promises now
Closing because everything is Chrome now. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Due to the changes in #12 (the move to mainly webcrypto) browser support drops to only Firefox and Chrome. Even though Safari, IE11 and Edge implement
crypto.subtle
they don't support all algorithms that we require. NamelyAES-CTR
: Safari, Mobile Safari, Edge, IE11ECDH
: Safari, Mobile Safari,Mobile Chrome, EdgeRSASSA-PKCS1-v1_5
: Safari, Mobile Safari, IE11HMAC
: Mobile SafariGiven that currently only Firefox and Chrome support webrtc the impact of this might not be that large, but we should investigate in polyfills which can be included by projects that want to support other browsers.
We don't want to ship polyfills by default though, as that would increase the size of this and all dependent modules drastically.
Please give feedback if this is okay for now, or if this is an issue for you and of course solutions and suggestions.
The text was updated successfully, but these errors were encountered: