Rust Smart Contract API
This Technology Preview provides an updated Contract and Ledger API in Rust. It is targetted to be compiled to WebAssembly and run in the
The API presented here is the evolution of the APIs available in the other SDKs to support developing smart contracts (chaincode). There are three other smart contract SDKs available for Go, Node.js, and Java SDK:
You’ll need some tools installed, some you might already have:
- docker & docker-compose
- rust and the Wasm toolchain
- Stable Rust is sufficient, nightly is not required. Instructions at the rust-lang.org
rustup target add wasm32-unknown-unknown
- just for use as a script running tool
This also has been developed on Linux; but development should be possible on other platforms.
Essential reading, each guide around a single topic.
Two examples are available in this repo.
Note that ‘Secure Asset Transfer’ is a work in progress and will not yet compile