From 40ad427ea0acee87d9a327f5d77e9e4fd5c40039 Mon Sep 17 00:00:00 2001 From: cheatfate Date: Mon, 2 Sep 2019 21:59:32 +0300 Subject: [PATCH] Fix mistype. --- libp2p/crypto/crypto.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libp2p/crypto/crypto.nim b/libp2p/crypto/crypto.nim index 6d2906a94..a32ea9ab3 100644 --- a/libp2p/crypto/crypto.nim +++ b/libp2p/crypto/crypto.nim @@ -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``.