Topics

New RFC: Wasm Smart Contracts #fabric-chaincode

Matthew White
 

Hello;

Today I've created a new PR for the "Wasm Smart Contracts RFC".  This is the PR https://github.com/hyperledger/fabric-rfcs/pull/28
And the document it self is https://github.com/hyperledger/fabric-rfcs/blob/8f604c297ba92dce19749207eaf26f9f15461590/text/0006-wasm-smart-contracts.md

This is the RFC that I introduced on the Fabric Community last Wednesday. It's high-level aims are

- Provide a Wasm based runtime for chaincode
- Provide a Rust language contract and ledger API implementation to run in this Wasm chaincode

We've taken inspiration from the existing Wasm Hyperledger Lab.  Currently, we're pulling in the Wasmer.io Wasm runtime into a go module that uses the go-chaincode-stub to connect to the peer. 
The Rust API is an evolution of the current Contract and previously Proposed Ledger API. If you're family with these then the API in this RFC will be extremely familiar.
API Documentation is available at https://hyperledgendary.github.io/fabric-contract-api-rust/apidoc/fabric_contract/index.html

More information on the Rust contracts can be built and deployed are in the README.md at the prototype https://github.com/hyperledgendary/fabric-contract-api-rust

Any questions please connect with me, here or on RocketChat, or vote on the RFC!

Thanks
Matthew White
fabric-chaincode-node, fabric-chaincode-java, fabric-samples maintainer.