Commit Graph

3523 Commits

Author SHA1 Message Date
Kris Nuttycombe dbf7c85afe
Merge pull request #1237 from zcash/faster-ci
Faster CI
2024-03-08 13:48:16 -07:00
Kris Nuttycombe 8f4de9b235
Merge pull request #1235 from zcash/diverse_accounts
zcash_client_sqlite: Rework accounts to support imported viewing keys
2024-03-08 13:39:08 -07:00
Jack Grigg 46f2815ad3 CI: Only run CI workflow once per PR
The previous configuration would run CI twice for every PR, on:
- The merge commit with the base branch.
- The tip commit of the PR branch.

The latter is only useful for debugging. However, we still want to run
CI directly on the `main` branch, to ensure that any PRs with runtime
conflicts but not code conflicts get tested in combination.
2024-03-08 20:35:04 +00:00
Jack Grigg e7be194912 CI: Use faster Ubuntu and Windows runners for testing 2024-03-08 20:35:04 +00:00
Jack Grigg bfc2278bfe Encode UIVK Sapling component with `sapling-crypto` 2024-03-08 20:22:45 +00:00
Jack Grigg 054b374b5a Add missing feature flag conditional 2024-03-08 19:08:20 +00:00
Jack Grigg f9bf5a173f bugfix: Encode transparent IVK in UIVKs instead of transparent FVK 2024-03-08 19:06:27 +00:00
Andrew Arnott 0c80893ce0 zcash_client_sqlite: Rework accounts to support imported viewing keys 2024-03-08 18:55:18 +00:00
Kris Nuttycombe 63450533dd
Merge pull request #1233 from zcash/test-harness-orchard-fvk
zcash_client_sqlite: Add Orchard support to test harness
2024-03-08 11:37:32 -07:00
Jack Grigg c8d03f69ef Extend `TestState::generate_next_block_spending` with Orchard support 2024-03-08 14:40:25 +00:00
Jack Grigg cc90c4c405 Avoid excessive Orchard dummies in `TestState::generate_next_block_spending` 2024-03-08 13:29:13 +00:00
Jack Grigg 6c6080c99c `impl TestFvk for orchard::keys::FullViewingKey` 2024-03-08 13:28:55 +00:00
Jack Grigg 0a41d65910 Generalise `TestState::generate_*` methods over a `TestFvk` trait 2024-03-08 00:02:28 +00:00
Jack Grigg 291a6f5799 Use correct change address in `TestState::generate_next_block_spending` 2024-03-07 23:26:43 +00:00
Jack Grigg bc0b1aed07 De-duplicate compact Sapling output creation in `TestState` 2024-03-07 23:26:43 +00:00
Kris Nuttycombe d48e45ee71
Merge pull request #1232 from nuttycom/wallet/orchard_account_birthday
zcash_client_backend: Add Orchard frontier to `AccountBirthday`
2024-03-07 15:27:06 -07:00
Jack Grigg f306a0a78a zcash_client_sqlite: Make internal testing functions module-private
This ensures we only access them through `TestState` in future.
2024-03-07 22:14:15 +00:00
Kris Nuttycombe 4532520670 zcash_client_backend: Add Orchard frontier to `AccountBirthday` 2024-03-07 14:45:23 -07:00
Kris Nuttycombe 81303590ab
Merge pull request #1226 from zcash/tex-addrs
zcash_address 0.3.2: ZIP 320 TEX address support
2024-03-06 08:40:13 -07:00
Jack Grigg d539f04f2e zcash_address 0.3.2 2024-03-06 15:07:51 +00:00
Jack Grigg d0673c9bc3 zcash_protocol 0.1.0 2024-03-06 15:07:11 +00:00
Kris Nuttycombe cef9e7641d `zcash_address`: Add support for ZIP 320, TEX addresses. 2024-03-06 14:59:16 +00:00
str4d 16e3d1bf07
Merge pull request #1142 from nuttycom/crate_zcash_protocol
Factor out protocol constants and value types into a `zcash_protocol` crate.
2024-03-06 14:39:11 +00:00
Kris Nuttycombe 376db4684b Fix incorrect zip321 amount parsing. 2024-03-05 21:50:25 -07:00
Kris Nuttycombe 6b4942f8eb Add failing test for incorrect zip321 amount parsing. 2024-03-05 21:48:05 -07:00
Kris Nuttycombe eaabc0f514 Apply suggestions from code review
Co-authored-by: Daira-Emma Hopwood <daira@jacaranda.org>
2024-03-05 20:03:46 -07:00
Kris Nuttycombe 8955cfc559 Add missing CHANGELOG entries. 2024-03-05 14:37:26 -07:00
Kris Nuttycombe 5675a76f0d zcash_protocol: Use `BalanceError` instead of `()` for monetary range violations. 2024-03-05 13:59:26 -07:00
Kris Nuttycombe 51d4464472 Remove `network_type` calls that are obviated by the blanket impl. 2024-03-05 13:36:15 -07:00
Kris Nuttycombe b8aa5132c2 Apply suggestions from code review
Co-authored-by: str4d <thestr4d@gmail.com>
Co-authored-by: Daira-Emma Hopwood <daira@jacaranda.org>
2024-03-05 13:36:15 -07:00
Kris Nuttycombe 04fdac7931 zcash_primitives: Move the `memo` module to the `zcash_protocol` crate. 2024-03-05 13:36:15 -07:00
Kris Nuttycombe a823ed776f Expose address generation errors when constructing default addresses 2024-03-05 13:36:15 -07:00
Kris Nuttycombe 4b18426fcd zcash_address: Use `zcash_protocol::consensus::NetworkType`
This inverts the dependency relationship between `zcash_protocol` and
`zcash_address`, permitting the network constants (primarily the HRPs)
defined in `zcash_protocol` to be used directly in `zcash_address`
instead of being duplicated.
2024-03-05 13:36:15 -07:00
Kris Nuttycombe 64454100c5 zcash_client_backend: Move the `ShieldedProtocol` and `PoolType` types to `zcash_protocol` 2024-03-05 09:46:03 -07:00
Kris Nuttycombe a35ccfc10b Fix broken intra-doc links after `zcash_protocol` crate extraction. 2024-03-05 09:45:24 -07:00
Kris Nuttycombe 85d1ca251a zcash_primitives: Move the `local-consensus` module to the `zcash_protocol` crate. 2024-03-05 09:45:24 -07:00
Kris Nuttycombe eb3c7b479e zcash_protocol: Modify `Zatoshis` to directly wrap a u64 2024-03-05 09:45:24 -07:00
Kris Nuttycombe 7188482225 zcash_protocol: Rename value amounts to `Zatoshis` and `ZatBalance` 2024-03-05 09:45:24 -07:00
Kris Nuttycombe 5e4d9abbce Move `Amount` and `NonNegativeAmount` types to the `zcash_protocol` crate. 2024-03-05 09:45:24 -07:00
Kris Nuttycombe bacfe3cb9d Move `zcash_primitives::{consensus, constants}` to the `zcash_protocol` crate 2024-03-05 09:45:24 -07:00
Kris Nuttycombe 66c6bba84e Add stub for a `zcash_protocol` crate. 2024-03-05 09:45:24 -07:00
str4d 0c12f31da5
Merge pull request #1224 from nuttycom/release/zcash_keys-0.1.1
Release zcash_keys version 0.1.1
2024-03-04 23:40:26 +00:00
Kris Nuttycombe e90d5aaaf0 Release zcash_keys version 0.1.1 2024-03-04 15:54:55 -07:00
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