mirror of
https://github.com/status-im/nim-libp2p.git
synced 2025-01-11 13:34:26 +00:00
Fix mistype.
This commit is contained in:
parent
968e635746
commit
40ad427ea0
@ -122,8 +122,8 @@ proc random*(t: typedesc[KeyPair], scheme: PKScheme,
|
||||
result.pubkey.eckey = pair.pubkey
|
||||
elif scheme == Secp256k1:
|
||||
var pair = SkKeyPair.random()
|
||||
result.seckey.eckey = pair.seckey
|
||||
result.pubkey.eckey = pair.pubkey
|
||||
result.seckey.skkey = pair.seckey
|
||||
result.pubkey.skkey = pair.pubkey
|
||||
|
||||
proc getKey*(key: PrivateKey): PublicKey =
|
||||
## Get public key from corresponding private key ``key``.
|
||||
|
Loading…
x
Reference in New Issue
Block a user