Commit Graph

151 Commits

Author SHA1 Message Date
Jack Grigg 79f4df0481
Merge pull request #37 from nuttycom/readme_document_usage
Add basic usage documentation to `README.md`
2024-09-10 19:47:45 +01:00
Kris Nuttycombe 455b492bd3 Print per-output information and memos in `list-tx` output. 2024-09-04 08:44:29 -06:00
Kris Nuttycombe 0bb328435f Add `list-accounts` command. 2024-08-29 17:16:43 -06:00
Kris Nuttycombe af7bd05109 Add `--disable-tor` option to `enhance` and `send` commands. 2024-08-29 12:43:47 -06:00
Kris Nuttycombe bb94b4cc1c cargo update 2024-08-28 19:42:27 -06:00
Kris Nuttycombe 2b0788fd47 Add basic usage documentation to `README.md` 2024-08-27 17:11:35 -06:00
Kris Nuttycombe 8c2e49f6d3
Merge pull request #31 from Electric-Coin-Company/tor-lightwalletd
Connect to non-local `lightwalletd` over Tor for everything except sync
2024-08-20 13:02:15 -06:00
Jack Grigg d3e51e06d0 Connect to non-local `lightwalletd` over Tor for everything except sync
Most commands are single-shot, only making a couple of correlated
requests to the server. Enhancement makes requests that could be made
uncorrelated; that is left as a TODO.

