From 5c02a843fe2693c13d95e657ac1bf6e1858cc79a Mon Sep 17 00:00:00 2001 From: Gruruya Date: Mon, 3 Apr 2023 23:52:03 -0400 Subject: [PATCH] Remove accidental extra indentation --- secp256k1.nim | 2 -- 1 file changed, 2 deletions(-) diff --git a/secp256k1.nim b/secp256k1.nim index 903f725..00f630c 100644 --- a/secp256k1.nim +++ b/secp256k1.nim @@ -409,7 +409,6 @@ func toHex*(sig: SkRecoverableSignature): string = proc random*(T: type SkKeyPair, rng: Rng): SkResult[T] = ## Generates new random key pair. let seckey = ? SkSecretKey.random(rng) - ok(T( seckey: seckey, pubkey: seckey.toPublicKey() @@ -418,7 +417,6 @@ proc random*(T: type SkKeyPair, rng: Rng): SkResult[T] = proc random*(T: type SkKeyPair, rng: FoolproofRng): T = ## Generates new random key pair. let seckey = SkSecretKey.random(rng) - T( seckey: seckey, pubkey: seckey.toPublicKey()