Converting long strings/bytearrays to a different format in the VM is generally quite expensive. We should have an ecall for format conversions, with a parameter that specifies what is it converting from/to.
Useful initial formats should include:
BASE58ENCODE
BASE58DECODE
BECH32M
In this way, more formats could be added as needed, without needing new syscalls every time.
Converting long strings/bytearrays to a different format in the VM is generally quite expensive. We should have an ecall for format conversions, with a parameter that specifies what is it converting from/to.
Useful initial formats should include:
In this way, more formats could be added as needed, without needing new syscalls every time.