Alex Stokes
228032805a
Some code cleanup
2019-08-24 22:38:25 +02:00
Alex Stokes
d176115972
Add secio
to security upgrader suite
2019-08-24 22:37:46 +02:00
mhchia
22b1a5395d
A working plaintext 2.0 without validation
2019-08-22 22:53:46 +08:00
mhchia
8596f7390f
PR feedback: set protocol_id to constants
2019-08-21 11:43:24 +08:00
mhchia
4358a4bc89
Negotiate multiselect version for Muxer
...
`MuxerMultistream` is introduced to negotiate `Multiselect` version
before negotiating Multiplexer's version. This is required by
multistream 1.x
2019-08-21 11:43:24 +08:00
Alex Stokes
7535a02da7
Clean up key gen
2019-08-15 19:24:30 -07:00
Alex Stokes
2e3ffb9d53
Use types for {Private,Public}Key and address other missing type hints
2019-08-15 16:33:34 -07:00
Alex Stokes
9e18d7561d
Supply local priv and pub key when upgrading to a secure transport
2019-08-15 16:33:34 -07:00
Alex Stokes
02e073d85a
Keep the host's private key for use in transports
2019-08-15 16:33:33 -07:00
Alex Stokes
1e5357a1e1
Update the ISecureConn
interface following the reference and simplify accordingly
2019-08-15 16:33:33 -07:00
Alex Stokes
d50e1b6872
Use direct types over indirect types
2019-08-15 16:33:32 -07:00
Alex Stokes
ad20d8cb00
Make a KeyPair
dataclass for passing around key pairs
2019-08-14 09:00:40 -07:00
Alex Stokes
c40314a043
Use new RSA key type
2019-08-14 09:00:39 -07:00
Alex Stokes
992585852f
Use explicit imports in top-level declaration
2019-08-13 17:43:21 -07:00
Chih Cheng Liang
28f6de37ee
Fix the rest of the typing hints ( #232 )
...
* ignore kad
* fix swarm, and minor
* fix init and swarm
* ignore pb
* enable mypy
* fix basic host
* fix tcp
* fix mplex
* add typing for pb
* skip format pyi
* [mypy] no need to ignore pb now
* add typing to chat
2019-08-11 16:47:54 +08:00
Alex Stokes
7477b29508
run black w/ extended line length
2019-08-04 12:37:41 +08:00
Alex Stokes
c8005c8113
Run isort
in repo
2019-08-03 17:50:14 +08:00
Alex Stokes
bd8d45fbc1
Refactor ID to not use third-party type for cryptographic keys
...
Remove `ID.from_privkey` which would require specific knowledge per cryptosystem
2019-08-02 21:51:16 -07:00
mhchia
2e94fcf56c
Remove pylint:disable
2019-08-02 23:26:06 +08:00
NIC619
f00e80bc25
Fix wrong peer id type used in KadPeerInfo
2019-08-02 14:42:10 +08:00
NIC619
b928bdb356
Convert from base58/pubkey/privkey to class method
2019-08-02 14:42:10 +08:00
NIC619
80481252ca
Refactor ID to take in type bytes only
2019-08-02 14:42:10 +08:00
Alex Stokes
0ae9840928
Run black
over repo
2019-07-31 15:00:12 -07:00
Kevin Mai-Husan Chia
4422888f6f
Merge pull request #180 from mhchia/fix/include-all-pkgs-setuptools
...
Change `packages` in `setup`
2019-07-20 22:39:57 +08:00
mhchia
10511d4930
Clean up a bit
2019-07-09 23:55:43 +08:00
NIC619
900b6d9f37
Fix docstring
2019-06-21 11:51:11 -06:00
ZX
49384ad3d7
Merge pull request #159 from libp2p/security-dev
...
Implement security
2019-05-07 09:56:19 -04:00
Alex Haynes
ea4fd8e81f
requested changes
2019-05-05 14:32:41 -04:00
stuckinaboot
ff500e6d8e
Merge branch 'master' into security-dev
2019-05-01 17:26:23 -04:00
Stuckinaboot
4333c2d061
Fix linting issues'
2019-05-01 13:54:19 -04:00
Stuckinaboot
f59f27d4d0
Integrate security selectin into libp2p system
2019-04-30 03:09:05 -04:00
zixuanzh
8ab387ac05
refactor add_router in swarm
2019-04-28 15:00:43 -04:00
ZX
21a99287b1
Merge branch 'master' into router-refactor
2019-04-28 14:51:54 -04:00
zixuanzh
35f75c4dcd
move transport to swarm constructor
2019-04-24 22:36:09 -04:00
Alex Haynes
7962060cc0
refactored routedhost into router passed to swarm
2019-04-24 22:17:35 -04:00
Alex Haynes
c4f8bf6ce1
fixed requested changes
2019-04-24 20:59:22 -04:00
Alex Haynes
e7424d3673
added RoutedHost and updated new_node to support it
2019-04-20 17:35:05 -04:00
Christophe de Carvalho
cd8cb5c443
refactoring of the code to implement IAdvertiser and IDiscoverer
2019-03-26 20:16:16 +01:00
zixuanzh
d67aeb1974
fix linting issues
2019-03-17 21:30:56 -04:00
zixuanzh
fea26d9087
refactor new_node
2019-03-17 19:20:46 -04:00
Robert Zajac
82840b5e6c
Stream rearchitecture ( #126 )
...
* Add generic protocol handler
* Add generic protocol handler to stream muxing pipeline
* Modify conn_handler to only deal with connections
* mplex accept stream architecture changes
* Add create generic protocol handler
* Fix minor bugs
* who would win 4 devs or one not
* Debugging
* rearch with handle_incoming infinite loop, seems to work, needs cleanup"
* passing linting, still needs cleanup
* fixing linting again; code still needs cleanup
* fixing tests; code still needs cleanup
* adding test cleanup and task cleanup, removing prints
* linting, and cleanup complete
* storing connections based on peer id
* remove dead code
* remove unnecessary peer_id
2019-02-24 20:58:23 -05:00
Alexander Koshkin
ce6ddb27a9
Migrate to new project structure.
2019-01-09 21:38:56 +03:00
zixuanzh
5f9c3026aa
restructured
2018-10-31 19:56:24 +01:00