Skip to main content

compute_expected_proof

Function compute_expected_proof 

Source
pub fn compute_expected_proof(
    unencrypted_data: &[u8],
    resource_hash: &[u8; 32],
) -> [u8; 32]
Expand description

Compute expected proof: SHA-256(unencrypted_data + resource_hash). unencrypted_data is the same data used in compute_resource_hash.