VerificationResult

Type Alias VerificationResult 

Source
pub type VerificationResult = Result<(), ()>;
Expand description

Verification result for merkle proofs.

  • Ok(()) - Proof is valid, account exists with claimed balance
  • Err(()) - Proof is invalid (wrong proof data or commitment)

Used by StorageBackedRewardMerkleTreeV2::verify to check membership proofs.

Aliased Type§

pub enum VerificationResult {
    Ok(()),
    Err(()),
}

Variants§

§1.0.0

Ok(())

Contains the success value

§1.0.0

Err(())

Contains the error value