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
Christophe de Carvalho Pereira Martins
9123760191
WIP: chat example 2018-11-18 23:38:45 +01:00
zixuanzh
c5c9d3e5c9 lint 2018-11-12 13:02:49 -05:00
Robert Zajac
684cb90908 WIP swarm listen 2018-11-11 20:29:17 -05:00
zixuanzh
f77e7bee95 lint network 2018-10-31 23:31:52 +01:00
Stuckinaboot
bab97f5648 Implement new stream 2018-10-31 22:40:01 +01:00
zixuanzh
5f9c3026aa restructured 2018-10-31 19:56:24 +01:00
zixuanzh
4f5f953523 listener interface 2018-10-26 22:16:24 +02:00
Alex Haynes
5934eaffd0 added listen to interface 2018-10-21 13:44:39 -04: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
278a2d3b34 define interfaces 2018-10-14 13:47:06 -04:00