mhchia
6e01a7da31
PR feedback: async with host.run()
2020-01-26 16:44:42 +08:00
mhchia
3372c32432
Fix examples and modify new_node
...
- Fix examples `chat.py` and `echo.py`
- Use trio directly, instead of `trio-asyncio`
- Remove redundant code
- Change entry API `new_node` to `new_host_trio`
2019-12-24 18:03:18 +08:00
mhchia
837a249552
Fix security
module
2019-12-07 00:14:01 +08:00
Chih Cheng Liang
bcd7890124
Move test utilities to tools ( #356 )
...
* move test factories to libp2p/tools
* remove unused inits
* move pubsub test utils to tools
* cleanup test_interop
* fix typing libp2p/tools/utils
* add typing to pubsub utils
* fix factories typing
* fix typing for floodsub_integration_test_settings
* fix rest of the typing
* fix isort
2019-11-21 11:47:54 +08:00
Dominik Muhs
714126faf5
Update secio tests to new initiator flag
2019-10-24 19:30:57 +02:00
mhchia
92deae41dc
Change SwarmConn.conn
to muxed_conn
2019-09-23 15:46:50 +08:00
mhchia
0c7afeebaf
Fix test_security_multistream
2019-09-19 13:59:50 +08:00
mhchia
bb0da41eda
Remove cleanup
...
`cleanup` cancels all tasks in the loop, including the main one run by
`run_until_complete`
2019-09-10 18:01:16 +08:00
Alex Stokes
8e8318aa5c
Introduces IO abstractions apart from asyncio
or those attached to IRawConnection
...
Also adds `msgio` utilities to mirror the Go implementation
2019-09-03 21:59:50 -07:00
Alex Stokes
66c3bacf7e
Merge pull request #254 from ralexstokes/implement-secio
...
Implement `secio`
2019-08-26 19:22:00 +02:00
Alex Stokes
fa0acd9fc5
Apply PR feedback
2019-08-26 10:03:12 -07:00
NIC619
5e68aff1d1
Fix conn
attribute and docstring in mplex
2019-08-25 14:42:44 +08:00
Alex Stokes
f08aa339b4
Verify the channel can pass some plaintext
2019-08-24 23:26:26 +02:00
Alex Stokes
737195f461
Simplify testing connection w/ other simplifications
2019-08-24 23:15:31 +02:00
Alex Stokes
9355f33da8
Add basic test for secio
...
Two peers in-memory can create a secure, bidirectional channel
2019-08-24 22:38:26 +02:00
Alex Stokes
73495038e1
remove simple security
2019-08-24 21:39:25 +02:00
mhchia
16a4fd33c1
PR feedbacks
...
- Move exceptions to exceptions.py
- Raise `UpgradeFailure` in upgrader
- Refine the try/catch for upgraders in swarm
2019-08-22 22:53:49 +08:00
mhchia
3e04480d62
Raise HandshakeFailure
in transport
...
Change the exception handling flow.
Raise `SecurityUpgradeFailure` in security_multistream.
2019-08-22 22:53:48 +08:00
mhchia
0b62321265
Fix test_security_multistream
...
By passing initiator keypairs to node.
2019-08-22 22:53:47 +08:00
Alex Stokes
7535a02da7
Clean up key gen
2019-08-15 19:24:30 -07:00
Alex Stokes
82bae341a7
Run isort over files that were missing it
2019-08-15 16:33:35 -07:00
Alex Stokes
cda74dd382
Update tests for new logic
2019-08-15 16:33:34 -07:00
Alex Stokes
b98025c379
Move security transports into their respective sub-packages
2019-08-15 16:33:33 -07:00
Alex Stokes
3debd2c808
Run black
and isort
w/ the new config
2019-08-13 14:36:42 -07: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
mhchia
c72dfe1dd3
Use factories and fixtures in pubsub tests
...
Done
- Add factories using factory-boy
- Modify fixtures and tests to use factories
- Modify tests to use fixtures and factories
- Clean up
2019-08-01 13:30:08 +08:00
Alex Stokes
0ae9840928
Run black
over repo
2019-07-31 15:00:12 -07:00
Stuckinaboot
144dc8d854
Move simple security to libp2p/security
2019-05-01 17:21:11 -04:00
Stuckinaboot
515a461172
Add more security tests
2019-05-01 17:13:01 -04:00
Stuckinaboot
4333c2d061
Fix linting issues'
2019-05-01 13:54:19 -04:00
Stuckinaboot
e555f17a7b
Fix bug in security multistream
2019-04-30 16:07:26 -04:00
Stuckinaboot
a0bd6e5eb0
Add simple security with communication test
2019-04-30 03:27:06 -04:00
Stuckinaboot
f59f27d4d0
Integrate security selectin into libp2p system
2019-04-30 03:09:05 -04:00
Stuckinaboot
999e64854c
Add security tests
2019-04-29 18:05:49 -04:00