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.
notary-sdk is the implementation of the official SDK to play as a Notary in Wibson Protocol.
This repository contains two applications
- Notary API: Service consumed by the Buyers API.
- Notary Signing Service: Service used to sign messages, consumed by the Notary 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 Notary SDK. There are many ways you can participate and help build high quality software. Check out the contribution guide!
Wibson Notary SDK is released under the LGPL-3.0.