diff --git a/single_use_seals/src/lib.rs b/single_use_seals/src/lib.rs index 1037fac6..93235b3d 100644 --- a/single_use_seals/src/lib.rs +++ b/single_use_seals/src/lib.rs @@ -179,6 +179,9 @@ pub trait ClientSideWitness: Eq { &self, msg: ::Message, ) -> Result; + + fn merge(&mut self, other: Self) -> Result<(), Self::Error> + where Self: Sized; } #[derive(Copy, Clone, Debug, Default)] @@ -195,6 +198,11 @@ impl ClientSideWitness for NoWitness { type Error = Infallible; fn convolve_commit(&self, msg: Seal::Message) -> Result { Ok(msg) } + + fn merge(&mut self, _: Self) -> Result<(), Self::Error> + where Self: Sized { + Ok(()) + } } /// Public witness can be used by multiple types of single-use seals, hence it