Universally Require Writeable for ChannelKeys
[rust-lightning] / lightning / src / chain / keysinterface.rs
index 085a2f87154b1b5a09c9cd9a32757bf8f164dc49..47ad84bbc596f1de3e0e387df7add2a67ad859a8 100644 (file)
@@ -204,7 +204,7 @@ impl Readable for SpendableOutputDescriptor {
 // routine).
 // TODO: We should remove Clone by instead requesting a new ChannelKeys copy when we create
 // ChannelMonitors instead of expecting to clone the one out of the Channel into the monitors.
-pub trait ChannelKeys : Send+Clone {
+pub trait ChannelKeys : Send+Clone + Writeable {
        /// Gets the per-commitment point for a specific commitment number
        ///
        /// Note that the commitment number starts at (1 << 48) - 1 and counts backwards.