solutions/zokrates_prover/.zokrates/stdlib/hashes/utils/256bitsDirectionHelper.zok

5 lines
197 B
Plaintext
Executable File

// Concatenate two u32[8] arrays in an order defined by a boolean selector
def main(bool selector, u32[8] lhs, u32[8] rhs) -> u32[16] {
return selector ? [...rhs, ...lhs] : [...lhs, ...rhs];
}