Commit Graph

  • 5768daa9bf PR feedbacks mhchia 2019-08-20 16:42:34 +08:00
  • 2a1367b011 Apply suggestions from code review Kevin Mai-Husan Chia 2019-08-20 16:00:27 +08:00
  • 0b62321265 Fix test_security_multistream mhchia 2019-08-19 13:04:11 +08:00
  • de8d356955 Fix tests failure due to lack of peer id mhchia 2019-08-17 22:11:08 +08:00
  • bb7d37fd4f Fix msg encoding mhchia 2019-08-17 21:41:17 +08:00
  • 22b1a5395d A working plaintext 2.0 without validation mhchia 2019-08-17 01:38:50 +08:00
  • a0923d202a Move varint and delim read/write to toplevel mhchia 2019-08-17 00:19:37 +08:00
  • 5192944724 Update pb mhchia 2019-08-17 00:12:15 +08:00
  • 59b373b48a Add plaintext.proto mhchia 2019-08-16 17:08:22 +08:00
  • 7bc363f2fa Remove initiator in Mplex mhchia 2019-08-16 17:01:27 +08:00
  • 8217319c28 Merge pull request #258 from NIC619/adjust_coincurve_version_to_match_trinity Kevin Mai-Husan Chia 2019-08-22 22:19:25 +08:00
  • 87f5a86950 Adjust coincurve version NIC619 2019-08-22 18:01:41 +08:00
  • 46b4a446c3 Merge pull request #257 from mhchia/fix/add-missing-initpy Kevin Mai-Husan Chia 2019-08-22 16:32:34 +08:00
  • 2752e7a04b Ignore mypy error here mhchia 2019-08-22 15:58:10 +08:00
  • dbd4ed44dd Fix the issue when importing from other package mhchia 2019-08-22 15:36:17 +08:00
  • 6b05d9ab8f Merge pull request #252 from mhchia/fix/add-negotiation-when-upgrading-to-mplex Kevin Mai-Husan Chia 2019-08-21 12:30:22 +08:00
  • 550c23f9f9 PR feedback mhchia 2019-08-20 15:27:07 +08:00
  • 8596f7390f PR feedback: set protocol_id to constants mhchia 2019-08-20 11:02:21 +08:00
  • d7d8440b2c PR feedback: nitpicks mhchia 2019-08-19 23:18:00 +08:00
  • 4358a4bc89 Negotiate multiselect version for Muxer mhchia 2019-08-16 14:12:10 +08:00
  • 20aed4430e Merge pull request #256 from ralexstokes/patch-up-key-to-bytes Alex Stokes 2019-08-20 10:33:33 -07:00
  • e1d3f1601f Satisfy mypy Alex Stokes 2019-08-20 19:28:32 +02:00
  • 87d943aa39 Internalize the protobuf serialization to the concept of a Key Alex Stokes 2019-08-20 19:01:36 +02:00
  • 5d611801c7 Fix isort mhchia 2019-08-16 11:07:00 +08:00
  • 86d4ce1da8 Add delim_encode and delim_read mhchia 2019-08-15 23:31:26 +08:00
  • 8cd23abfe2 Remove the leftover merge related stuff mhchia 2019-08-16 10:54:28 +08:00
  • e293b89925 Fix mypy mhchia 2019-08-16 10:47:19 +08:00
  • c5f32bf431 PR feedback for MplexStream.read mhchia 2019-08-16 10:21:51 +08:00
  • 8699568d43 Update libp2p/stream_muxer/mplex/mplex_stream.py Kevin Mai-Husan Chia 2019-08-16 10:08:39 +08:00
  • f2c31f6fe3 Fix isort mhchia 2019-08-15 18:35:43 +08:00
  • b27cd0f24f Use bytearray over bytes mhchia 2019-08-15 18:31:18 +08:00
  • 92320523d5 Add the missing exceptions.py mhchia 2019-08-12 14:45:30 +08:00
  • e37b8bcf19 mypy: Add read_buffer_nonblocking in Mplex mhchia 2019-08-12 14:40:31 +08:00
  • f281e3e1db flake8 mhchia 2019-08-12 14:26:42 +08:00
  • 9f8276fa84 Support read(n=-1) mhchia 2019-08-12 14:25:17 +08:00
  • 9cb6ec1c48 Modify the behavior of MplexStream.read mhchia 2019-08-11 23:49:58 +08:00
  • 2485a00e24 Modify NetStream to read n bytes mhchia 2019-08-07 15:23:20 +08:00
  • dbdbcf7440 Merge pull request #250 from ralexstokes/add-secio-groundwork Alex Stokes 2019-08-15 19:32:17 -07:00
  • 7535a02da7 Clean up key gen Alex Stokes 2019-08-15 18:36:50 -07:00
  • d17e6f3392 Fix some test imports that got botched in rebase Alex Stokes 2019-08-15 16:40:31 -07:00
  • 9a4e23a803 mypy protobuf plugin requires keyword-based initializers Alex Stokes 2019-08-15 16:36:32 -07:00
  • 82bae341a7 Run isort over files that were missing it Alex Stokes 2019-08-15 16:26:59 -07:00
  • 2e3ffb9d53 Use types for {Private,Public}Key and address other missing type hints Alex Stokes 2019-08-15 16:26:22 -07:00
  • e7d2681fc0 Move base implementations into BaseSession Alex Stokes 2019-08-13 15:19:22 -07:00
  • cda74dd382 Update tests for new logic Alex Stokes 2019-08-02 18:36:58 -07:00
  • 9e18d7561d Supply local priv and pub key when upgrading to a secure transport Alex Stokes 2019-08-02 21:55:37 -07:00
  • 7942b7eaa7 Expose writer Alex Stokes 2019-08-02 18:36:42 -07:00
  • 20dd7d777a More efficiently remove trailing newline from message Alex Stokes 2019-08-02 18:00:41 -07:00
  • 0ebc8ffb21 Wire some missing properties up Alex Stokes 2019-08-02 17:41:29 -07:00
  • 02e073d85a Keep the host's private key for use in transports Alex Stokes 2019-08-02 17:39:19 -07:00
  • 879cbf1abd Add an "insecure session" that satisfies the ISecureConn interface Alex Stokes 2019-08-02 16:50:44 -07:00
  • fb43728661 Mark some slow tests as such Alex Stokes 2019-08-02 16:48:43 -07:00
  • 1e5357a1e1 Update the ISecureConn interface following the reference and simplify accordingly Alex Stokes 2019-08-02 16:04:46 -07:00
  • ab7653526f Code cleanup / formatting Alex Stokes 2019-08-02 16:02:07 -07:00
  • b98025c379 Move security transports into their respective sub-packages Alex Stokes 2019-08-02 14:50:20 -07:00
  • d50e1b6872 Use direct types over indirect types Alex Stokes 2019-08-02 14:49:54 -07:00
  • ff5eaf2429 Merge pull request #249 from ralexstokes/fix-mypy-protos Alex Stokes 2019-08-15 16:15:26 -07:00
  • b0e57c2be4 Merge pull request #245 from mhchia/fix/add-initpy-pb Alex Stokes 2019-08-15 16:04:09 -07:00
  • 0f81ca42a6 Add mypy protobufs plugin and regenerate protobufs Alex Stokes 2019-08-15 16:01:44 -07:00
  • 97308c897e Add the missing __init__.py in pb/ mhchia 2019-08-15 21:03:45 +08:00
  • 125c5d8e2c Adjust inheritance so that the MRO is clear for the chain of keys Alex Stokes 2019-08-14 09:30:23 -07:00
  • 3b19104284 Add missing ABC declaration following PR feedback in #240. Alex Stokes 2019-08-14 09:25:54 -07:00
  • 9977933fd1 Merge pull request #240 from ralexstokes/allow-multiple-identity-types Alex Stokes 2019-08-14 09:13:02 -07:00
  • 08e6f2a30c Update libp2p/crypto/secp256k1.py Alex Stokes 2019-08-14 08:47:42 -07:00
  • 53e583a068 Update libp2p/crypto/secp256k1.py Alex Stokes 2019-08-14 08:47:16 -07:00
  • 67744bcb0f Add a basic interop test for Go and Python peer IDs Alex Stokes 2019-08-13 21:21:08 -07:00
  • ad20d8cb00 Make a KeyPair dataclass for passing around key pairs Alex Stokes 2019-08-13 20:23:07 -07:00
  • 329bd4eb0f Clean up peer ID tests Alex Stokes 2019-08-13 18:19:14 -07:00
  • 6506079a36 Generate peer IDs according to the spec Alex Stokes 2019-08-13 18:19:01 -07:00
  • f9e859a8e9 Clean up peer.ID Alex Stokes 2019-08-13 18:18:29 -07:00
  • c40314a043 Use new RSA key type Alex Stokes 2019-08-13 18:18:12 -07:00
  • 61f78c8feb Add abstraction for a cryptographic key Alex Stokes 2019-08-13 18:17:08 -07:00
  • 2c68814bae Add coincurve dep for secp256k1 keys Alex Stokes 2019-08-13 18:16:26 -07:00
  • 3736592a7a Merge pull request #241 from ralexstokes/remove-codecov-ci Alex Stokes 2019-08-14 08:58:24 -07:00
  • dc262ddb58 Remove badge from README Alex Stokes 2019-08-14 08:49:38 -07:00
  • 9bff7b8ebf Remove code coverage check from CI Alex Stokes 2019-08-13 21:25:22 -07:00
  • 992585852f Use explicit imports in top-level declaration Alex Stokes 2019-08-13 17:43:21 -07:00
  • 3debd2c808 Run black and isort w/ the new config Alex Stokes 2019-08-13 14:36:42 -07:00
  • 87375e0f23 Use the default line length for black ('no configuration') Alex Stokes 2019-08-13 14:36:05 -07:00
  • a937c6f3fa Enable mypy in Makefile Alex Stokes 2019-08-13 14:32:54 -07:00
  • 28f6de37ee Fix the rest of the typing hints (#232) Chih Cheng Liang 2019-08-11 16:47:54 +08:00
  • dbb702548f add NegotiableTransport type Chih Cheng Liang 2019-08-08 15:58:30 +08:00
  • 9851ee01fb sort import Chih Cheng Liang 2019-08-08 14:24:54 +08:00
  • c536aa3e07 flake8 Chih Cheng Liang 2019-08-08 14:22:06 +08:00
  • 5903012e0e add typing to protocol_muxer Chih Cheng Liang 2019-08-07 18:02:30 +08:00
  • 0d709364f8 Merge pull request #226 from NIC619/add_msg_validator NIC Lin 2019-08-07 12:10:45 +08:00
  • a1dc68ab70 Apply PR feedback: add validation failed test to push_msg test NIC619 2019-08-07 11:53:54 +08:00
  • b26426214e Update libp2p/pubsub/pubsub.py NIC Lin 2019-08-07 11:43:32 +08:00
  • d4febea469 Message was not enforced to carry signature yet NIC619 2019-08-06 13:05:31 +08:00
  • 1cea1264a4 Raise exception when topic validation failed NIC619 2019-08-06 12:38:31 +08:00
  • 9a1e5fe813 Add ValidationError NIC619 2019-08-06 12:37:34 +08:00
  • 47643a67c6 Apply PR feedback NIC619 2019-08-06 12:32:18 +08:00
  • b96ef0e6c7 Fix: _is_subscribed_to_msg need only subscribe to one of the topics NIC619 2019-08-05 18:20:04 +08:00
  • a2efd03dfa Schedule push_msg into a task NIC619 2019-08-05 18:15:48 +08:00
  • 2bb7f42c20 Add validators to push_msg NIC619 2019-08-04 18:13:45 +08:00
  • 19ce5bb420 Add signature_validator stub and docstring NIC619 2019-08-04 18:13:34 +08:00
  • e1b86904e3 Add validate_msg and test NIC619 2019-08-04 18:13:23 +08:00
  • ec2c566e5a Fix validator return type and add docstring NIC619 2019-08-04 12:33:22 +08:00
  • f8ca4fa1ef Add get_msg_validators and test NIC619 2019-08-04 11:23:20 +08:00
  • 1ed14d0cc8 Add remove_topic_validator test NIC619 2019-08-04 11:11:35 +08:00