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.
buyer-sdk is the implementation of the official SDK to play as a Buyer in Wibson Protocol.
This repository contains three applications:
- Buyer APP: Front-end App for the Buyer.
- Buyer API: Service consumed by the Buyer APP.
- Buyer Signing Service: Service used to sign the transactions sent to the Ethereum Network, consumed by Buyer API.
gpg -e -a .env
mv .vimrc.example ~/.vimrc
vi .env.asc
gpg --export-secret-keys -a -o private-key.asc <key-id>
GPG_KEY_PATH="private-key.asc" ENV_PATH=".env.asc" npm run start
Tasks can be executed by running the following commands
$ npm run task:dev # displays available tasks in src directory
$ npm run task:dev -- <task-name> # executes <task-name> from src directory
$ npm run task # displays available tasks in dist directory
$ npm run task -- <task-name> # executes <task-name> from dist directory
It supports subdirectories, in which case the command will be:
$ npm run task -- <subdirectory>:<file-name-without-.js>
Example:
$ npm run task -- migrations:batpay-balance
In order to define a new task to be run by command line, a JS file should be created under the src/tasks
directory.
It can be placed under a subdirectory like src/tasks/migrations
.
Last but not least, the file should export by default a function which can be async OR an object with several async functions.
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 Buyer SDK. There are many ways you can participate and help build high quality software. Check out the contribution guide!
Wibson Buyer SDK is released under the LGPL-3.0.