This project is honored to be funded by Web3 Foundation grant program. You can find more info here.
This is ink! implementation of SubsCrypt. For more information please visit online docs.
Please make sure that you have these prerequisites installed on your computer:
rustup component add rust-src --toolchain nightly
rustup target add wasm32-unknown-unknown --toolchain stableThen you have to install ink! command line utility which will make setting up Substrate smart contract projects easier:
cargo install cargo-contract --vers 0.10.0 --force --lockedYou also need the binaryen package installed on your computer which is used to optimize the WebAssembly bytecode of the contract, you can use npm to install it:
npm install -g binaryenFirst of all you need to clone the repository, run:
git clone https://github.com/oxydev/SubsCrypt-ink
cd SubsCrypt-inkThen, you can run the tests with this line of code:
cargo +nightly testTo build the WASM of your contract and metadata, you can clone and change directory to the ink project of SubsCrypt and then you have to run this line:
cargo +nightly contract buildThis command will take some minutes and the output will be something like this:
Original wasm size: 99.1K, Optimized: 68.0K
Your contract artifacts are ready. You can find them in:
/yourDirectory/target/ink
- SubsCrypt.contract (code + metadata)
- SubsCrypt.wasm (the contract's code)
- metadata.json (the contract's metadata)You can also use the pre-built version of our code and access to the WASM and metadata files, here and here.

