WASM virtual machine for running Dusk's smart contracts.
```rust use piecrust::VM; let mut vm = VM::ephemeral().unwrap();
let bytecode = /load bytecode/;
let mut session = vm.session(SessionData::builder())?; let contract_id = session.deploy(bytecode).unwrap();
let result = session.call::
// use result ```
To build and test the crate one will need a
Rust toolchain, Make, and the
wasm-tools
binary.
sh
sudo apt install -y make # ubuntu/debian - adapt to own system
cargo install wasm-tools
make test
To see the release history for this crate, please see the CHANGELOG file.
This code is licensed under the Mozilla Public License Version 2.0 (MPL-2.0). Please see the LICENSE for further details.
If you want to contribute to this project, please check the CONTRIBUTING file.