Wibson is a blockchain-based, decentralized data marketplace that provides individuals a way to securely and anonymously sell validated private information in a trusted environment.
wibson-core is the implementation of the underlying protocol of Wibson using the Ethereum platform. He leverage BatPay solution to keep payments costs three orders of magnitude below ERC20 transactions.
NOTE: For more details about the protocol, please read our white paper here.
In order to run tests or deploy to local or any remote environment, the deploy.json
file must be set up.
You can start by copying the deploy.example.json
file, renaming it and editing it as suitable.
$ cp deploy.example.json deploy.json
$ vi deploy.json
If a remote network is used, a private key is needed to sign the deployment transactions. Keep in mind that
the address for that private key will be the deployer, and therefore, the owner of each contract.
Nevertheless, the ownership of the DataExchange
contract will be transferred to the multisig
account
configured in the deploy.json
file.
infuraToken
: The API key supplied by Infura to be used on remote environments.environments
: Allowed keys aredevelopment
,test
,coverage
,remoteDevelopment
,staging
,production
.- Environment options:
privateKeys
: Private keys for the accounts to be used during deploy in remote environments.
$ npm run test
$ # Or run with coverage
$ npm run test:coverage
$ npm run ganache &
$ npm run truffle -- migrate --reset --compile-all
$ npm run truffle console # to test within the console
For example, staging
:
$ npm run truffle -- migrate --reset --compile-all --network staging
$ npm run truffle console --network staging # to test within the console
- WIBToken:
0x3f17dd476faf0a4855572f0b6ed5115d9bba22ad
- DataExchange:
TBD
Transaction | Gas |
---|---|
registerNotary | 46714 |
updateNotaryUrl | 34593 |
unregisterNotary | 16335 |
createDataOrder | 239162 |
closeDataOrder | 29710 |
If you think that you have found a security issue in Wibson, please DO NOT post it as a Github issue and don't publish it publicly. Instead, all security issues must be sent to [email protected]. Although we are working on setting up a bug bounty program to improve this, we appreciate your discretion and will give the corresponding credit to the reporter(s).
Thank you for thinking about contributing to Wibson Core. There are many ways you can participate and help build high quality software. Check out the contribution guide!
Wibson Core is released under the LGPL-3.0.