Syncing currently requires a long-running connection, so we don't
migrate it yet.
2024-08-20 18:48:17 +00:00
Jack Grigg 93e8c44d83 Move `connect_to_lightwalletd` to `Server::connect_direct` 2024-08-20 18:44:37 +00:00
Jack Grigg 4f7b1c78e8 Move `tor::Client` setup into `crate::remote` 2024-08-20 18:42:32 +00:00
Jack Grigg d11a653269
Merge pull request #35 from nuttycom/update_librustzcash
Update to latest zcash dependencies
2024-08-20 11:40:30 -07:00
Kris Nuttycombe 2b2e435979 Modify transaction enhancement to use the transaction data request queue. 2024-08-20 12:31:58 -06:00
Kris Nuttycombe 2c3117310e Update to latest zcash dependencies.
- `sapling-crypto 0.2`
- `orchard 0.9`
- `zcash_address 0.4`
- `zcash_client_backend 0.13`
- `zcash_client_sqlite 0.11`
- `zcash_keys 0.3`
- `zcash_primitives 0.16`
- `zcash_proofs 0.16`
- `zcash_protocol 0.2`
- `zip321 = `0.1`
2024-08-20 12:31:58 -06:00
Jack Grigg 993a8bda74
Merge pull request #32 from Electric-Coin-Company/import-ufvk
Add `import-ufvk` command
2024-08-01 00:58:08 +01:00
Jack Grigg 1bb3b12725 list-tx: Show the first account like list-unspent
This was breaking on view-only wallets created with `--accounts 0`, that
had no accounts with a ZIP 32 index of 0.
2024-07-31 23:47:52 +00:00
Jack Grigg 8937ab34cd import-ufvk: Add command 2024-07-31 23:19:44 +00:00
Jack Grigg d0b035bc62 init/reset: Allow configuring the number of accounts
In particular, this enables creating a zero-account wallet for testing
view-only functionality.
2024-07-31 22:38:28 +00:00
Jack Grigg 6dea17d8e9
Merge pull request #30 from Electric-Coin-Company/bump-rust-crates
Migrate to latest revision of librustzcash crates
2024-07-30 01:32:41 +01:00
Jack Grigg b294414deb Migrate to latest revision of librustzcash crates 2024-07-29 20:54:38 +00:00
Kris Nuttycombe 3a60108fe9
Merge pull request #29 from Electric-Coin-Company/exchange-rate-usd
balance: Add currency conversion over Tor
2024-07-29 11:59:19 -06:00
Jack Grigg 1f9822c3dc balance: Add currency conversion over Tor 2024-07-24 19:29:46 +00:00
Jack Grigg 44fa1dba3e
Merge pull request #28 from Electric-Coin-Company/zip-320
send: Add ZIP 320 (TEX address) support
2024-07-24 20:28:07 +01:00
Jack Grigg 3f60b0d538 send: Add ZIP 320 (TEX address) support 2024-07-24 18:25:50 +00:00
Kris Nuttycombe e30404688b
Merge pull request #27 from Electric-Coin-Company/keys-toml 2024-06-20 17:39:46 -06:00
Jack Grigg 174c9a9359 Fix clippy lints from Electric-Coin-Company/zec-sqlite-cli#26 2024-06-20 23:39:04 +00:00
Jack Grigg 6b8cce9d5d Rename `config.toml` to `keys.toml`
This keeps it clear that the file contains key material (like the
previous `keys.txt` name did).
2024-06-20 23:35:24 +00:00
str4d ee2d558252
Merge pull request #26 from nuttycom/toml_config
Update to latest `librustzcash` and use toml instead of text for wallet config.
2024-06-20 23:40:10 +01:00
Kris Nuttycombe 78d90431f7 Use `toml` for keys file parsing
This is needed in order to enable support for using an existing wallet
database file without having the seed available.
2024-06-20 15:36:45 -06:00
Kris Nuttycombe b23d6a8019 Update to latest `librustzcash` `main` 2024-06-20 15:36:07 -06:00
str4d dad0ee9d51
Merge pull request #23 from Electric-Coin-Company/fetch-utxos-and-enhance-txs
Fetch UTXOs and enhance transactions
2024-06-20 16:52:46 +01:00
str4d f82ffcfba9
Merge pull request #25 from Electric-Coin-Company/better-localhost-server-support
Better localhost server support
2024-05-28 17:44:13 +01:00
Jack Grigg 190b8ef214 Don't connect with HTTPS to localhost `lightwalletd` servers
These do not need TLS certificates, and almost certainly do not have
them (instead ruynning with the `--no-tls-very-insecure` flag). We still
require TLS certificates for non-localhost servers.
2024-05-28 16:19:40 +00:00
Jack Grigg 5c4eb3e757 Support custom servers at IPv6 addresses
Custom servers are `host:port` tuples, so we can split on the last `:`
instead of the first in order to not split inside the IPv6 address.
2024-05-28 16:07:22 +00:00
Kris Nuttycombe 9306b40b96
Merge pull request #24 from Electric-Coin-Company/cleanups-and-shutdown-logic
Cleanups and shutdown logic
2024-05-28 09:46:22 -06:00
Jack Grigg db68479d83 Add `enhance` command that fetches missing transaction data 2024-05-23 17:18:39 +00:00
Jack Grigg c1a4b81751 list-tx: Fix bug after account ID changes
We only check ZIP 32 account 0, but after the account ID changes that
SQL column now contains a primary key that starts at 1 for new wallets,
and 0 for migrated ones. We now look up the correct account ID for the
desired ZIP 32 account.
2024-05-23 17:18:35 +00:00
Jack Grigg 97fc031013 sync: Refresh UTXOs at the start of each scanning cycle
The new `transparent-inputs` feature flag is default-enabled because
most testing of the Rust crates that we want to do will be with that
flag enabled, and anyone using this tool to investigate existing wallet
databases will also need it enabled. But the flag can be disabled for
testing shielded-only workflows.

Closes Electric-Coin-Company/zec-sqlite-cli#21.
2024-05-23 17:18:34 +00:00
Jack Grigg 07d1b58103 Implement proper shutdown logic (Ctrl-C in terminal, `q` in TUI) 2024-05-23 16:20:51 +00:00
Jack Grigg 4f61318311 Rework tracing configuration to use layers 2024-05-23 16:20:12 +00:00
Jack Grigg c1d9c54a74 Bump MSRV for usage of `BTreeMap::last_key_value`
We also fix some new lints for the new MSRV.
2024-05-23 16:20:12 +00:00
str4d 7f5ca04a7c
Merge pull request #20 from Electric-Coin-Company/defrag-refine-fetching
sync: Render "fetching" vs "fetched but not scanned" cells separately
2024-05-21 16:53:46 +01:00
Jack Grigg 519101f8e3 sync: Render "fetching" vs "fetched but not scanned" cells separately 2024-05-21 15:28:08 +00:00
str4d b2b249a721
Merge pull request #19 from nuttycom/update_librustzcash
Update to latest development version of librustzcash crates.
2024-05-09 02:37:00 +01:00
Kris Nuttycombe 8e4a7f9ff5 Update to latest development version of librustzcash crates. 2024-05-03 10:34:36 -06:00
str4d 1607a4fc29
Merge pull request #18 from Electric-Coin-Company/server-selection
Server selection logic
2024-04-26 20:50:24 +01:00
str4d a3c2155aef
Clarify error message
Co-authored-by: Daira-Emma Hopwood <daira@jacaranda.org>
2024-04-26 20:50:18 +01:00
Jack Grigg 75cf509eba Remove hack for buggy lightwalletd impls
All deployed lightwalletd servers have the bug fixed.
2024-04-26 15:37:55 +00:00
Jack Grigg 9b728d2dfc Add server selection logic 2024-04-26 15:37:55 +00:00
str4d 01e872ab2d
Merge pull request #17 from Electric-Coin-Company/defrag
Create defrag-style TUI for wallet syncing
2024-04-22 23:45:11 +01:00
Jack Grigg 985cbdd2a6 sync: Rename log windows in TUI 2024-04-22 22:26:13 +00:00