MCPcopy Create free account
hub / github.com/BitVM/BitVM / permutate

Function permutate

bitvm/src/hash/blake3_utils.rs:427–433  ·  view source on GitHub ↗

Permutates the internal state, used after each round

(message_var_map: &HashMap<u8, StackVariable>)

Source from the content-addressed store, hash-verified

425
426/// Permutates the internal state, used after each round
427fn permutate(message_var_map: &HashMap<u8, StackVariable>) -> HashMap<u8, StackVariable> {
428 let mut ret = HashMap::new();
429 for i in 0..16_u8 {
430 ret.insert(i, message_var_map[&MSG_PERMUTATION[i as usize]]);
431 }
432 ret
433}
434
435/// Initializes the internal state, uses the same variable names as the paper
436fn init_state(

Callers 1

compressFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected