Sonar observes all models being trained and ensures that occuppation occurs fairly. Itβs a smart contract running on an Ethereum Blockchain that holds bounties and stores pointers to AI models on IPFS.
We prepared a Docker container of the Sonar smart contract running on a private in-memory ethereum blockchain (testrpc).
Run
docker run -d -p 8545:8545 openmined/sonar-testrpc:edge
# :edge for the latest dev build
# :latest (default) for stable builds
Everytime you restart the docker container all interactions to the chain will be reset and you will have a clean image (with nothing but the contract).
There are two docker files in this repository. Dockerfile
creates a plain Sonar container (openmined/sonar) with the compiled contract in it. Dockerfile.testrpc
creates the openmined/sonar-testrpc image with the contract pre-deployed on testrpc
.
Install dependencies
npm install
Start testrpc
./node_modules/.bin/testrpc
Compile and deploy the contracts
npm run deploy
Make sure everything works
npm run test