Fix mistype.

This commit is contained in:
cheatfate 2019-09-02 21:59:32 +03:00
parent 968e635746
commit 40ad427ea0
No known key found for this signature in database
GPG Key ID: 46ADD633A7201F95
1 changed files with 2 additions and 2 deletions

View File

@ -122,8 +122,8 @@ proc random*(t: typedesc[KeyPair], scheme: PKScheme,
result.pubkey.eckey = pair.pubkey result.pubkey.eckey = pair.pubkey
elif scheme == Secp256k1: elif scheme == Secp256k1:
var pair = SkKeyPair.random() var pair = SkKeyPair.random()
result.seckey.eckey = pair.seckey result.seckey.skkey = pair.seckey
result.pubkey.eckey = pair.pubkey result.pubkey.skkey = pair.pubkey
proc getKey*(key: PrivateKey): PublicKey = proc getKey*(key: PrivateKey): PublicKey =
## Get public key from corresponding private key ``key``. ## Get public key from corresponding private key ``key``.