Signature service is used in conjunction with Wallet service to enable secure signing and transaction related functionality for blockchain. Since different blockchain have nuance differences, this services are application specific.
This service should not be called directly (besides during testing) and should only be called through Wallet Aggregator in production. This is to prevent errors from sending coins on main net. Safeguards are applied on Wallet Aggregator that always defaults any calls to testnet.
Client UI <-> Wallet Aggregator <-> Wallet Service <-> Signature Service
- UXTO
- GET /test
- GET /wallet?network=&nonce=
Available at ./instructions/env.md
To test application:
$ npm test
Install NPM modules on fresh deployment:
$ npm install
To run in development mode:
$ node index.js
To run in production mode:
$ pm2 start sign-svc-btc/index.js --name "sign-btc"