Daira Emma Hopwood
f1956ae442
Fix/suppress clippy warnings.
...
Signed-off-by: Daira Emma Hopwood <daira@jacaranda.org>
2023-04-20 16:29:57 +01:00
Jack Grigg
7f35a0da5c
Migrate to `zcash_primitives 0.10`
...
Closes zcash/zcash#6398 .
2023-03-17 00:09:45 +00:00
Jack Grigg
7cf42562d3
zcash_primitives 0.9
2023-01-11 00:56:29 +00:00
Daira Hopwood
1889a466ec
Report the prevout for each transparent input as it is being checked
...
Author: Kris Nuttycombe <kris@nutty.land>
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2022-10-29 18:46:58 +01:00
Kris Nuttycombe
fd2cd0f02b
Add extra detail related to transparent inputs and outputs.
2022-10-29 18:44:53 +01:00
Kris Nuttycombe
16c49a844e
Fix clippy lints.
2022-10-20 08:35:29 -06:00
Kris Nuttycombe
741e6b1108
Update to released versions of librustzcash crates.
2022-10-20 08:35:29 -06:00
Jack Grigg
b05b1dafa6
rust: Migrate to latest `zcash_primitives` revision
2022-09-14 18:20:20 +00:00
Jack Grigg
2a21051fbe
rust: `zcash-inspect` 32-byte hex as maybe a commitment or nullifier
2022-08-22 13:52:43 +00:00
Jack Grigg
a0efb40632
rust: Add shielded sighash to `zcash-inspect` output for txs
2022-08-22 13:47:10 +00:00
Jack Grigg
f21ba7a822
rust: Place tighter bound on encoded heights in `zcash-inspect`
...
From NU5, block heights are required to be encoded in the 32-bit
`nExpiryHeight` field, which places a bound on the maximum length of the
height encoded in a coinbase transaction.
Co-authored-by: Daira Hopwood <daira@jacaranda.org>
2022-08-19 04:20:10 +00:00
Jack Grigg
e530f6f30a
rust: Simplify `next_pow2` in `zcash-inspect`
...
Co-authored-by: Daira Hopwood <daira@jacaranda.org>
2022-08-19 04:18:36 +00:00
Jack Grigg
fd7cb4bb4a
rust: Add mnemonic phrase inspection to `zcash-inspect`
2022-08-19 04:13:05 +00:00
Jack Grigg
b0bf639760
rust: Add address inspection to `zcash-inspect`
2022-08-19 04:13:05 +00:00
Jack Grigg
a125180a50
rust: Add P2PKH signature checking to `zcash-inspect`
...
Co-authored-by: ying tong <yingtong@z.cash>
2022-08-19 04:13:05 +00:00
Jack Grigg
8d82cee9c8
rust: Add `zcash-inspect` binary for inspecting Zcash data
...
Currently supports Zcash blocks, block headers, and transactions. Some
consensus rules are also checked, and a JSON context object can be
optionally passed to provide any necessary details for extra contextual
consensus checks.
2022-08-19 04:13:05 +00:00
Daira Hopwood
fbc191a2e1
zcashd-wallet-tool: improve the error message for an invalid logging filter directive.
...
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2022-04-18 17:31:40 +01:00
Kris Nuttycombe
195bb75502
Default to error logging if we can't parse the log filter.
2022-04-18 09:28:12 -06:00
Daira Hopwood
6b836ce7e5
zcashd-wallet-tool: warn that wallet.dat needs to be backed up. fixes #5704
...
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2022-03-24 14:24:43 +00:00
Daira Hopwood
340840894a
Tweaks to message text.
...
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2022-03-14 08:24:25 +00:00
Daira Hopwood
55d14faebf
Correct the fallback instruction for how to clear the terminal on macOS: pressing Command + K
...
also clears scrollback.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2022-03-13 18:25:40 +00:00
Daira Hopwood
ccada66324
Simplify debug tracing.
...
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2022-03-12 12:56:32 +00:00
Daira Hopwood
577f695af5
Set `meta` for `-datadir` option.
...
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2022-03-11 19:02:31 +00:00
Daira Hopwood
3e36252d9a
Document that '~' cannot be used in `-datadir` (see #5661 ).
...
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2022-03-11 18:35:52 +00:00
Daira Hopwood
d5b6e226f0
Ensure the buffer used in `prompt` is zeroized even on error.
...
Co-authored-by: Jack Grigg <str4d@electriccoin.co>
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2022-03-11 18:21:11 +00:00
Daira Hopwood
7a98644ff2
Improve error message when the config file cannot be found, taking into account -conf and -datadir.
...
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2022-03-11 18:16:40 +00:00
Daira Hopwood
cb2c89eedf
Use the tracing crate for debugging.
...
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2022-03-11 17:17:56 +00:00
Daira Hopwood
799b46b90a
Cleanups to error handling for the first invocation of zcash-cli.
...
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2022-03-10 17:18:26 +00:00
Daira Hopwood
999b395360
Improve memory hygiene, and use -stdin to pass the recovery phrase to the child zcash-cli process.
...
Co-authored-by: Jack Grigg <str4d@electriccoin.co>
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2022-03-10 17:17:06 +00:00
Daira Hopwood
d4405feddf
Simplify extraction of recovery phrase.
...
Co-authored-by: Jack Grigg <str4d@electriccoin.co>
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2022-03-09 18:04:27 +00:00
Daira Hopwood
9b20105413
Tweak the wording of the fallback messages when the terminal cannot be automatically cleared.
...
Co-authored-by: Kris Nuttycombe <kris@electriccoin.co>
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2022-03-07 19:34:31 +00:00
Daira Hopwood
6fb943d0f6
Refactor use of `export_path` as suggested.
...
Co-authored-by: Sean Bowe <sean@electriccoin.co>
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2022-03-07 19:33:27 +00:00
Daira Hopwood
6f5efcbb0f
Improved error handling.
...
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2022-03-07 18:39:23 +00:00
Daira Hopwood
25792cba93
Move `wallet_tool.rs` from `src/rust/src` into `src/rust/bin`.
...
Also add a brief description of `zcashd-wallet-tool` to `src/rust/README.md`.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2022-03-07 18:39:23 +00:00