Skip to main content

compute_binding_hash

Function compute_binding_hash 

Source
pub fn compute_binding_hash(
    action_hash: &str,
    contract_hash: &str,
    decision_bit: u8,
    vk_hash: &str,
) -> Result<[u8; 32], VerifyError>
Expand description

Build the 97-byte preimage per SPEC §6.7.2 and SHA-256 it.