pub async fn check_entry_hash(hash: &EntryHash, entry: &Entry) -> SysValidationResult<()> {
    if *hash == EntryHash::with_data_sync(entry) {
        Ok(())
    } else {
        Err(ValidationOutcome::EntryHash.into())
    }
}
/// Check the headers entry hash matches the hash of the entry
Check the headers entry hash matches the hash of the entry
Check the headers entry hash matches the hash of the entry
pub async fn check_entry_hash(hash: &EntryHash, entry: &Entry) -> SysValidationResult<()> {
    if *hash == EntryHash::with_data_sync(entry) {
        Ok(())
    } else {
        Err(ValidationOutcome::EntryHash.into())
    }
}
pub async fn check_entry_hash ( hash : & EntryHash , entry : & Entry ) -> SysValidationResult < ( ) > { if * hash == EntryHash :: with_data_sync ( entry ) { Ok ( ( ) ) } else { Err ( ValidationOutcome :: EntryHash . into ( ) ) } }
Check the headers entry hash matches the hash of the entry
Check the headers entry hash matches the hash of the entry
hash
&EntryHash
entry
&Entry
hash
&EntryHash
entry
&Entry