Commit Graph

3680 Commits

Author SHA1 Message Date
Kris Nuttycombe 042a7a6990
Merge pull request #1214 from nuttycom/fix/zcash_keys_flagging
zcash_keys: Fix a few problems with no-flags compilation.
2024-03-04 15:47:48 -07:00
Kris Nuttycombe 836d88b9c3 zcash_keys: Fix a few problems with no-flags compilation. 2024-03-04 15:01:15 -07:00
str4d e78ea02240
Merge pull request #1213 from nuttycom/wallet/key_validation
zcash_client_backend: Add `WalletRead::validate_seed`
2024-03-04 21:54:23 +00:00
Kris Nuttycombe 0d430ba62c Apply documentation suggestions from code review.
Co-authored-by: str4d <thestr4d@gmail.com>
2024-03-04 13:32:26 -07:00
Kris Nuttycombe e4c0b0e63f zcash_client_backend: Add `WalletRead::validate_seed`
This adds a mechanism that allows a caller to verify that a given seed
generates the viewing key that is stored in the wallet for a specified
account.

Fixes #1189
2024-03-04 10:59:56 -07:00
Kris Nuttycombe 41fda05f97
Merge pull request #1212 from zcash/zcash_history-0.4.0
zcash_history 0.4.0
2024-03-01 12:30:05 -07:00
Jack Grigg cdbd33e2ff zcash_history 0.4.0 2024-03-01 15:10:11 +00:00
str4d f4c4f1ab1c
Merge pull request #1211 from zcash/release-0.14.0-etc
Release 0.14.0 etc
2024-03-01 01:57:25 +00:00
Jack Grigg dbdc88e4d7 Revert "Hide unstable `orchard` feature flag in rustdoc"
Now that the release commits are created, we can unhide this ahead of
the subsequent Orchard-supporting releases.

This reverts commit zcash/librustzcash@6161709441.
2024-03-01 01:17:15 +00:00
Jack Grigg 891ab1ca6d zcash_client_sqlite 0.9.0
Closes zcash/librustzcash#961.
2024-03-01 01:17:02 +00:00
Jack Grigg dfb6c65edd zcash_client_backend 0.11.0
Closes zcash/librustzcash#962.
2024-03-01 01:16:04 +00:00
Jack Grigg 3135c31d1a zcash_keys 0.1.0 2024-03-01 01:14:34 +00:00
Jack Grigg d0c380114a zcash_proofs 0.14.0
Closes zcash/librustzcash#1034.
2024-03-01 01:13:49 +00:00
Jack Grigg 599aa45a56 zcash_primitives 0.14.0 2024-03-01 01:12:43 +00:00
Jack Grigg 6161709441 Hide unstable `orchard` feature flag in rustdoc
It is not part of the public API for `zcash_client_backend 0.11.0` and
`zcash_client_sqlite 0.9.0`.
2024-03-01 01:12:07 +00:00
Kris Nuttycombe af303e810a
Merge pull request #1210 from nuttycom/wallet/account_doc
zcash_client_backend: Add documentation for the `data_api` module.
2024-02-29 18:04:57 -07:00
Kris Nuttycombe 9ea027150a zcash_client_sqlite: Allow use of `zcash_client_backend::data_api::wallet::spend` in tests 2024-02-29 17:57:24 -07:00
Kris Nuttycombe e44ddee8ad zcash_client_backend: Add documentation for the `data_api` module.
Fixes #1209
2024-03-01 00:47:15 +00:00
Kris Nuttycombe dc3aee1f23
Merge pull request #1195 from nuttycom/wallet/generalize_scanning_keys
zcash_client_backend: Implement batch scanning for Orchard outputs in `scan_cached_blocks`.
2024-02-29 16:06:17 -07:00
Kris Nuttycombe e5f23b9126 Update `orchard` dependency version to `0.7.1` 2024-02-29 15:39:44 -07:00
Kris Nuttycombe a4b951d193 Apply suggestions from code review
Co-authored-by: str4d <thestr4d@gmail.com>
2024-02-29 15:19:07 -07:00
Kris Nuttycombe 939cfcce70 zcash_client_sqlite: Temporarily hardcode an empty response for `get_orchard_nullifiers` 2024-02-29 12:06:25 -07:00
Kris Nuttycombe 27f6207a7c zcash_client_backend: Pass nullifiers separately from scanning keys. 2024-02-29 12:06:22 -07:00
Kris Nuttycombe a63d5e51d1 zcash_client_backend: Return decoding errors from `BatchRunners::add_block` 2024-02-29 12:04:55 -07:00
Kris Nuttycombe 7e8723bea9 zcash_client_backend: Add Orchard support to batch scanning. 2024-02-29 12:04:53 -07:00
Kris Nuttycombe 880c24c45d zcash_client_backend: Generalize key source metadata. 2024-02-29 11:55:44 -07:00
Kris Nuttycombe 802c01002a zcash_client_backend: Rework scanning key identifiers.
In the process of making the internals of `scan_block_with_runner`
reusable across Sapling and Orchard, it became evident that key
identifier abstraction along the lines of #1175 is needed more
generally. This commit refactors the use of ZIP 32 account identifiers
and key scopes to better separate scanning concerns from ZIP 32 key
derivation. In the process, this removes a fair amount of unnecessary
polymorphism from `zcash_client_backend::wallet::WalletTx` and related
types.
2024-02-29 11:55:25 -07:00
Kris Nuttycombe c7df76f7d1 zcash_client_backend: Factor out common note decryption from `scan_block_with_runner` 2024-02-29 11:55:23 -07:00
Kris Nuttycombe ba568f47ad zcash_client_backend: Factor out nullifier checks from `scan_block_with_runner` 2024-02-29 11:54:20 -07:00
Kris Nuttycombe dd8c6dee12 zcash_client_backend: Generalize `ScanningKey`
This change allows the `ScanningKey` type to represent Orchard
keys as well as Sapling keys.

