1
0
Fork 0
mirror of synced 2025-09-24 04:40:05 +00:00
ZoKrates/zokrates_stdlib/stdlib/utils/pack/nonStrictUnpack256.code
2019-06-23 11:29:10 +02:00

11 lines
227 B
Text

// Non-strict version:
// Note that this does not strongly enforce that the commitment is
// in the field.
import "PACKING/split" as split
def main(field i) -> (field[256]):
field[254] b = split(i)
return [0, 0, ...b]