From 6958bec2f3774b8748acdf52d97b1cf8a18b0261 Mon Sep 17 00:00:00 2001 From: Prem Chaitanya Prathi Date: Mon, 21 Apr 2025 14:27:56 +0530 Subject: [PATCH] chore: nph format files --- waku/factory/external_config.nim | 1 + waku/waku_enr/mix.nim | 9 ++------- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/waku/factory/external_config.nim b/waku/factory/external_config.nim index fcdb8160c..8a61d89bb 100644 --- a/waku/factory/external_config.nim +++ b/waku/factory/external_config.nim @@ -637,6 +637,7 @@ with the drawback of consuming some more bandwidth.""", mixkey* {.desc: "ED25519 private key as 64 char hex string.", name: "mixkey".}: Option[string] + #TODO: Temp config for simulations.Ideally need to get this info from bootstrap ENRs #[ mixBootstrapNodes* {. desc: diff --git a/waku/waku_enr/mix.nim b/waku/waku_enr/mix.nim index f9ef09544..c48fe6842 100644 --- a/waku/waku_enr/mix.nim +++ b/waku/waku_enr/mix.nim @@ -1,16 +1,11 @@ {.push raises: [].} -import - std/[options], - results, - libp2p/crypto/curve25519, - nimcrypto/utils as ncrutils +import std/[options], results, libp2p/crypto/curve25519, nimcrypto/utils as ncrutils import ../common/enr const MixKeyEnrField* = "mix-key" - func withMixKey*(builder: var EnrBuilder, mixPubKey: Curve25519Key) = builder.addFieldPair(MixKeyEnrField, getBytes(mixPubKey)) @@ -28,4 +23,4 @@ func mixKey*(record: Record): Option[seq[byte]] = let field = recordRes.value.tryGet(MixKeyEnrField, seq[byte]) if field.isNone(): return none(seq[byte]) - return field \ No newline at end of file + return field