2024-01-27 08:22:01 -08:00
|
|
|
# Changelog
|
|
|
|
All notable changes to this library will be documented in this file.
|
|
|
|
|
|
|
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
|
|
and this library adheres to Rust's notion of
|
|
|
|
[Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
|
|
|
|
|
|
## [Unreleased]
|
2024-03-06 07:07:11 -08:00
|
|
|
|
2024-03-07 16:10:21 -08:00
|
|
|
### Added
|
|
|
|
- `zcash_protocol::memo`:
|
|
|
|
- `impl TryFrom<&MemoBytes> for Memo`
|
|
|
|
|
2024-03-06 07:07:11 -08:00
|
|
|
## [0.1.0] - 2024-03-06
|
2024-01-27 10:46:06 -08:00
|
|
|
The entries below are relative to the `zcash_primitives` crate as of the tag
|
|
|
|
`zcash_primitives-0.14.0`.
|
|
|
|
|
|
|
|
### Added
|
|
|
|
- The following modules have been extracted from `zcash_primitives` and
|
|
|
|
moved to this crate:
|
|
|
|
- `consensus`
|
|
|
|
- `constants`
|
2024-01-27 10:53:44 -08:00
|
|
|
- `zcash_protocol::value` replaces `zcash_primitives::transaction::components::amount`
|
2024-02-02 16:28:14 -08:00
|
|
|
- `zcash_protocol::consensus`:
|
2024-03-05 09:17:32 -08:00
|
|
|
- `NetworkConstants` has been extracted from the `Parameters` trait. Relative to the
|
2024-02-19 09:26:34 -08:00
|
|
|
state prior to the extraction:
|
|
|
|
- The Bech32 prefixes now return `&'static str` instead of `&str`.
|
|
|
|
- Added `NetworkConstants::hrp_tex_address`.
|
2024-02-02 16:28:14 -08:00
|
|
|
- `NetworkType`
|
|
|
|
- `Parameters::b58_sprout_address_prefix`
|
2024-03-05 09:17:32 -08:00
|
|
|
- `zcash_protocol::consensus`:
|
|
|
|
- `impl Hash for LocalNetwork`
|
2024-02-02 16:28:14 -08:00
|
|
|
- `zcash_protocol::constants::{mainnet, testnet}::B58_SPROUT_ADDRESS_PREFIX`
|
2024-01-27 10:46:06 -08:00
|
|
|
- Added in `zcash_protocol::value`:
|
2024-01-27 10:53:44 -08:00
|
|
|
- `Zatoshis`
|
|
|
|
- `ZatBalance`
|
2024-01-27 11:31:07 -08:00
|
|
|
- `MAX_BALANCE` has been added to replace previous instances where
|
|
|
|
`zcash_protocol::value::MAX_MONEY` was used as a signed value.
|
|
|
|
|
|
|
|
### Changed
|
|
|
|
- `zcash_protocol::value::COIN` has been changed from an `i64` to a `u64`
|
|
|
|
- `zcash_protocol::value::MAX_MONEY` has been changed from an `i64` to a `u64`
|
2024-03-05 13:37:26 -08:00
|
|
|
- `zcash_protocol::consensus::Parameters` has been split into two traits, with
|
|
|
|
the newly added `NetworkConstants` trait providing all network constant
|
|
|
|
accessors. Also, the `address_network` method has been replaced with a new
|
|
|
|
`network_type` method that serves the same purpose. A blanket impl of
|
|
|
|
`NetworkConstants` is provided for all types that implement `Parameters`,
|
|
|
|
so call sites for methods that have moved to `NetworkConstants` should
|
|
|
|
remain unchanged (though they may require an additional `use` statement.)
|
2024-01-27 10:46:06 -08:00
|
|
|
|
|
|
|
### Removed
|
2024-01-27 10:53:44 -08:00
|
|
|
- From `zcash_protocol::value`:
|
|
|
|
- `NonNegativeAmount` (use `Zatoshis` instead.)
|
|
|
|
- `Amount` (use `ZatBalance` instead.)
|
|
|
|
- The following conversions have been removed relative to `zcash_primitives-0.14.0`,
|
|
|
|
as `zcash_protocol` does not depend on the `orchard` or `sapling-crypto` crates.
|
|
|
|
- `From<NonNegativeAmount> for orchard::NoteValue>`
|
|
|
|
- `TryFrom<orchard::ValueSum> for Amount`
|
|
|
|
- `From<NonNegativeAmount> for sapling::value::NoteValue>`
|
|
|
|
- `TryFrom<sapling::value::NoteValue> for NonNegativeAmount`
|
2024-03-05 09:17:32 -08:00
|
|
|
- `impl AddAssign for NonNegativeAmount`
|
|
|
|
- `impl SubAssign for NonNegativeAmount`
|