Skip to main content

instance_hash_of

Function instance_hash_of 

Source
pub fn instance_hash_of(own: [u8; 32], ancestors: &[[u8; 32]]) -> [u8; 32]
Expand description

The instance hash of a program whose canonical hash is own, under ancestors whose canonical hashes are ancestors, innermost first: SHA-256 over a versioned tag, own, and each ancestor’s hash in order. PolydatProgram::instance_hash is this over interpreter programs; a host holding kernels of any engine passes each kernel’s Kernel::canonical_hash and gets the same value (scope_model.md §8).