97308c897e
Add the missing __init__.py in pb/
...
Error: https://circleci.com/gh/mhchia/trinity/5342?utm_campaign=vcs-integration-link&utm_medium=referral&utm_source=github-build-link
2019-08-15 21:03:45 +08:00
125c5d8e2c
Adjust inheritance so that the MRO is clear for the chain of keys
2019-08-14 09:30:23 -07:00
3b19104284
Add missing ABC declaration following PR feedback in #240 .
2019-08-14 09:25:54 -07:00
08e6f2a30c
Update libp2p/crypto/secp256k1.py
...
pass the secret on to `coincurve` lib
Co-Authored-By: NIC Lin <twedusuck@gmail.com >
2019-08-14 09:02:06 -07:00
53e583a068
Update libp2p/crypto/secp256k1.py
...
Pass the secret on to `coincurve` lib
Co-Authored-By: NIC Lin <twedusuck@gmail.com >
2019-08-14 09:02:06 -07:00
ad20d8cb00
Make a KeyPair dataclass for passing around key pairs
2019-08-14 09:00:40 -07:00
6506079a36
Generate peer IDs according to the spec
2019-08-14 09:00:39 -07:00
f9e859a8e9
Clean up peer.ID
2019-08-14 09:00:39 -07:00
c40314a043
Use new RSA key type
2019-08-14 09:00:39 -07:00
61f78c8feb
Add abstraction for a cryptographic key
2019-08-14 09:00:39 -07:00
992585852f
Use explicit imports in top-level declaration
2019-08-13 17:43:21 -07:00
3debd2c808
Run black and isort w/ the new config
2019-08-13 14:36:42 -07:00
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
dbb702548f
add NegotiableTransport type
2019-08-08 16:09:02 +08:00
9851ee01fb
sort import
2019-08-08 16:09:02 +08:00
c536aa3e07
flake8
2019-08-08 16:09:02 +08:00
5903012e0e
add typing to protocol_muxer
2019-08-08 16:09:02 +08:00
b26426214e
Update libp2p/pubsub/pubsub.py
...
Co-Authored-By: Kevin Mai-Husan Chia <mhchia@users.noreply.github.com >
2019-08-07 11:43:32 +08:00
d4febea469
Message was not enforced to carry signature yet
2019-08-06 13:05:31 +08:00
1cea1264a4
Raise exception when topic validation failed
2019-08-06 12:38:31 +08:00
9a1e5fe813
Add ValidationError
2019-08-06 12:37:34 +08:00
47643a67c6
Apply PR feedback
2019-08-06 12:32:18 +08:00
b96ef0e6c7
Fix:
...
`_is_subscribed_to_msg` need only subscribe to one of the topics
2019-08-05 18:20:04 +08:00
a2efd03dfa
Schedule push_msg into a task
2019-08-05 18:19:32 +08:00
2bb7f42c20
Add validators to push_msg
2019-08-05 18:19:32 +08:00
19ce5bb420
Add signature_validator stub and docstring
2019-08-05 18:19:32 +08:00
e1b86904e3
Add validate_msg and test
2019-08-05 18:19:32 +08:00
ec2c566e5a
Fix validator return type and add docstring
2019-08-05 18:19:32 +08:00
f8ca4fa1ef
Add get_msg_validators and test
2019-08-05 18:19:32 +08:00
cf69f7e800
Rename to set_topic_validator and add test
2019-08-05 18:19:31 +08:00
b1f4813195
Add add/remove topic validator functions
2019-08-05 18:19:31 +08:00
3973f1d13c
Add pubsub.topic_validators
2019-08-05 18:19:31 +08:00
cb3a59e0ac
ttl as int
2019-08-05 17:02:18 +08:00
63c733c3f5
PR feedback
2019-08-05 16:58:34 +08:00
ccfb6eb35f
remove constructor of TCP
2019-08-05 16:56:56 +08:00
e763f57930
run isort
2019-08-05 11:47:23 +08:00
7a04ebb51f
run black
2019-08-05 11:21:20 +08:00
9e0a806218
move stream and connection interfaces to abc
2019-08-05 11:17:38 +08:00
c804f5ad19
minor
2019-08-05 10:47:59 +08:00
29091266fc
add still needed TYPE_CHECK
2019-08-05 10:46:49 +08:00
87ef2e4618
remove if TYPE_CHECKING as much as possible
2019-08-05 10:46:49 +08:00
4c9a930f84
stream_muxer done
2019-08-05 10:45:47 +08:00
dadac423f2
typed muxed_connection_interface.py
2019-08-05 10:45:47 +08:00
b64ed9fd6f
typed mplex.utils
2019-08-05 10:45:46 +08:00
239a5c88fb
add typing to mplex
2019-08-05 10:45:46 +08:00
36b7e8ded9
Refactor HeaderTags
2019-08-05 10:45:46 +08:00
29fbb9e40a
add typing to transport
2019-08-05 10:42:43 +08:00
7477b29508
run black w/ extended line length
2019-08-04 12:37:41 +08:00
cb301fcc51
Opt-out of linting on the special cases we have, given new ignore rules
2019-08-04 12:37:27 +08:00
69ec86c871
Remove grpc dependency
2019-08-03 11:17:28 -07:00