This repo contains a collection of example contracts that run on Cipher, the confidential Oasis Wasm ParaTime.
vigil
- A dead-person's switch that confidentially stores secrets until a (refreshable) set time.
- Grab the Oasis CLI. It can be used to upload, instantiate, and call contracts on Cipher.
- Compile a contract using
cargo build --release --target wasm32-unknown-unknown
- Optionally, optimize the contract using wasm-opt
TARGET_DIR="target/wasm32-unknown-unknown/release" wasm-opt "${TARGET_DIR}/<contract>.wasm" -o "${TARGET_DIR}/<contract>.opt.wasm" -O3 -c
- Upload the contract:
oasis contracts upload "${TARGET_DIR}/<contract>[.opt].wasm"
- Instantiate the contract:
oasis contracts instantiate <the-instance-id> <yaml-args>
- Call the contract:
oasis contract call <the-instance-id> <yaml-args>