piratewallet-light-cli/README.md

53 lines
2.9 KiB
Markdown
Raw Normal View History

2020-08-06 04:55:33 +00:00
## Zecwallet CLI - A command line ZecWallet light client.
2019-09-18 03:48:38 +00:00
2019-10-02 01:15:28 +00:00
`zecwallet-cli` is a command line ZecWallet light client. To use it, download the latest binary from the releases page and run `./zecwallet-cli`
2019-09-18 03:48:38 +00:00
This will launch the interactive prompt. Type `help` to get a list of commands
2019-10-14 19:47:32 +00:00
## Running in non-interactive mode:
2020-08-06 04:55:33 +00:00
You can also run `zecwallet-cli` in non-interactive mode by passing the command you want to run as an argument. For example, `zecwallet-cli addresses` will list all wallet addresses and exit.
Run `zecwallet-cli help` to see a list of all commands.
2019-09-18 03:32:47 +00:00
2020-08-06 04:55:33 +00:00
## Privacy
2019-10-15 00:33:54 +00:00
* While all the keys and transaction detection happens on the client, the server can learn what blocks contain your shielded transactions.
* The server also learns other metadata about you like your ip address etc...
2019-10-15 00:36:39 +00:00
* Also remember that t-addresses don't provide any privacy protection.
2019-10-15 00:33:54 +00:00
2019-09-18 16:48:09 +00:00
## Notes:
2020-05-21 04:45:08 +00:00
* If you want to run your own server, please see [zecwallet lightwalletd](https://github.com/adityapk00/lightwalletd), and then run `./zecwallet-cli --server http://127.0.0.1:9067`.
2020-07-29 05:17:16 +00:00
* The log file is in `~/.zero/zerowallet-light-wallet.debug.log`. Wallet is stored in `~/.zero/zerowallet-light-wallet.dat`
2019-09-18 16:48:09 +00:00
### Note Management
2019-10-02 01:15:28 +00:00
Zecwallet-CLI does automatic note and utxo management, which means it doesn't allow you to manually select which address to send outgoing transactions from. It follows these principles:
2019-09-18 16:48:09 +00:00
* Defaults to sending shielded transactions, even if you're sending to a transparent address
2019-10-31 00:21:58 +00:00
* Sapling funds need at least 5 confirmations before they can be spent
2019-09-18 16:48:09 +00:00
* Can select funds from multiple shielded addresses in the same transaction
2019-09-19 14:10:44 +00:00
* Will automatically shield your transparent funds at the first opportunity
2019-10-02 01:15:28 +00:00
* When sending an outgoing transaction to a shielded address, Zecwallet-CLI can decide to use the transaction to additionally shield your transparent funds (i.e., send your transparent funds to your own shielded address in the same transaction)
2019-09-18 16:48:09 +00:00
2019-09-18 03:32:47 +00:00
## Compiling from source
#### Pre-requisites
2019-09-18 03:48:38 +00:00
* Rust v1.37 or higher.
* Run `rustup update` to get the latest version of Rust if you already have it installed
2020-05-25 20:08:34 +00:00
* Rustfmt
* Run `rustup component add rustfmt` to add rustfmt
2020-05-25 16:12:22 +00:00
* Build tools
* Please install the build tools for your platform. On Ubuntu `sudo apt install build-essential gcc`
2019-09-18 03:48:38 +00:00
```
2019-10-17 14:12:03 +00:00
git clone https://github.com/adityapk00/zecwallet-light-cli.git
2019-09-18 03:48:38 +00:00
cargo build --release
2019-10-02 01:15:28 +00:00
./target/release/zecwallet-cli
2019-09-18 03:48:38 +00:00
```
## Options
2020-08-06 04:55:33 +00:00
Here are some CLI arguments you can pass to `zecwallet-cli`. Please run `zecwallet-cli --help` for the full list.
2019-09-18 03:48:38 +00:00
2020-08-06 04:55:33 +00:00
* `--server`: Connect to a custom zecwallet lightwalletd server.
2019-10-02 01:15:28 +00:00
* Example: `./zecwallet-cli --server 127.0.0.1:9067`
2019-09-18 03:48:38 +00:00
* `--seed`: Restore a wallet from a seed phrase. Note that this will fail if there is an existing wallet. Delete (or move) any existing wallet to restore from the 24-word seed phrase
2019-10-02 01:15:28 +00:00
* Example: `./zecwallet-cli --seed "twenty four words seed phrase"`
2019-10-14 16:59:05 +00:00
* `--recover`: Attempt to recover the seed phrase from a corrupted wallet