ligo/src/test/contracts/bytes_arithmetic.ligo
2020-02-27 19:09:14 +01:00

4 lines
209 B
Plaintext

function concat_op (const s : bytes) : bytes is Bytes.concat (s, 0x7070)
function slice_op (const s : bytes) : bytes is Bytes.sub (1n, 2n, s)
function hasherman (const s : bytes) : bytes is Crypto.sha256 (s)