pub fn validate_data(&self, data: H::Domain) -> bool {
        if !self.verify() {
            return false;
        }

        self.leaf() == data
    }
/// Validates that the data hashes to the leaf of the merkle path.
Validates that the data hashes to the leaf of the merkle path.
Validates that the data hashes to the leaf of the merkle path .
pub fn validate_data(&self, data: H::Domain) -> bool {
        if !self.verify() {
            return false;
        }
        self.leaf() == data
    }
pub fn validate_data ( & self , data : H :: Domain ) -> bool { if ! self . verify ( ) { return false ; } self . leaf ( ) == data }
Validates that the data hashes to the leaf of the merkle path.
Validates that the data hashes to the leaf of the merkle path .
&self
data
H::Domain
&self
data
H::Domain