mirror of
https://github.com/waku-org/nwaku.git
synced 2025-02-05 11:34:45 +00:00
chore: use base64 url safe encoding for noise (#1569)
Co-authored-by: Lorenzo Delgado <lorenzo@status.im>
This commit is contained in:
parent
8f66e61ac1
commit
43b3f1cef4
@ -75,11 +75,11 @@ proc digestToSeq*[T](digest: MDigest[T]): seq[byte] =
|
||||
proc toQr*(applicationName: string, applicationVersion: string, shardId: string, ephemeralKey: EllipticCurveKey, committedStaticKey: MDigest[256]): string =
|
||||
|
||||
var qr: string
|
||||
qr.add encode(applicationName) & ":"
|
||||
qr.add encode(applicationVersion) & ":"
|
||||
qr.add encode(shardId) & ":"
|
||||
qr.add encode(ephemeralKey) & ":"
|
||||
qr.add encode(committedStaticKey.data)
|
||||
qr.add encode(applicationName, safe=true) & ":"
|
||||
qr.add encode(applicationVersion, safe=true) & ":"
|
||||
qr.add encode(shardId, safe=true) & ":"
|
||||
qr.add encode(ephemeralKey, safe=true) & ":"
|
||||
qr.add encode(committedStaticKey.data, safe=true)
|
||||
|
||||
return qr
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user