From 0963e43860e2c8e41c0821e2bc442bdd337a0ded Mon Sep 17 00:00:00 2001 From: Eugene Siegel Date: Fri, 26 Jul 2024 11:46:37 -0400 Subject: BIP 324: fix python aad in complete_handshake --- bip-0324.mediawiki | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bip-0324.mediawiki b/bip-0324.mediawiki index 2119a85..941d96e 100644 --- a/bip-0324.mediawiki +++ b/bip-0324.mediawiki @@ -384,7 +384,7 @@ def complete_handshake(peer, initiating, decoy_content_lengths=[]): if received_garbage[-16:] == peer.recv_garbage_terminator: # Receive, decode, and ignore version packet. # This includes skipping decoys and authenticating the received garbage. - v2_receive_packet(peer, aad=received_garbage) + v2_receive_packet(peer, aad=received_garbage[:-16]) return else: received_garbage += recv(peer, 1) -- cgit v1.2.3