Sonar
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.
Using Docker
We prepared a Docker container of the Sonar smart contract running on a private in-memory ethereum blockchain.
Run
docker run -d -p 9545:9545 openmined/sonar: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).
Local installation
Get the repo
git clone [email protected]:OpenMined/Sonar.git
cd Sonar
npm install
Start the development environment
Sonar uses truffle develop built in environment on http://127.0.0.1:9545
. It will display the first 10 accounts and the mnemonic used to create those accounts.
npm run develop
Deploy contracts
In a new tab, compile and deploy the contracts
npm run migrate
Test
npm test