OutboundOnionPayload: hold Vec fields as references.
[rust-lightning] / lightning / src / sign / ecdsa.rs
index aa22eb366f3065e23199678988329bc63bab347a..df2b40332c30fa8d27c8a9f853b936f461ec5bfd 100644 (file)
@@ -10,8 +10,7 @@ use crate::ln::chan_utils::{
        ClosingTransaction, CommitmentTransaction, HTLCOutputInCommitment, HolderCommitmentTransaction,
 };
 use crate::ln::msgs::UnsignedChannelAnnouncement;
-use crate::ln::PaymentPreimage;
-use crate::util::ser::Writeable;
+use crate::ln::types::PaymentPreimage;
 
 #[allow(unused_imports)]
 use crate::prelude::*;
@@ -211,12 +210,3 @@ pub trait EcdsaChannelSigner: ChannelSigner {
                &self, msg: &UnsignedChannelAnnouncement, secp_ctx: &Secp256k1<secp256k1::All>,
        ) -> Result<Signature, ()>;
 }
-
-/// A writeable signer.
-///
-/// There will always be two instances of a signer per channel, one occupied by the
-/// [`ChannelManager`] and another by the channel's [`ChannelMonitor`].
-///
-/// [`ChannelManager`]: crate::ln::channelmanager::ChannelManager
-/// [`ChannelMonitor`]: crate::chain::channelmonitor::ChannelMonitor
-pub trait WriteableEcdsaChannelSigner: EcdsaChannelSigner + Writeable {}