Skip to main content

option_selector_hash

Function option_selector_hash 

Source
pub fn option_selector_hash<D: Digest<OutputSize = U32>>(
    payload_root: [u8; 32],
    selector: u8,
) -> [u8; 32]
Expand description

Compute the hash for an Option<T>-style Union root. The selector (0 for None, 1 for Some) is mixed in via the standard mix_in_selector.