Commit Graph

27 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
Robert Zajac
592ef69d8d Improved stream IDs 2018-11-25 11:05:56 -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
61e11a2716 adding additional bugfixed files 2018-11-12 11:00:43 -05:00
Robert Zajac
e2b7ad8926 minor fix 2018-11-11 20:46:32 -05:00
Robert Zajac
87c3da6c66 swarm listen done 2018-11-11 20:41:06 -05:00
Robert Zajac
f54a3c52d8 WIP swarm listen 2018-11-11 20:29:55 -05:00
Robert Zajac
684cb90908 WIP swarm listen 2018-11-11 20:29:17 -05:00
Alex Haynes
1bfa1f1ba5 upgrade connection 2018-11-11 19:37:07 -05:00
Stuckinaboot
f6f2f6725d Describe listen stub 2018-11-11 17:10:37 -05:00
Stuckinaboot
4851137ece Implement new stream function 2018-11-11 16:42:10 -05:00
Stuckinaboot
6ba5793c1d Reorganize folders (stream and connection) 2018-11-11 16:09:37 -05:00
Robert Zajac
4871e78512 merging master 2018-11-11 12:37:39 -05:00
Robert Zajac
4681e1e08d libp2p end to end test 2018-11-11 12:36:15 -05:00
Alex Haynes
35ce827ebe fixed imports in swarm 2018-11-11 11:58:48 -05:00
Alex Haynes
65fe2e400e connecting open_stream to stream constructor 2018-11-11 11:52:26 -05:00
zixuanzh
af6784546e entry point wip 2018-11-11 10:43:03 -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
Alex Haynes
15978eae11 added function to swarm 2018-10-21 13:51:55 -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
d0b12f5b4f update swarm 2018-10-14 16:39:44 -04:00
zixuanzh
278a2d3b34 define interfaces 2018-10-14 13:47:06 -04:00