Commit Graph

316 Commits

Author SHA1 Message Date
Kris Nuttycombe 736bfd555b Move-only: group account retrieval methods together. 2024-12-30 15:14:49 -07:00
Kris Nuttycombe 5d7a1857ee zcash_protocol: Add unified address/fvk/ivk HRPs retrieval methods to `NetworkConstants` trait. 2024-12-30 15:11:42 -07:00
Kris Nuttycombe 4bdf39cb8f Reintroduce public reexports as deprecated replacement modules & types.
Due to limitations described in
https://github.com/rust-lang/rust/issues/30827, we can't just deprecate
the `pub use` stanzas; instead, we have to replace reexports with
new (deprecated) modules and public types which then internally reexport
the module internals or alias the reexported types, respectively.
2024-12-30 10:37:17 -07:00
Kris Nuttycombe f6c05345f4 Remove internal use of reexports of types have been moved to other crates.
This commit temporarily removes the reexported types to simplify the
removal process; the reexports will be reintroduced with deprecation
annotations in the subsequent commit.
2024-12-20 10:35:10 -07:00
Kris Nuttycombe fad7f38b9a Migrate to `nonempty 0.11` 2024-12-17 09:05:11 -07:00
Kris Nuttycombe a5bfc5e36d Release zcash_protocol version 0.4.3 2024-12-16 20:35:05 -07:00
Jack Grigg 7bff034c59 zcash_transparent: Fix its dependencies to work with no-std 2024-12-16 11:16:01 +00:00
Jack Grigg e4915f99c4 zcash_transparent: Refactor code so it compiles in its new crate 2024-12-15 13:25:43 -07:00
Jack Grigg fb163a3d1d zcash_address 0.6.2 2024-12-13 20:56:40 +00:00
Jack Grigg d660a77174 f4jumble 0.1.1 2024-12-13 20:54:30 +00:00
Jack Grigg 412ff5bba9 f4jumble: Add `alloc` feature flag 2024-12-13 20:53:17 +00:00
Jack Grigg 61cf34a708 zcash_address 0.6.1 2024-12-13 20:22:50 +00:00
Jack Grigg cf05139913 Migrate to `bech32 0.11`
Co-authored-by: Kris Nuttycombe <kris@nutty.land>
2024-12-13 20:22:50 +00:00
Jack Grigg b61652e6fe zcash_address: Remove serde implementation for `ZcashAddress`
We only needed it for `zcash_client_backend` to encode recipient
addresses inside proprietary fields of PCZTs, but now that we are
explicitly encoding them as strings, it is not necessary.

