This project provides a simple CLI to establish web-socket connection with the ws-identity to receive, sign and return digests.
The wallet issues ECDSA keypairs of type p256 and p384 (secp256r1/secp384r1)
- Download dependencies
npm install
- Build dist
npm run build
- Expose CLI commands (see ws-wallet --help)
npm run local
ws-wallet new-key [keyname] [curve type: p256 | p384]
ws-wallet get-pkh [keyname]
ws-wallet connect [url] [key-name] ([strict-ssl])
requires:
- [url] of the ws-identity host (e.g., 'ws://localhost:8700')
- [key-name] of local keyfile with pub-key-hex addresss used to request new session ID
- [strict-ssl] can be set to false when testing ssl/tls enabled ws-identity server
Requests a new session Id from the ws-idenity. Outputs the session Id and signature as API keys to access the ws-identity server and open connction to ws-wallet from the desired application