mirror of
https://github.com/vacp2p/nim-libp2p.git
synced 2026-01-09 03:47:55 -05:00
Rename getKey -> getPublicKey (#621)
* rename getKey to getPublicKey * use publicKey directly in gossipsub * update error messages
This commit is contained in:
@@ -602,11 +602,9 @@ proc new*(
|
||||
outgoing: bool = true,
|
||||
commonPrologue: seq[byte] = @[]): T =
|
||||
|
||||
let pkBytes = privateKey
|
||||
.getKey()
|
||||
let pkBytes = privateKey.getPublicKey()
|
||||
.expect("Expected valid Private Key")
|
||||
.getBytes()
|
||||
.expect("Couldn't get Private Key bytes")
|
||||
.getBytes().expect("Couldn't get public Key bytes")
|
||||
|
||||
var noise = Noise(
|
||||
rng: rng,
|
||||
|
||||
Reference in New Issue
Block a user