From: Matt Corallo <649246+TheBlueMatt@users.noreply.github.com> Date: Sat, 3 Dec 2022 19:01:15 +0000 (+0000) Subject: Merge pull request #1887 from TheBlueMatt/2022-11-definitely-valid X-Git-Tag: v0.0.113~18 X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=14d2e979651769bfff7acb6fed33b0e7df509d9a;p=rust-lightning Merge pull request #1887 from TheBlueMatt/2022-11-definitely-valid Remove cryptographically unreachable error conditions --- 14d2e979651769bfff7acb6fed33b0e7df509d9a diff --cc lightning/src/ln/chan_utils.rs index 7fc817995,b5b9d2ee7..39106f0c7 --- a/lightning/src/ln/chan_utils.rs +++ b/lightning/src/ln/chan_utils.rs @@@ -26,11 -25,10 +26,10 @@@ use crate::ln::msgs::DecodeError use crate::util::ser::{Readable, Writeable, Writer}; use crate::util::{byte_utils, transaction_utils}; -use bitcoin::hash_types::WPubkeyHash; use bitcoin::secp256k1::{SecretKey, PublicKey, Scalar}; use bitcoin::secp256k1::{Secp256k1, ecdsa::Signature, Message}; - use bitcoin::secp256k1::Error as SecpError; use bitcoin::{PackedLockTime, secp256k1, Sequence, Witness}; +use bitcoin::PublicKey as BitcoinPublicKey; use crate::io; use crate::prelude::*;