-
Notifications
You must be signed in to change notification settings - Fork 253
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branches 'aar/diverse_accounts' and 'origin/cra…
…te_zcash_protocol' into tmp
- Loading branch information
Showing
60 changed files
with
1,591 additions
and
1,176 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1 @@ | ||
pub mod unified; | ||
|
||
pub(crate) mod sapling; | ||
pub(crate) mod sprout; | ||
|
||
pub(crate) mod p2pkh; | ||
pub(crate) mod p2sh; |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
# 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] | ||
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` | ||
- `zcash_protocol::value` replaces `zcash_primitives::transaction::components::amount` | ||
- `zcash_protocol::consensus`: | ||
- `NetworkConstants` has been extracted from the `Parameters` trait. Relative to the | ||
state prior to the extraction, the bech32 prefixes now return `&'static str` instead | ||
of `&str`. | ||
- `NetworkType` | ||
- `Parameters::b58_sprout_address_prefix` | ||
- `zcash_protocol::consensus`: | ||
- `impl Hash for LocalNetwork` | ||
- `zcash_protocol::constants::{mainnet, testnet}::B58_SPROUT_ADDRESS_PREFIX` | ||
- Added in `zcash_protocol::value`: | ||
- `Zatoshis` | ||
- `ZatBalance` | ||
- `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` | ||
- `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.) | ||
|
||
### Removed | ||
- 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` | ||
- `impl AddAssign for NonNegativeAmount` | ||
- `impl SubAssign for NonNegativeAmount` |
Oops, something went wrong.