Command Line Interface (CLI) for encrypting, decrypting, and sending messages over the BCH blockchain.
git clone https://github.com/christroutner/bch-encrypt && cd bch-encrypt
npm install
./bin/run help
$ npm install -g @chris.troutner/bch-encrypt
$ bch-encrypt COMMAND
running command...
$ bch-encrypt (-v|--version|version)
@chris.troutner/bch-encrypt/1.0.1 linux-x64 node-v12.16.1
$ bch-encrypt --help [COMMAND]
USAGE
$ bch-encrypt COMMAND
...
Decrypt a a message with the WIF private key.
USAGE
$ bch-encrypt decrypt
OPTIONS
-m, --msg=msg Encrypted message
-w, --wif=wif Base58 WIF private key to decrypt message
DESCRIPTION
...
Decrypts an encrypted message, using the private key in the WIF.
See code: src/commands/decrypt.js
Get the public key for a BCH address.
USAGE
$ bch-encrypt get-key
OPTIONS
-n, --name=name BCH cash address
DESCRIPTION
...
Analyzes transactions on the blockchain to try and retrieve a public key for
a BCH address. This will not work if the address does not have any transactions.
See code: src/commands/get-key.js
display help for bch-encrypt
USAGE
$ bch-encrypt help [COMMAND]
ARGUMENTS
COMMAND command to show help for
OPTIONS
--all see all commands in CLI
See code: @oclif/plugin-help
Send an encrypted message to a BCH address.
USAGE
$ bch-encrypt send
OPTIONS
-a, --addr=addr BCH cash address of the recipient
-m, --msg=msg Message to encrypt
-w, --wif=wif Base58 WIF private key to pay for transaction
DESCRIPTION
...
Encrypts a message with the recipients BCH address and publishes the encrypted
message to the blockchain by sending transactions to the recipients address.
The message will be broken up into multiple transactions that will need
to be parsed together using the memo.cash and member.cash protocols.
See code: src/commands/send.js