Use an explicit `Sign` type on the `ChannelMonitor` read tuple
[rust-lightning] / lightning / src / chain / channelmonitor.rs
index cd18ffad12d385747da26ee6e7222f9dc457b5f3..401221acdd17d4a3fbf586e5057d0019d2b07a09 100644 (file)
@@ -3693,8 +3693,8 @@ where
 
 const MAX_ALLOC_SIZE: usize = 64*1024;
 
-impl<'a, 'b, ES: EntropySource, SP: SignerProvider> ReadableArgs<(&'a ES, &'b SP)>
-               for (BlockHash, ChannelMonitor<SP::Signer>) {
+impl<'a, 'b, ES: EntropySource, SP: SignerProvider<Signer=Signer>, Signer: WriteableEcdsaChannelSigner> ReadableArgs<(&'a ES, &'b SP)>
+               for (BlockHash, ChannelMonitor<Signer>) {
        fn read<R: io::Read>(reader: &mut R, args: (&'a ES, &'b SP)) -> Result<Self, DecodeError> {
                macro_rules! unwrap_obj {
                        ($key: expr) => {