Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update librustzcash #1

Open
wants to merge 2,764 commits into
base: master
Choose a base branch
from
Open

update librustzcash #1

wants to merge 2,764 commits into from

Conversation

ca333
Copy link

@ca333 ca333 commented Mar 3, 2023

No description provided.

nuttycom and others added 29 commits October 25, 2024 07:46
zcash_client_backend: Remove deprecated and duplicative wallet APIs.
Add `merge_group:` trigger to CI workflow.
This enables us to add a single "required status check" to the GitHub
repo settings, that covers all required matrix job cases.
CI: Add a job that runs when all required status checks pass
RPIT (return-position `impl Trait`) was stabilized in Rust 1.75, and the
`dynosaur` crate providing dynamic dispatch support was published two
weeks ago. Now that our MSRV is 1.77, we can use both of these.
zcash_client_backend: Switch from `async-trait` to RPIT for `tor` module
zcash_client_sqlite: Verify that the database is for the correct network before (most) migrations.
…2.x' into hotfix/zcash_client_sqlite-0.12.x-merge
…-merge

Merge hotfix/zcash_client_sqlite-0.12.x back to `main`.
…test

profile to compile with optimizations by default, but keep full debug info.

This differs from the release profile in the following ways:
- it does not set `lto = true`, which increases compile times without
  substantially speeding up tests;
- it does not set `codegen-units = 1`, which increases compile times and
  is only useful to improve determinism of release builds;
- it does not set `panic = 'abort'`, which is in any case ignored for
  tests.

After this PR, to get results as close as possible to a release build, use
`cargo test --release`.

To speed up compilation and avoid optimizations potentially resulting in
lower-quality debug info, use `cargo test --profile=dev`.

Times on my machine starting from `cargo clean` for each run:
* `cargo test --all-targets --all-features`:
  * 484s (354s build, 130s tests)
* `cargo test --release --all-targets --all-features`:
  * 541s (415s build, 126s tests)
* `cargo test --profile=dev --all-targets --all-features`:
  * 1709s (146s build, 1563s tests)
  * this might still be faster when running individual tests.

Signed-off-by: Daira-Emma Hopwood <[email protected]>
Signed-off-by: Daira-Emma Hopwood <[email protected]>
(instead of only in CI), so that there is no need to set it manually.

You can override this by setting `RUST_BACKTRACE=0`, or
`RUST_BACKTRACE=full` for a full backtrace.

Signed-off-by: Daira-Emma Hopwood <[email protected]>
Dev quality-of-life improvements (better test backtraces in CI and locally; faster test builds; `RUST_BACKTRACE=1` by default)
* Fix the documentation for `find_account_for_ephemeral_address` which
  included a use of `get_known_ephemeral_addresses` with incorrect types.
* Clarify that passing `None` for the `index_range` parameter of
  `get_known_ephemeral_addresses` is equivalent to passing `0..(1u32 << 31)`.

Signed-off-by: Daira-Emma Hopwood <[email protected]>
[doc-only] Minor documentation fix and clarification for the data API
str4d and others added 30 commits January 28, 2025 03:49
Instead the PCZT is parsed into its protocol-specific types, and getters
on those are used.

The remaining getters are used for sighash derivation, the one part of
the stack that is not currently modular.
Changes required for Keystone firmware support
Update changelogs with dependency bumps from Keystone PR
…protocol`

This fixes a few errors that have been introduced over time since
`zcash_extensions` is not regularly built, and migrates
`zcash_extensions` to eliminate the use of deprecated `zcash_primitives`
APIs.
As of `nonempty 0.11`, `nonempty` is `no-std` compatible and therefore
the `nonempty` dependency no longer needs to be optional.
Co-authored-by: Daira-Emma Hopwood <[email protected]>
`zcash_primitives`: Add `no_std` support
This commit on its own doesn't expand the public API, as such
`WalletDb`s cannot be constructed.
This requires `C: Borrow<rusqlite::Connection>` to ensure that at least
`WalletRead` is accessible. It enables construction of the following
additional types:
- `WalletDb<&rusqlite::Connection, _>`
- `WalletDb<&mut rusqlite::Connection, _>`
zcash_client_sqlite: Enable constructing `WalletDb` around references to `rusqlite::Connection`
zcash_client_sqlite: Allow `init_wallet_db` with `&mut` connections
Update to `incrementalmerkletree 0.8`, `shardtree 0.6`
CI: Check workflows and actions with zizmor
pczt: Add `Prover::{requires_sapling_proofs, requires_orchard_proof}`
zcash_client_backend: Allow disabling Tor directory permissions tightening
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants