Commit Graph

8 Commits

Author SHA1 Message Date
Alexander Koshkin
d629a0c85e Fix examples/chat/chat.py. Extract test requirements to .travis.yaml file. 2019-01-09 22:01:46 +03:00
Christophe de Carvalho Pereira Martins
97e554e265
make the chat example a runnable test
fixes #71
2018-12-21 09:03:20 +01:00
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
csunny
c950e065f3 Add more info for chat example 2018-11-26 16:34:38 +08:00
csunny
22010447b5 fix run error 2018-11-26 15:56:43 +08:00
zixuanzh
ff6fdccea4 refactor libp2p 2018-11-25 01:45:13 -05:00
Christophe de Carvalho Pereira Martins
b80df48d37
move chat.py into examples directory 2018-11-19 17:29:48 +01:00