Closed paulcadman closed 2 years ago
Example validity predicates:
After https://github.com/anoma/juvix/pull/1449 we've demonstrated the ability to run a validity predicate compiled from Juvix in Anoma.
See:
We do not have support for deserialising the arguments (Address struct, transaction data, set of keys changed and set of verifiers) that are passed to the validity predicate.
For this we'll need to support decoding a pointer to a Juvix type using the Borsh spec https://borsh.io
Currently
minijuvix compile
produces WASI binaries that can be executed using a local WASM runtime like wasmer.This issue is to add support for compilation of pure WASM binaries that export a function that can be executed on Anoma.
(See https://github.com/anoma/anoma/blob/5831077bf1f1ff917f97264471b0ddcae224e739/macros/src/lib.rs#L75 for the corresponding Rust validity predicate macro that produces the WASM signature via C FFI).