Zebra/zebra-state/src
Alfredo Garcia 48a8a7b851
Refactor Sapling data and use it in V4 (#1946)
* start refactoring transaction v4 for transaction v5
- move ShieldedData to sapling
- add AnchorVariant
- rename shielded_data to sapling_shielded data in V4
- move value_balance into ShieldedData
- update prop tests for new structure

* add AnchorVariant to Spend
- make anchor types available from sapling crate
- update serialize

* change shielded_balances_match() arguments
* change variable name anchor to shared_anchor in ShieldedData
* fix empty value balance serialization
* use AnchorV in shielded spends
* Rename anchor to per_spend_anchor

* Use nullifiers function directly in non-finalized state
* Use self.value_balance instead of passing it as an argument

* Add missing fields to ShieldedData PartialEq
* Derive Copy for tag types

* Add doc comments for ShieldedData refactor
* Implement a per-spend anchor compatibility iterator

Co-authored-by: teor <teor@riseup.net>
2021-04-01 07:34:25 +10:00
..
service Refactor Sapling data and use it in V4 (#1946) 2021-04-01 07:34:25 +10:00
config.rs Construct structs with ..default() to avoid a lint 2021-01-19 11:02:20 -05:00
constants.rs Add hints to port conflict and lock file panics (#1535) 2021-01-29 22:36:33 +10:00
error.rs Use error message derives in zebra-state 2020-12-04 10:44:36 +10:00
lib.rs Add hints to port conflict and lock file panics (#1535) 2021-01-29 22:36:33 +10:00
request.rs clippy: fix inconsistent struct ordering 2021-03-22 11:51:54 -04:00
response.rs network: correct data modeling for headers messages 2020-12-02 10:24:31 -08:00
service.rs panic in `NonFinalizedState::commit_block` before Canopy (#1909) 2021-03-17 10:41:28 +10:00
tests.rs Add transaction version 5 stubs (#1824) 2021-03-04 07:56:41 +10:00
util.rs swap best_chain_len and related constants to u32 for consistency (#1257) 2020-11-06 14:00:10 +10:00
utxo.rs state: track UTXO provenance 2020-11-23 22:18:43 -08:00