1
0
Fork 0
mirror of synced 2025-09-24 04:40:05 +00:00
ZoKrates/zokrates_stdlib/stdlib/utils/pack/bool/unpack128.zok
2021-09-23 14:45:45 +03:00

7 lines
No EOL
218 B
Text

import "./unpack" as unpack
// Unpack a field element as 128 big-endian bits
// If the input is larger than `2**128 - 1`, the output is truncated.
def main(field i) -> bool[128]:
bool[128] res = unpack(i)
return res