From f109d13e229aa963ccd078554db3165d94b2b319 Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Wed, 16 Jan 2019 15:45:28 -0500 Subject: [PATCH] Drop verification context from keys manager --- src/chain/keysinterface.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/chain/keysinterface.rs b/src/chain/keysinterface.rs index 3e41f9e9b..53191faf2 100644 --- a/src/chain/keysinterface.rs +++ b/src/chain/keysinterface.rs @@ -116,7 +116,7 @@ impl_writeable!(ChannelKeys, 0, { /// Cooperative closes may use seed/2' /// The two close keys may be needed to claim on-chain funds! pub struct KeysManager { - secp_ctx: Secp256k1, + secp_ctx: Secp256k1, node_secret: SecretKey, destination_script: Script, shutdown_pubkey: PublicKey, @@ -132,7 +132,7 @@ impl KeysManager { /// Constructs a KeysManager from a 32-byte seed. If the seed is in some way biased (eg your /// RNG is busted) this may panic. pub fn new(seed: &[u8; 32], network: Network, logger: Arc) -> KeysManager { - let secp_ctx = Secp256k1::new(); + let secp_ctx = Secp256k1::signing_only(); match ExtendedPrivKey::new_master(network.clone(), seed) { Ok(master_key) => { let node_secret = master_key.ckd_priv(&secp_ctx, ChildNumber::from_hardened_idx(0)).expect("Your RNG is busted").secret_key; -- 2.39.5