@bidipass/sdk
v1.2.2
Published
BidiPass SDK
Readme
BidiPass NodeJS SDK
BidiPass is an identity authentication protocol designed to strengthen today’s KYC model that global businesses depend on.
This repository contains BidiPass NodeJS SDK.
Prerequisites
- [ ]
Node.JS>=v8 - [ ]
ganache-cli(development only) - [ ]
truffle(development only)
Installation
npm install @bidipass/sdk
# or install it globally
npm install -g @bidipass/sdkDocumentation
Command Line Tool
Usage:
$(npm bin)/bidipass --help
# bidipass testnet
$(npm bin)/bidipass-testnet --help
# globally installed
bidipass --help
bidipass-testnet --helpalexanderc@MacBook-Pro:~/Desktop/Projects/exchange$ $(npm bin)/bidipass --help
bidipass <command>
Commands:
bidipass admin <command> Manage admins
bidipass fake-identity Fake an identity
bidipass generate-account Generate new blockchain account
bidipass info Show distribution information
bidipass provider <command> Manage providers
Options:
--key, -k BidiPass private key
-h, --help Show help [boolean]
-v, --version Show version number [boolean]
Copyright BidiPass 2018Commands are nested, e.g.
$(npm bin)/bidipass provider manager add. You can write--helpto see information about every command.
Development
Installation:
npm install
Running Tests:
cd ../blockchainnpm run rpccd ../sdknpm init-devnpm test
In order to debug please add
DEBUG='@bidipass/sdk:*'when runningnpm test. This feature is using debug package; please refer to it when using.
Another option to generate dump QR code for an identity in working directory is adding
BIDIPASS_DUMP_QR=1environment variable when running tests.
Release:
- Deploy blockchain using
npm run migrate(production) npm run initnpm run docsnpm packornpm publish
npm run initsynchronizes network configuration file (blockchain/truffle.json), which contains default network setup used by clients. Be very careful with this as it is being used in production!
