LedgerHQ / vanadium-legacy

Unlimited power for apps
Apache License 2.0
8 stars 1 forks source link

Add syscalls for format conversions #24

Closed bigspider closed 1 year ago

bigspider commented 1 year ago

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.

bigspider commented 1 year ago

Done in #25