aboutsummaryrefslogtreecommitdiff
path: root/test/functional/test_framework/test_node.py
diff options
context:
space:
mode:
authorstratospher <44024636+stratospher@users.noreply.github.com>2022-10-11 19:08:47 +0530
committerstratospher <44024636+stratospher@users.noreply.github.com>2024-01-24 11:51:47 +0530
commitb89fa59e715a185d9fa7fce089dad4273d3b1532 (patch)
tree37da744c16a3bee4caf6d584abbe28db5b826df9 /test/functional/test_framework/test_node.py
parent8d6c848a48530893ca40be5c1285541b3e7a94f3 (diff)
downloadbitcoin-b89fa59e715a185d9fa7fce089dad4273d3b1532.tar.xz
[test] Construct class to handle v2 P2P protocol functions
The class `EncryptedP2PState` stores the 4 32-byte keys, session id, garbage terminators, whether it's an initiator/responder, whether the initial handshake has been completed etc.. It also contains functions to perform the v2 handshake and to encrypt/decrypt p2p v2 messages. - In an inbound connection to TestNode, P2PConnection is the initiator and `initiate_v2_handshake()`, `complete_handshake()`, `authenticate_handshake()` are called on it. [ TestNode <----------------- P2PConnection ] - In an outbound connection from TestNode, P2PConnection is the responder and `respond_v2_handshake()`, `complete_handshake()`, `authenticate_handshake()` are called on it. [ TestNode -----------------> P2PConnection ]
Diffstat (limited to 'test/functional/test_framework/test_node.py')
0 files changed, 0 insertions, 0 deletions