Skip to content

zcash_client_backend-0.14.0

@nuttycom nuttycom tagged this 04 Oct 18:52
[0.14.0] - 2024-10-04
=====================

Added
-----
- `zcash_client_backend::data_api`:
  - `GAP_LIMIT`
  - `WalletSummary::recovery_progress`
  - `SpendableNotes::{take_sapling, take_orchard}`
  - Tests and testing infrastructure have been migrated from the
    `zcash_client_sqlite` internal tests to the `testing` module, and have been
    generalized so that they may be used for testing arbitrary implementations
    of the `zcash_client_backend::data_api` interfaces. The following have been
    added under the `test-dependencies` feature flag as part of this migration:
    - `WalletTest`
    - `testing::AddressType`
    - `testing::CachedBlock`
    - `testing::DataStoreFactory`
    - `testing::FakeCompactOutput`
    - `testing::InitialChainState`
    - `testing::NoteCommitments`
    - `testing::Reset`
    - `testing::TestAccount`
    - `testing::TestBuilder`
    - `testing::TestCache`
    - `testing::TestFvk`
    - `testing::TestState`
    - `testing::TransactionSummary`
    - `testing::input_selector`
    - `testing::orchard`
    - `testing::pool`
    - `testing::sapling`

Changed
-------
- Migrated to `orchard 0.10`, `sapling-crypto 0.3`, `shardtree 0.5`,
  `zcash_address 0.6`, `zcash_primitives 0.19`, `zcash_proofs 0.19`,
  `zcash_protocol 0.4`.
- The `Account` trait now uses an associated type for its `AccountId`
  type instead of a type parameter. This change allows for the simplification
  of some type signatures.
- `zcash_client_backend::data_api`:
  - `WalletSummary::scan_progress` now only reports progress for scanning blocks
    "near" the chain tip. Progress for scanning earlier blocks is now reported
    via `WalletSummary::recovery_progress`.
  - `WalletRead::get_min_unspent_height` has been removed. This was added to make
    it possible to obtain a "safe truncation" height in order to facilitate rewinds
    to a greater depth than the available note commitment tree checkpoints provide,
    but such rewinds are no longer supported.
- `zcash_client_backend::sync::run`:
  - Transparent outputs are now refreshed in addition to shielded notes.
- `zcash_client_backend::proposal::ProposalError` has a new `AnchorNotFound`
  variant.

Fixed
-----
- `zcash_client_backend::tor::grpc` now needs the `lightwalletd-tonic-tls-webpki-roots`
  feature flag instead of `lightwalletd-tonic`, to fix compilation issues.
Assets 2
Loading