Co-authored-by: Kris Nuttycombe <kris@nutty.land>
2024-12-13 20:22:50 +00:00
Jack Grigg 2defe78830 zcash_address: Only require `alloc` instead of `std`
Co-authored-by: Kris Nuttycombe <kris@nutty.land>
2024-12-13 20:22:50 +00:00
Jack Grigg 4d301c33ae zcash_encoding 0.2.2 2024-12-13 16:43:39 +00:00
Jack Grigg f6fe568289 zcash_encoding: Only require `alloc` instead of `std` 2024-12-13 16:43:25 +00:00
Jack Grigg b04cf09fcb zcash_protocol 0.4.2 2024-12-13 15:38:59 +00:00
Jack Grigg 97aab07cc7 zcash_protocol: Only require `alloc` instead of `std` 2024-12-13 15:02:56 +00:00
Kris Nuttycombe 7072adb605 zcash_address: Add `serde` implementation for `ZcashAddress`
This uses the existing String encoding to avoid defining a new
serialization format. It is necessary for `zcash_client_backend` to
encode recipient addresses inside PCZTs to enable correct extraction and
and storage in the wallet backend.
2024-12-09 10:11:19 -07:00
Kris Nuttycombe a1511cbb68 Release zcash_protocol version 0.4.1
This reverts the MSRV update for the `zcash_protocol` crate; no
MSRV-breaking changes have been made, and retaining the 1.70 MSRV allows
us to make this a semver-compatible release.
2024-11-14 11:23:58 -07:00
Kris Nuttycombe 00cafa3b9e Apply suggestions from code review & Clippy fixes.
Co-authored by: Jack Grig <jack@electriccoin.co>
Co-authored-by: Daira-Emma Hopwood <daira@jacaranda.org>
2024-11-13 14:19:15 -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 5bf0f16dd7 zcash_client_backend: Add `fees::zip317::MultiOutputChangeStrategy`. 2024-10-23 11:23:56 -06: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
Kris Nuttycombe 0eec7487d8 Release `zip321` version 0.2.0 2024-10-04 12:36:53 -06:00
Jack Grigg 6ee2ddfc97 zcash_address 0.6.0 2024-10-02 21:12:45 +00:00
Jack Grigg e5185e2896 zcash_protocol 0.4.0 2024-10-02 20:11:31 +00:00
Jack Grigg 329b5e32dd
Merge pull request #1548 from zcash/nu6-mainnet-height
zcash_protocol: Set the public mainnet activation height for NU6
2024-10-02 21:05:42 +01:00
Kris Nuttycombe 4647d88a05 Update to pre-release of `shardtree 0.5` changes. 2024-09-27 11:41:26 -06:00
Jack Grigg 089905aefb zcash_protocol: Set the public mainnet activation height for NU6 2024-09-24 16:23:01 +00:00
Jack Grigg eaf330d950 Fix `cargo test -p zcash_address`
Closes zcash/librustzcash#1538.
2024-09-23 16:13:13 +00:00
Jack Grigg f7228a5c01
Merge pull request #1528 from nuttycom/fix/zip321-test-dependencies
zip321: Add missing `test-dependencies` feature configuration.
2024-09-16 21:12:57 +01:00
Kris Nuttycombe f2654f5bf1 zcash_client_backend: Fix broken intra-doc links and other doc warnings. 2024-09-06 13:33:23 -06:00
Kris Nuttycombe 2c3bb22fb9 zip321: Add missing `test-dependencies` feature configuration. 2024-09-04 08:00:55 -06:00
Kris Nuttycombe 1b3433e0dd Add correct `BlockHeight` subtraction & remove panics.
In contrast to the implementation of `Sub<BlockHeight> for BlockHeight`
that was removed in version `0.3.0`, a saturating subtraction for block
heights having a return type of `u32` makes sense for `BlockHeight`.
Subtracting one block height from another yields the delta between them.

Other block height addition and subtraction operations have been made
saturating, removing panics and the possibility of overflow.
2024-08-27 16:44:00 -06:00
Kris Nuttycombe 5dcda49810 release zcash_address version 0.5.0 2024-08-26 16:11:29 -06:00
Kris Nuttycombe a30037be81 Release zcash_protocol version 0.3.0 2024-08-26 15:59:35 -06:00
Kris Nuttycombe b91f3c1790
Merge pull request #1515 from zcash/nu6_testnet_activation
zcash_protocol: Set the public testnet activation height for NU6
2024-08-26 15:56:45 -06:00
Kris Nuttycombe 529e3be571 zcash_protocol: Set the public testnet activation height for NU6 2024-08-26 13:50:34 -06:00
Kris Nuttycombe 8259825d64 zcash_protocol: Remove impl {Add, Sub} for BlockHeight
These operations are unused, and block heights form a vector space,
not a monoid.
2024-08-25 10:02:33 -06:00
Kris Nuttycombe 827192ebcb release zip321 version 0.1.0 2024-08-19 19:37:46 -06:00
Kris Nuttycombe 0e803a73c9 release zcash_address version 0.4.0 2024-08-19 16:24:03 -06:00
Kris Nuttycombe bd4542b3cf release zcash_encoding version 0.2.1 2024-08-19 15:08:37 -06:00
Kris Nuttycombe d3ab6fb1ae zcash_protocol release version 0.2.0 2024-08-19 14:36:11 -06:00
Alfredo Garcia 5a4a3e06dc
Make `nu6` rust feature stable (#1454) 2024-08-06 00:01:03 +01:00
hattizai 2244e0ff77 remove duplicate words 2024-07-03 11:01:40 +08:00
Daira-Emma Hopwood 6f4a3b107e Address a review comment concerning `Vector::serialized_size`.
Signed-off-by: Daira-Emma Hopwood <daira@jacaranda.org>
2024-06-18 21:06:42 +01:00
Daira-Emma Hopwood 9881861228 Add `zcash_encoding::{CompactSize, Vector}::serialized_size` and
`zcash_primitives::legacy::Script::serialized_size`. Use the latter in
`zcash_primitives::transaction::fees::transparent::OutputView::serialized_size`.

Signed-off-by: Daira-Emma Hopwood <daira@jacaranda.org>
2024-06-18 21:06:39 +01:00