Trait dbc::Proof

source ·
pub trait Proof<M: DbcMethod = Method>:
    Clone
    + Eq
    + Debug
    + StrictSerialize
    + StrictDeserialize
    + StrictDumb {
    type Error: Error;

    const METHOD: M;

    // Required method
    fn verify(&self, msg: &Commitment, tx: &Tx) -> Result<(), Self::Error>;
}
Expand description

Deterministic bitcoin commitment proof types.

Required Associated Types§

source

type Error: Error

Verification error.

Required Associated Constants§

source

const METHOD: M

Returns DBC method used by the proof.

Required Methods§

source

fn verify(&self, msg: &Commitment, tx: &Tx) -> Result<(), Self::Error>

Verifies DBC proof against the provided transaction.

Object Safety§

This trait is not object safe.

Implementors§