From: Matt Corallo Date: Wed, 16 Jan 2019 20:45:28 +0000 (-0500) Subject: Drop verification context from keys manager X-Git-Tag: v0.0.12~241^2~1 X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=f109d13e229aa963ccd078554db3165d94b2b319;p=rust-lightning Drop verification context from keys manager --- 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;