ligo/src/test/contracts/bytes_arithmetic.ligo
2020-01-09 16:53:07 -06:00

9 lines
272 B
Plaintext

function concat_op (const s : bytes) : bytes is
begin skip end with bytes_concat(s , 0x7070)
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)