mirror of
https://github.com/waku-org/nwaku.git
synced 2025-01-09 14:26:27 +00:00
refactor(noise): rebase
This commit is contained in:
parent
4e1b839e27
commit
d4402d0920
@ -73,7 +73,6 @@ type
|
|||||||
handshakeMessage: seq[NoisePublicKey]
|
handshakeMessage: seq[NoisePublicKey]
|
||||||
transportMessage: seq[byte]
|
transportMessage: seq[byte]
|
||||||
|
|
||||||
|
|
||||||
#Noise Handshakes
|
#Noise Handshakes
|
||||||
|
|
||||||
NoiseTokens* = enum
|
NoiseTokens* = enum
|
||||||
@ -372,6 +371,7 @@ proc init*(_: type[HandshakeState], hs_pattern: HandshakePattern, psk: seq[byte]
|
|||||||
result.psk = psk
|
result.psk = psk
|
||||||
result.ss = SymmetricState.init(hs_pattern)
|
result.ss = SymmetricState.init(hs_pattern)
|
||||||
|
|
||||||
|
|
||||||
#################################################################
|
#################################################################
|
||||||
|
|
||||||
# ChaChaPoly Symmetric Cipher
|
# ChaChaPoly Symmetric Cipher
|
||||||
|
Loading…
x
Reference in New Issue
Block a user