mirror of
https://github.com/logos-messaging/logos-messaging-nim.git
synced 2026-01-14 11:53:13 +00:00
chore: nph format files
This commit is contained in:
parent
60f99287cd
commit
6958bec2f3
@ -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:
|
||||
|
||||
@ -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
|
||||
return field
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user