Zebra/zebra-consensus/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
..
block Replace smart quotes with ascii quotes 2021-03-15 03:18:10 -04:00
chain Delete duplicate test code for chain verifier 2021-03-04 08:06:31 +10:00
checkpoint Fix some missed Sapling to Canopy checkpoint code changes 2021-03-18 10:13:47 +10:00
parameters Replace smart quotes with ascii quotes 2021-03-15 03:18:10 -04:00
primitives Refactor Sapling data and use it in V4 (#1946) 2021-04-01 07:34:25 +10:00
transaction Refactor Sapling data and use it in V4 (#1946) 2021-04-01 07:34:25 +10:00
block.rs Use interoperable names for common metrics 2021-03-17 09:38:07 +10:00
chain.rs Document the correctness of Poll::Pending wakeups 2021-03-27 08:55:49 -04:00
checkpoint.rs Check proof-of-work in the CheckpointVerifier 2021-03-12 08:55:29 +10:00
config.rs Document that the mandatory checkpoint can change 2021-03-22 22:17:44 -04:00
error.rs Merge pull request #1713 from ZcashFoundation/use-groth16-batch-math 2021-03-24 12:28:25 -04:00
lib.rs Merge pull request #1713 from ZcashFoundation/use-groth16-batch-math 2021-03-24 12:28:25 -04:00
parameters.rs move genesis parameters to zebra-chain (#1151) 2020-10-12 14:08:23 -07:00
primitives.rs Ed25519 async batch verification for JoinSplit signatures (#1952) 2021-03-31 09:08:19 +10:00
script.rs Make the state usage clearer in script::Verifier (#1733) 2021-02-16 05:53:12 +10:00
transaction.rs Refactor Sapling data and use it in V4 (#1946) 2021-04-01 07:34:25 +10:00