Commit Graph

14 Commits

Author SHA1 Message Date
Christophe de Carvalho
611de28aca Add basic support for multiaddr addresses and improvement around peer id (#75)
* Improved peer ID construction and usage

* peer id object is directly passed to the network

no need to cast from a string to an ID

* don't base64 encode the peer id when loading from public key

* use proper multiaddr address

- keep multiaddr object into peerstore instead of string
- update network code to use new multiaddr lib
- update tests and example

* don't instanciate peerstore object in constructor

This has side effect where the same peerstore
is used for different instance of Libp2p

* add connect method to basic_host

* use zaibon's fork of sbuss/py-multiaddr

* lint
2018-11-29 10:06:40 -05:00
stuckinaboot
7fa674dee2
Protocol muxing (#82)
* Implement protocol muxing

* Integrate protocol muxing into new stream and listen's conn handler

* Fix bugs in protocol muxing

* Remove blank line

* Add comments and fix linting issues

* Fix order of parameters to select_one_of to match interface

* Use array of protocol ids in new stream instead of protocol id

* Add basic protocol muxer tests

* Add todo

* Modify new stream to take in protocol ids

* Add check to all tests to ensure protocol id is saved to net stream properly

* Lint tests

* Fix lint issues

* Add todo

* Modify port numbers in tests

* Fix linting issues

* Add more documentation to functions

* Add docs describing classes and fix indent error
2018-11-28 13:51:50 -05:00
ZX
8bcffb67cb WIP CI Build Errors (#76)
* ignore TODO and kademlia

* remove unnecessary pass

* fixed swarm warnings

* fixed peerdata_interface warnings

* fixed peer warnings

* fixed rest of linting errors

* trying to fix last error

* fixed dup errors
2018-11-26 18:24:29 -05:00
zixuanzh
c5c9d3e5c9 lint 2018-11-12 13:02:49 -05:00
Robert Zajac
61e11a2716 adding additional bugfixed files 2018-11-12 11:00:43 -05:00
Robert Zajac
684cb90908 WIP swarm listen 2018-11-11 20:29:17 -05:00
Robert Zajac
976153c990 host returning peerstore 2018-11-11 12:38:55 -05:00
Robert Zajac
4681e1e08d libp2p end to end test 2018-11-11 12:36:15 -05:00
zixuanzh
9e64202e5c basic-host and remove context 2018-10-21 12:55:45 -04:00
zixuanzh
d512dfaf19 added linter 2018-10-15 01:52:25 -04:00
zixuanzh
a672a5017f update interfaces 2018-10-14 14:11:03 -04:00
zixuanzh
278a2d3b34 define interfaces 2018-10-14 13:47:06 -04:00
Alex Haynes
783347534b added basic_host.py 2018-10-14 10:51:00 -04:00
Alex Haynes
8b8788b705 added host folder 2018-10-14 10:17:43 -04:00