ligo/src/test/contracts/bytes_arithmetic.mligo

9 lines
176 B
Plaintext
Raw Normal View History

2019-11-05 04:58:34 +04:00
let concat_op (s : bytes) : bytes =
2020-01-10 02:50:27 +04:00
Bytes.concat s 0x7070
2019-11-05 04:58:34 +04:00
let slice_op (s : bytes) : bytes =
2019-11-06 17:35:15 +04:00
Bytes.slice 1n 2n s
2019-11-05 04:58:34 +04:00
let hasherman (s : bytes) : bytes =
Crypto.sha256 s