pub trait Proof<M = Method>:
Clone
+ Eq
+ Debug
+ StrictSerialize
+ StrictDeserialize
+ StrictDumbwhere
M: DbcMethod,{
type Error: Error;
// Required methods
fn method(&self) -> M;
fn verify(
&self,
msg: &Commitment,
tx: &Transaction,
) -> Result<(), Self::Error>;
}Expand description
Deterministic bitcoin commitment proof types.
Required Associated Types§
Required Methods§
Sourcefn verify(&self, msg: &Commitment, tx: &Transaction) -> Result<(), Self::Error>
fn verify(&self, msg: &Commitment, tx: &Transaction) -> Result<(), Self::Error>
Verifies DBC proof against the provided transaction.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.