pub trait InclusionProofVerifier {
type Transaction: Parameter;
type TransactionInclusionProof: Parameter;
// Required method
fn verify_transaction_inclusion_proof(
proof: &Self::TransactionInclusionProof
) -> Option<Self::Transaction>;
}
Expand description
base trait for verifying transaction inclusion proofs.
Required Associated Types§
sourcetype Transaction: Parameter
type Transaction: Parameter
Transaction type.
sourcetype TransactionInclusionProof: Parameter
type TransactionInclusionProof: Parameter
Transaction inclusion proof type.
Required Methods§
sourcefn verify_transaction_inclusion_proof(
proof: &Self::TransactionInclusionProof
) -> Option<Self::Transaction>
fn verify_transaction_inclusion_proof( proof: &Self::TransactionInclusionProof ) -> Option<Self::Transaction>
Verify that transaction is a part of given block.
Returns Some(transaction) if proof is valid and None otherwise.