Commit Graph

1050 Commits

Author SHA1 Message Date
Jack Grigg e4915f99c4 zcash_transparent: Refactor code so it compiles in its new crate 2024-12-15 13:25:43 -07:00
Jack Grigg 1a3eeab703 Move transparent protocol code into `zcash_transparent`
Move-only on the relevant files; things are currently broken.
2024-12-15 09:54:48 +00:00
Jack Grigg 3d1e32211d pczt: Add output field for storing the user-facing address
This is necessary in order for Signers to display the address encoding
that a user is expecting to confirm.

Co-authored-by: Kris Nuttycombe <kris@nutty.land>
2024-12-13 18:29:45 +00:00
Jack Grigg f97f6fa8b3 pczt: Add a Verifier role
This isn't a real role per se; it's instead a way for accessing the
parsed protocol-specific bundles for individual access and verification.
2024-12-13 00:21:20 +00:00
Kris Nuttycombe 867267d062 Fix `zfuture` build. 2024-12-09 10:11:19 -07:00
Kris Nuttycombe 00af032b12 zcash_client_backend: Add support for PCZT construction from a Proposal Step.
Proving and signing don't require specific wallet methods; the
`Prover` and `Signer` roles provide the necessary functionality.

Co-authored by: Jack Grigg <jack@electriccoin.co>
2024-12-09 10:11:19 -07:00
Kris Nuttycombe 61e21cdbd7 zcash_client_backend: Make `build_proposed_transaction` take a UFVK instead of a USK 2024-12-09 10:11:19 -07:00
Jack Grigg 713c96bff4 zcash_primitives: Provide Sapling extsks at build instead of spend add 2024-12-09 10:11:19 -07:00
Jack Grigg b209e4bc4d zcash_primitives: Move transparent keys into a separate signing set 2024-12-09 10:11:19 -07:00
Jack Grigg 9a02e45bba zcash_primitives: Provide Orchard saks at build instead of spend add 2024-12-09 10:11:19 -07:00
Kris Nuttycombe dce62eba21 zcash_client_backend: Split `create_proposed_transaction` into two parts.
This refactors `create_proposed_transaction` to allow the internal
builder state and per-output metadata to be exposed after all inputs and
outputs for a proposal step have been added, in order to make it
possible to generate a PCZT from this data.
2024-12-09 10:11:19 -07:00
Jack Grigg b8a007543a pczt: Add the Updater role 2024-12-07 06:56:07 +00:00
Jack Grigg 318254cc5c Connect `pczt` crate to `zcash_primitives` tx builder 2024-12-07 06:56:07 +00:00
Jack Grigg ebacc0a8b8 pczt: Migrate to the protocol-specific PCZT impls 2024-12-07 06:56:07 +00:00
Jack Grigg 4a9f29d2c3 zcash_primitives: Implement transparent PCZT support 2024-12-07 06:56:07 +00:00
Jack Grigg 7f4db09781 pczt: Create structure that can be converted into a v5 transaction 2024-12-07 06:54:41 +00:00
Kris Nuttycombe df0a42ef88 Release zcash_primitives version 0.20.0 2024-11-14 16:00:56 -07:00
Kris Nuttycombe 3352671e1f zcash_client_backend: Generalize & extend account metadata query API
This generalizes the previous account metadata query API to be able to
represent more complex queries, and also to return note totals in
addition to note counts.
2024-11-13 13:21:56 -07:00
Kris Nuttycombe ae58d3eb49 Apply suggestions from code review & zcash/librustzcash#1579
Co-authored-by: Daira-Emma Hopwood <daira@jacaranda.org>
2024-10-25 09:34:27 -06:00
Kris Nuttycombe a12b75e532 zcash_primitives: Move `StandardFeeRule` to `zcash_client_backend` 2024-10-25 07:57:15 -06:00
Kris Nuttycombe 3a08a1584b Move non-standard-fee functionality behind a feature flag. 2024-10-25 07:46:44 -06:00
Kris Nuttycombe b8ca26bf6e zcash_primitives: Remove `StandardFeeRule::{PreZip313, Zip313}`
Co-authored-by: Daira-Emma Hopwood <daira@jacaranda.org>
2024-10-24 21:33:36 -06:00
Daira-Emma Hopwood 57fc8095fd Remove `fixed::FeeRule::standard` (which was misleadingly named because
fixed fees are not standard), and deprecate `fixed::FeeRule::non_standard`.

