From 53e583a068001b1398431b2dc7480b6a84179401 Mon Sep 17 00:00:00 2001 From: Alex Stokes Date: Wed, 14 Aug 2019 08:47:16 -0700 Subject: [PATCH] Update libp2p/crypto/secp256k1.py Pass the secret on to `coincurve` lib Co-Authored-By: NIC Lin --- libp2p/crypto/secp256k1.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libp2p/crypto/secp256k1.py b/libp2p/crypto/secp256k1.py index 4cebe54..9fb559f 100644 --- a/libp2p/crypto/secp256k1.py +++ b/libp2p/crypto/secp256k1.py @@ -23,7 +23,7 @@ class Secp256k1PrivateKey(PrivateKey): @classmethod def new(cls, secret: bytes = None) -> "Secp256k1PrivateKey": - private_key_impl = coincurve.PrivateKey() + private_key_impl = coincurve.PrivateKey(secret) return cls(private_key_impl) def to_bytes(self) -> bytes: