mirror of
https://github.com/waku-org/nwaku.git
synced 2025-01-23 13:20:03 +00:00
Merge branch 'noise-handshakestates' of https://github.com/status-im/nim-waku into noise-handshakestates
This commit is contained in:
commit
4e1b839e27
@ -73,6 +73,7 @@ type
|
||||
handshakeMessage: seq[NoisePublicKey]
|
||||
transportMessage: seq[byte]
|
||||
|
||||
|
||||
#Noise Handshakes
|
||||
|
||||
NoiseTokens* = enum
|
||||
@ -371,7 +372,6 @@ 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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user