Signed-off-by: Daira-Emma Hopwood <daira@jacaranda.org>
2024-10-24 21:33:36 -06:00
Jack Grigg 2e7b94eecc Remove `clap` pin (used by `criterion`) now that its MSRV is compatible 2024-10-18 22:57:14 +00:00
Jack Grigg 0786550338 Fix clippy lints after MSRV bump 2024-10-18 22:39:23 +00:00
Jack Grigg ad9d202071 Bump MSRV to 1.77 2024-10-18 22:10:40 +00:00
Jack Grigg c36c408181 zcash_primitives 0.19.0 2024-10-02 21:14:25 +00:00
Jack Grigg 6ee2ddfc97 zcash_address 0.6.0 2024-10-02 21:12:45 +00:00
Jack Grigg fa73e4c04b zcash_primitives 0.18.0 2024-10-02 20:12:02 +00:00
Jack Grigg e5185e2896 zcash_protocol 0.4.0 2024-10-02 20:11:31 +00:00
Jack Grigg 830c20521c zcash_primitives: Fix release notes 2024-10-02 20:06:08 +00:00
Jack Grigg cfaab71cf1 Migrate to `sapling-crypto 0.3`, `orchard 0.10` 2024-10-02 18:52:06 +00:00
Jack Grigg ae4a968a86 Fix `cargo test -p zcash_primitives` 2024-09-23 16:13:13 +00:00
Kris Nuttycombe 70e6121841 Release zcash_primitives version 0.17.0 2024-08-26 16:22:19 -06:00
Kris Nuttycombe 68788e4f2e zcash_primitives release version 0.16.0 2024-08-19 18:44:36 -06:00
Kris Nuttycombe 12752cbcd6 zcash_primitivies: Update zcash-specific dependencies.
* sapling-crypto 0.2
* orchard 0.9
* incrementalmerketree 0.6
* shardtree 0.4
2024-08-13 16:58:58 -06:00
Jack Grigg 52abb1f057
Merge pull request #1473 from nuttycom/wallet/enrichment_queue
Add queues to track the need for transaction enhancement and/or verification of mined status.
2024-08-10 00:37:23 +01:00
Kris Nuttycombe 69828bc0d0 zcash_client_sqlite: Add `target_height` column to `transactions` table. 2024-08-06 12:25:44 -06:00
Kris Nuttycombe 1057ddb516 zcash_client_sqlite: Add a table to track transaction status and enrichment requests. 2024-08-06 12:25:44 -06:00
Alfredo Garcia 5a4a3e06dc
Make `nu6` rust feature stable (#1454) 2024-08-06 00:01:03 +01:00
Jack Grigg b3dad95de0 zcash_primitives: Use `TxId` type inside `transparent::OutPoint`
This doesn't affect the public API, but it improves the `Debug` impl for
`OutPoint` because `TxId` renders its `[u8; 32]` as byte-reversed hex.
2024-07-27 00:38:22 +00:00
Kris Nuttycombe 3cec9ee4a7 zcash_client_sqlite: Store received UTXOs in `store_decrypted_tx`.
This fixes an issue wherein transparent outputs of transactions added to
the wallet via `decrypt_and_store_transaction` would not be properly
recorded as UTXOs belonging to the wallet.

Part of #1434
2024-07-26 15:47:16 -06:00
Jack Grigg a5e467f335
Merge pull request #1451 from zcash/devtools
Import `zcash-inspect` from `zcash/zcash` into a `devtools` crate
2024-07-22 19:31:32 +01:00
Kris Nuttycombe eceb8c7ff5
Merge pull request #1442 from hattizai/patch001
chore: remove duplicate words
2024-07-22 11:49:24 -06:00
Jack Grigg 8f26eb9de4 devtools: Integrate `zcash-inspect` into workspace 2024-07-22 13:56:59 +00:00
Kris Nuttycombe 24b6d50d77 Apply suggestions from code review
Co-authored-by: Jack Grigg <thestr4d@gmail.com>
2024-07-17 07:51:58 -06:00
Daira-Emma Hopwood 27ca6e44d6 Remove unneeded `impl SealedChangeLevelKey for EphemeralIvk`.
Signed-off-by: Daira-Emma Hopwood <daira@jacaranda.org>
2024-07-04 20:13:35 +01:00
Daira-Emma Hopwood 6bc22f411e Documentation fixes and improvements.
Signed-off-by: Daira-Emma Hopwood <daira@jacaranda.org>
2024-07-04 20:13:35 +01:00
Daira-Emma Hopwood 01ff201ffb Minor changes responding to review comments.
Signed-off-by: Daira-Emma Hopwood <daira@jacaranda.org>
2024-07-04 05:24:32 +01:00
hattizai 2244e0ff77 remove duplicate words 2024-07-03 11:01:40 +08:00