From 5e4c868d0899bfc9ea00b944ca0caf6a4244ad88 Mon Sep 17 00:00:00 2001 From: G <28568419+s1fr0@users.noreply.github.com> Date: Fri, 1 Apr 2022 07:37:13 +0200 Subject: [PATCH] Fixed header --- waku/v2/protocol/waku_noise/noise.nim | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/waku/v2/protocol/waku_noise/noise.nim b/waku/v2/protocol/waku_noise/noise.nim index 301690a00..c7ad05bf3 100644 --- a/waku/v2/protocol/waku_noise/noise.nim +++ b/waku/v2/protocol/waku_noise/noise.nim @@ -1,11 +1,9 @@ -## Nim-LibP2P -## Copyright (c) 2020 Status Research & Development GmbH -## Licensed under either of -## * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE)) -## * MIT license ([LICENSE-MIT](LICENSE-MIT)) -## at your option. -## This file may not be copied, modified, or distributed except according to -## those terms. +# Waku Noise Protocols for Waku Payload Encryption +## See spec for more details: +## https://github.com/vacp2p/rfc/tree/master/content/docs/rfcs/35 +## +## Implementation partially inspired by noise-libp2p: +## https://github.com/status-im/nim-libp2p/blob/master/libp2p/protocols/secure/noise.nim {.push raises: [Defect].} @@ -275,4 +273,4 @@ proc decodeV2*(payload: seq[byte]): Option[PayloadV2] = res.transport_message = payload[i..i+transport_message_len-1] i+=transport_message_len - return some(res) \ No newline at end of file + return some(res)