-
Notifications
You must be signed in to change notification settings - Fork 52
Conversation
- add buffer related to ipfs/js-ipfs#2924 - remove unnecessary eslint ignore - remove tweelnacl and use node-forge - remove browserify-aes and use node-forge - use multibase to encode b58 - require only sha256 from multihashing - reduce bundle size after all the deps here ipfs/js-ipfs#2924 are merged libp2p-crypto will be able to be bundle with `node: false` 🎉
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks great! We need to test js-libp2p
with this first
@hugomrdias have you done any downstream testing of this with libp2p or ipfs?
Do you have any numbers on the reduction? Looks like we should add bundlesize to CI. |
ah yes will update bundle size in aegir.js 155KB -> 122.65KB Would nice to merge this already with libp2p/js-libp2p-crypto-secp256k1#25 these numbers include this PR.
not yet but i will im following the path :) i will report here my findings also you can track here ipfs/js-ipfs#2924 everything in there should work together in order. |
also dont bother fixing the bundle size github check i will do it later. |
Co-Authored-By: Jacob Heun <jacobheun@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tests are all passing in libp2p, libp2p interop and js-ipfs with this. Looks good!
after all the deps here ipfs/js-ipfs#2924 are merged, libp2p-crypto will be able to be bundle with
node: false
🎉