nim-libp2p
nim-libp2p copied to clipboard
Various cleanups
Some groundwork for V1:
- [ ] Mount PushIdentify by default in
newStandardSwitch
- [ ] Try to remove as much exported procs & fields as possible
- [x] Remove
raise
without explicit exception (should beraise exc
) - [x] Check that we don't try to catch
RangeError
(or other defects) - [x] Remove the need for stdlib random
- [x] Check the
new
/init
procs - [x] Remove deprecated procs
- [ ] Fix compilation warnings
- [ ] Try to lower the recursive dependency count as low as possible
Mount PushIdentify by default in newStandardSwitch
we've avoided any strictly unnecessary protocols so as to reduce the security surface area and information leaks in the "default" setup - by not having them enabled, users of libp2p are made aware of each protocol that they're enabling so they can analyze its usefulness for their application - eth2 for example likely shouldn't have it enabled
Done except the Push Identify