Commit Graph

20 Commits

Author SHA1 Message Date
Robert Zajac
2f33f55141 updating peerinfo variable style 2018-12-28 02:01:50 -05:00
Robert Zajac
4c0cd8730f updating to proper multiaddr and changing to p2p 2018-12-28 01:56:00 -05: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
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
Robert Zajac
db6b846251 Peer tests and minor peer features/bug fixes. 2018-11-02 16:16:46 -04:00
ZX
73dc67050b
Merge pull request #27 from zixuanzh/peer-info
Peer info
2018-10-30 00:07:08 +01:00
Stuckinaboot
869d2db847 Update exception type 2018-10-30 00:03:19 +01:00
Stuckinaboot
95d3847d5a Change peerinfo to a class rather than a dictionary 2018-10-29 14:09:47 +01:00
Stuckinaboot
e93ced5f6a Replace errors with exceptions 2018-10-29 13:13:39 +01:00
Robert Zajac
c3afb3d48a Removing notion of context from peerstore 2018-10-26 15:51:25 -04:00
Stuckinaboot
2544f8dff5 Update README 2018-10-21 15:30:01 -04:00
Stuckinaboot
7709df9c10 Add README 2018-10-21 15:23:39 -04:00
Stuckinaboot
7d124bb047 Lint peer classes 2018-10-21 15:15:53 -04:00
Stuckinaboot
88b7eda256 Implement peer store. Not yet linted or tested XD 2018-10-20 19:37:29 -04:00
Stuckinaboot
f62db09179 Add peer data implementation 2018-10-20 17:11:44 -04:00
Stuckinaboot
ced2f3dc59 Add interface for PeerData (not a libp2p req) 2018-10-20 16:55:37 -04:00
Stuckinaboot
eacb7eac6d Add interfaces for Address Book, PeerStore Metadata, and Peerstore 2018-10-20 16:55:15 -04:00
zixuanzh
d512dfaf19 added linter 2018-10-15 01:52:25 -04:00
zixuanzh
e4c2a52615 peer scaffolding 2018-10-14 10:39:33 -04:00