No CHANGELOG entry is added for this, as the `ScanningKey` type
is further reworked in a later commit.
2024-02-29 11:54:02 -07:00
Kris Nuttycombe e2331dbd6f
Merge pull request #1202 from nuttycom/generic_account_id
zcash_client_backend: Make `AccountId` an associated type of `WalletRead`
2024-02-29 11:53:26 -07:00
Kris Nuttycombe 5174f7e339
Merge pull request #1206 from nuttycom/orchard_tree_deser
zcash_client_backend: Implement `TreeState::orchard_tree`
2024-02-29 11:41:48 -07:00
Kris Nuttycombe 688c36166a Address comments from code review. 2024-02-29 07:50:31 -07:00
Kris Nuttycombe 9c3467e941 zcash_client_backend: Implement `TreeState::orchard_tree` 2024-02-29 07:21:51 -07:00
Kris Nuttycombe 41b050f1e9 zcash_client_backend: Make `AccountId` an associated type of `WalletRead`
This PR was extracted from https://github.com/zcash/librustzcash/pull/1175
in order to make the changes to `zcash_client_backend` usable without
the additional generalizations to `zcash_client_sqlite` made by that PR.

Co-authored-by: Andrew Arnott <andrewarnott@live.com>
2024-02-28 21:06:14 -07:00
Kris Nuttycombe 5ed788dc79
Merge pull request #1168 from nuttycom/zcash_keys_sapling_feature
zcash_keys: Add `sapling` and `transparent` feature flags.
2024-02-26 19:16:07 -07:00
Kris Nuttycombe 635bc3158b
Fix an error in decoding tests.
Co-authored-by: str4d <thestr4d@gmail.com>
2024-02-26 18:33:19 -07:00
Kris Nuttycombe f50deb47a0
Merge pull request #1194 from zcash/changelog-cleanups
Changelog cleanups
2024-02-26 12:52:35 -07:00
Kris Nuttycombe de2d4e71af
Merge pull request #1196 from nuttycom/fix/zip321_test_deps
zcash_client_backend: Fix incorrect handling of zip321 test dependencies.
2024-02-26 08:06:44 -07:00
Kris Nuttycombe 1892e0cc39 zcash_client_backend: Fix incorrect handling of zip321 test dependencies. 2024-02-23 22:09:22 -07:00
Kris Nuttycombe 2a6330f2ea Apply suggestions from code review
Co-authored-by: str4d <thestr4d@gmail.com>
2024-02-23 09:16:26 -07:00
Kris Nuttycombe 9b98f46bf6 zcash_keys: Add `sapling` and `transparent-inputs` feature flags.
Fixes #1160
2024-02-23 09:16:25 -07:00
Jack Grigg b6ab9b5311 Clean up zcash_client_backend changelog 2024-02-22 23:38:15 +00:00
Jack Grigg 25b682728b Clean up zcash_keys changelog 2024-02-22 23:38:15 +00:00
Jack Grigg 92e54ddce2 Clean up zcash_primitives changelog 2024-02-22 23:38:15 +00:00
Jack Grigg e85c631dd3 Add missing entries to changelogs 2024-02-22 23:38:05 +00:00
str4d 04343e16f1
Merge pull request #1105 from nuttycom/wallet/orchard_spends_and_outputs
zcash_client_backend: add Orchard spends and outputs to transaction construction
2024-02-22 01:12:18 +00:00
Kris Nuttycombe 184286c430 Apply suggestions from code review
Co-authored-by: str4d <thestr4d@gmail.com>
2024-02-21 17:36:08 -07:00
Kris Nuttycombe 050a124cb6 Address comments from code review. 2024-02-21 11:55:00 -07:00
Kris Nuttycombe 8c78d7f2a0 Fix incorrect documentation link. 2024-02-19 10:34:07 -07:00