Commit Graph

  • 350cc04c97 Allow the key pair to drive ID generation Alex Stokes 2019-09-03 13:26:58 -07:00
  • eaeb36c1d9 Merge pull request #274 from ralexstokes/add-identity-hash-for-peer-ids Alex Stokes 2019-09-03 22:21:58 +02:00
  • 345e696a7d Add option to inline "short" public keys for peer IDs Alex Stokes 2019-09-03 13:14:04 -07:00
  • 961e51fa2e Remove leftover prints mhchia 2019-09-03 23:39:29 +08:00
  • 7f20ab781d Fix gosssipsub tests mhchia 2019-09-03 23:37:34 +08:00
  • d7bce941d8 Fix wrong spelling mhchia 2019-09-03 23:36:31 +08:00
  • b23bf5d704 Avoid isort sorting the import wrong mhchia 2019-09-03 23:00:31 +08:00
  • 4f7bb30d82 Add INetStream to type StreamReader mhchia 2019-09-03 22:59:44 +08:00
  • c6d81d70b3 Try 3.7-dev in CI mhchia 2019-09-03 22:25:29 +08:00
  • d1b0340164 Update bindings version mhchia 2019-09-03 21:55:07 +08:00
  • 2ba7948f95 Update bindings version mhchia 2019-09-03 18:52:55 +08:00
  • 5280f3965c Update install script for interop mhchia 2019-09-03 17:41:17 +08:00
  • 749ff275ed Refactor make_p2pd mhchia 2019-09-03 16:55:42 +08:00
  • 7385a7a677 Add is_gossipsub fixture in interop test mhchia 2019-09-03 16:49:00 +08:00
  • 33dae87c35 Add pubsub test for gossipsub mhchia 2019-09-03 16:07:44 +08:00
  • fd1f466002 Fix: failed to open stream using existing conn mhchia 2019-09-03 14:12:16 +08:00
  • 194b494057 Tested against subscriptions and publish mhchia 2019-09-02 23:21:57 +08:00
  • 3717dc9adf Add helper functions mhchia 2019-09-02 21:01:13 +08:00
  • a883816881 Add connect utility function mhchia 2019-09-02 18:40:12 +08:00
  • 56ef0b962c Add test for host connect and disconnect mhchia 2019-09-02 17:32:15 +08:00
  • dfd9ebdc5e Change PeerInfo to remove dep on PeerData mhchia 2019-09-02 13:52:33 +08:00
  • b77834d129 Use asyncio.subprocess over pexpect mhchia 2019-09-01 23:39:53 +08:00
  • 1b5d064a8d Add utility functions for libp2p bindings mhchia 2019-08-31 00:18:22 +08:00
  • db858e467c Merge pull request #273 from mhchia/fix/secio-pb-initpy Kevin Mai-Husan Chia 2019-09-02 14:27:59 +08:00
  • 77a0cc3a87 Add the missing __init__.py mhchia 2019-09-02 14:18:52 +08:00
  • 73ae5a35ec Merge pull request #270 from mhchia/fix/mplex-stream-id-and-interop Kevin Mai-Husan Chia 2019-08-31 23:56:43 +08:00
  • b955c0fa02 Explicitly import ID, Transport from secio mhchia 2019-08-31 22:38:46 +08:00
  • aa0866698f PR feedback: Add check in Swarm.close_peer mhchia 2019-08-31 22:37:59 +08:00
  • 9e8a6bdf29 Update tests/conftest.py Kevin Mai-Husan Chia 2019-08-31 22:32:43 +08:00
  • 1e59438f25 Update libp2p/network/swarm.py Kevin Mai-Husan Chia 2019-08-31 22:32:32 +08:00
  • cec2aea928 Move shared fixtures and constants to files mhchia 2019-08-29 22:38:08 +08:00
  • 9ceb5f55bb Call make_echo_proc with is_host_insecure mhchia 2019-08-29 22:08:27 +08:00
  • b2c5371323 Add TODO for Swarm.connections mhchia 2019-08-29 22:00:07 +08:00
  • c61a06706a Refactor interop tests and factories mhchia 2019-08-29 21:38:06 +08:00
  • 64c0dab3af Fix isort mhchia 2019-08-29 00:01:48 +08:00
  • e0399beed8 Fix tar argument mhchia 2019-08-28 23:50:46 +08:00
  • 15f62dff68 Use go12 in CI mhchia 2019-08-28 23:48:25 +08:00
  • b726d7c9da Add tox and CI for interop mhchia 2019-08-28 23:39:33 +08:00
  • 34a4d7b0ed Add the missing StreamID class mhchia 2019-08-28 21:45:18 +08:00
  • d35b8ffc64 Conform stream_id to go-mplex mhchia 2019-08-28 21:43:34 +08:00
  • 9b60e1757d Merge pull request #269 from ralexstokes/add-reset-to-network-stream Alex Stokes 2019-08-26 21:27:57 +02:00
  • a193ae81fd Fix typo w/ header tag under different reset scenarios Alex Stokes 2019-08-26 11:39:30 -07:00
  • c5eda4065d Expose reset method on NetStream Alex Stokes 2019-08-26 11:38:39 -07:00
  • 98a0e76dda Merge pull request #268 from mhchia/fix/mplex-interop Alex Stokes 2019-08-26 19:51:57 +02:00
  • 66c3bacf7e Merge pull request #254 from ralexstokes/implement-secio Alex Stokes 2019-08-26 19:22:00 +02:00
  • fa0acd9fc5 Apply PR feedback Alex Stokes 2019-08-26 10:03:12 -07:00
  • c1ffb03f77 Update comment to reflect correct function Alex Stokes 2019-08-26 09:51:49 -07:00
  • b6c8ab0dc9 Fix #259: Use the unsigned LEB128 impl from py-wasm mhchia 2019-08-26 20:35:17 +08:00
  • d59870ebbf Fix MplexStream error mhchia 2019-08-26 20:26:22 +08:00
  • 5b122d04b2 Merge pull request #267 from NIC619/fix_conn_attr_in_mplex NIC Lin 2019-08-25 16:53:29 +08:00
  • 5e68aff1d1 Fix conn attribute and docstring in mplex NIC619 2019-08-25 14:42:44 +08:00
  • f08aa339b4 Verify the channel can pass some plaintext Alex Stokes 2019-08-24 23:26:26 +02:00
  • 737195f461 Simplify testing connection w/ other simplifications Alex Stokes 2019-08-24 23:15:31 +02:00
  • 10e30beb42 Disable "friendly" IDs for tests that expect a full string Alex Stokes 2019-08-24 22:57:22 +02:00
  • a363ba97d1 Work in terms of the IRawConnection abstraction Alex Stokes 2019-08-24 22:52:09 +02:00
  • eb5ef39399 Convert message IO to work w/ a RawConnection. Alex Stokes 2019-08-24 22:47:56 +02:00
  • 7c004a4e14 Mypy fixes Alex Stokes 2019-08-24 20:36:33 +02:00
  • 44e5de636f Add "friendly" peer ID string representation for debugging Alex Stokes 2019-08-24 20:36:00 +02:00
  • 852609c85d Clean up base session type Alex Stokes 2019-08-24 20:33:55 +02:00
  • 9355f33da8 Add basic test for secio Alex Stokes 2019-08-24 19:58:56 +02:00
  • b8c0ef9ebb Fix bugs in secio implementation Alex Stokes 2019-08-24 19:57:56 +02:00
  • 228032805a Some code cleanup Alex Stokes 2019-08-24 11:43:27 +02:00
  • 3f4589d497 Get tests working Alex Stokes 2019-08-24 00:21:47 +02:00
  • d176115972 Add secio to security upgrader suite Alex Stokes 2019-08-24 00:00:11 +02:00
  • 376a5d4fc6 Adjust callsite Alex Stokes 2019-08-23 23:49:59 +02:00
  • 1adef05e94 Typing and linting fixes Alex Stokes 2019-08-23 23:43:36 +02:00
  • 0fa3331b8c Add clearer indication of "self encryption" Alex Stokes 2019-08-23 23:02:53 +02:00
  • 8e913a3faa Dispatch serialization of keys based on key type Alex Stokes 2019-08-23 22:12:13 +02:00
  • 4d30b31c55 Finish first pass at secio implementation Alex Stokes 2019-08-23 16:55:49 +02:00
  • af2e50aaf4 Add facility for authenticated encryption Alex Stokes 2019-08-23 16:55:31 +02:00
  • 228c17ae9e Add ECDH key exchange utility Alex Stokes 2019-08-23 16:54:59 +02:00
  • fb13dfa7b3 Add sign and verify operations for secp256k1 keys Alex Stokes 2019-08-23 16:54:31 +02:00
  • 3c97a5a0ed Add ECC key implementation Alex Stokes 2019-08-23 16:54:16 +02:00
  • 91e11f3ec0 [wip] more secio implementation Alex Stokes 2019-08-22 17:55:36 +02:00
  • 0cc3fc24a7 Add source for some secure bytes, e.g. to provide a nonce Alex Stokes 2019-08-22 17:55:05 +02:00
  • b59c5d6ca1 Add "msgio" functions Alex Stokes 2019-08-22 17:54:49 +02:00
  • 26165b0729 [wip] sketch of secio handshake Alex Stokes 2019-08-16 18:54:06 -07:00
  • fd08bcf624 Add secio protobufs Alex Stokes 2019-08-16 14:08:54 -07:00
  • 23f53ef954 Allow optional peer ID in a security session Alex Stokes 2019-08-16 14:08:27 -07:00
  • 27c0a4f77b formatting Alex Stokes 2019-08-16 13:04:55 -07:00
  • 3e07faf343 Merge pull request #266 from ralexstokes/remove-unrelated-cde Alex Stokes 2019-08-24 22:22:06 +02:00
  • d764ca2884 Merge pull request #265 from ralexstokes/add-wait-closed Alex Stokes 2019-08-24 22:17:29 +02:00
  • 7ccdeaf308 Remove test suite for asyncio, *not* py-libp2p Alex Stokes 2019-08-24 22:10:47 +02:00
  • 5b32bfdd3f Add call to wait_closed method of asyncio.StreamWriter Alex Stokes 2019-08-24 22:06:24 +02:00
  • d9883ee4f0 Merge pull request #263 from ralexstokes/remove-stream-from-connection Alex Stokes 2019-08-24 21:58:59 +02:00
  • 9c5fb4fa5a Encapsulate concept of a "stream id" to a "muxed" connection Alex Stokes 2019-08-24 21:12:08 +02:00
  • e29c1507bf remove unused fields Alex Stokes 2019-08-24 21:02:30 +02:00
  • 9a74797068 Merge pull request #264 from ralexstokes/remove-simple-security Alex Stokes 2019-08-24 21:49:29 +02:00
  • 73495038e1 remove simple security Alex Stokes 2019-08-24 21:37:11 +02:00
  • 1790e48c99 Remove deprecated file Alex Stokes 2019-08-24 21:36:30 +02:00
  • da3c8be464 Merge pull request #253 from mhchia/feature/plaintext-2.0.0 Kevin Mai-Husan Chia 2019-08-22 23:40:02 +08:00
  • b516579256 Remove the unnecessary RSAPrivateKey.from_bytes mhchia 2019-08-22 22:54:14 +08:00
  • c1eacf221f PR feedback mhchia 2019-08-21 23:56:04 +08:00
  • 7c630df610 Update libp2p/security/insecure/transport.py Kevin Mai-Husan Chia 2019-08-21 23:17:49 +08:00
  • 16a4fd33c1 PR feedbacks mhchia 2019-08-21 23:04:59 +08:00
  • 3e04480d62 Raise HandshakeFailure in transport mhchia 2019-08-21 15:12:35 +08:00
  • 80452d9589 Fix make_exchange_message to use the new API mhchia 2019-08-21 13:59:42 +08:00
  • 921bfb65cc Verify the remote pubkey and peer_id mhchia 2019-08-20 23:54:33 +08:00
  • ef476e555b Use RawConnection.read mhchia 2019-08-20 18:09:36 +08:00
  • 0b466ddc86 Add lock to RawConnection mhchia 2019-08-20 17:09:38 +08:00