ligo/src/test/contracts/bytes_arithmetic.ligo

9 lines
272 B
Plaintext
Raw Normal View History

2019-09-07 18:42:59 +02:00
function concat_op (const s : bytes) : bytes is
2020-01-09 16:50:27 -06:00
begin skip end with bytes_concat(s , 0x7070)
2019-09-07 18:42:59 +02:00
function slice_op (const s : bytes) : bytes is
begin skip end with bytes_slice(1n , 2n , s)
function hasherman (const s : bytes) : bytes is
begin skip end with sha_256(s)