From d4402d0920af8ba1e7b5274b297d647b8b9bf31d Mon Sep 17 00:00:00 2001 From: s1fr0 <28568419+s1fr0@users.noreply.github.com> Date: Fri, 8 Apr 2022 18:55:16 +0200 Subject: [PATCH] refactor(noise): rebase --- waku/v2/protocol/waku_noise/noise.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/waku/v2/protocol/waku_noise/noise.nim b/waku/v2/protocol/waku_noise/noise.nim index bd215373f..4da2081d8 100644 --- a/waku/v2/protocol/waku_noise/noise.nim +++ b/waku/v2/protocol/waku_noise/noise.nim @@ -73,7 +73,6 @@ type handshakeMessage: seq[NoisePublicKey] transportMessage: seq[byte] - #Noise Handshakes NoiseTokens* = enum @@ -372,6 +371,7 @@ proc init*(_: type[HandshakeState], hs_pattern: HandshakePattern, psk: seq[byte] result.psk = psk result.ss = SymmetricState.init(hs_pattern) + ################################################################# # ChaChaPoly Symmetric Cipher @@ -672,4 +672,4 @@ proc deserializePayloadV2*(payload: seq[byte]): Result[PayloadV2, cstring] payload2.transportMessage = payload[i..i+transportMessageLen-1] i += transportMessageLen - return ok(payload2) + return ok(payload2) \ No newline at end of file