pub fn state_hash(kernel_state: &KernelState, state: &str) -> KResult<String>Expand description
sha256("vlo1\0" + canon(kernel_state) + "\0" + canon(state)), lowercase hex.
state must be valid JSON (malformed_json otherwise); both parts are canonicalized
(sorted keys, no whitespace) before hashing.