solutions/zokrates_prover/.zokrates/stdlib/utils/pack/bool/pack128.zok

8 lines
158 B
Plaintext
Raw Normal View History

2023-12-05 06:06:28 +00:00
#pragma curve bn128
import "./pack" as pack;
// pack 128 big-endian bits into one field element
def main(bool[128] bits) -> field {
return pack(bits);
}