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

5 lines
197 B
Plaintext
Raw Permalink Normal View History

2023-12-05 06:06:28 +00:00
// 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];
}