Zebra/zebra-chain/src/sapling
teor c453fbf6f6
Add final sapling root test vectors (#2243)
* Add sapling final root test vectors

Also tidy some formatting and imports

* Doc: final sapling roots can be duplicated

* Reverse the byte order of final sapling root test vectors

This makes the test vectors match the byte order in the block header,
rather than the zcashd RPC responses.

* Ignore pre-sapling block header commitments

Previously, Zebra expected this reserved field to be all zeroes,
but some mainnet and testnet blocks had other values.

* Test structural and semantic validation of the block commitment field

History roots are excluded from these tests, because they require
contextual validation.
2021-06-04 10:31:47 -03:00
..
commitment Add sapling prf_ock and generate_trapdoor 2021-04-30 00:48:23 -04:00
keys Call `zebra_test::init` where needed. (#1227) 2020-11-10 10:29:25 +10:00
note Revert making sapling::note::Nullifier inner value private 2021-04-30 00:48:23 -04:00
tests Fix up some doc links (#2180) 2021-05-21 12:06:31 -03:00
address.rs Use new bech32 methods that expect a Variant enum variant 2021-02-21 20:51:43 -05:00
arbitrary.rs Redesign Transaction V5 serialization, impl trusted vector security, nullifier utility functions (#1996) 2021-04-16 08:19:28 +10:00
commitment.rs Standardise clippy lints and require docs (#2238) 2021-06-04 08:48:40 +10:00
keys.rs Fix clippy::cmp_owned for (sapling, orchard)::keys with `ConstantTimeEq` (#2184) 2021-05-22 09:40:49 -03:00
note.rs Replace smart quotes with ascii quotes 2021-03-15 03:18:10 -04:00
output.rs Standardise clippy lints and require docs (#2238) 2021-06-04 08:48:40 +10:00
shielded_data.rs Move the check in `transaction::check::sapling_balances_match` to `V4` deserialization (#2234) 2021-06-04 08:53:00 +10:00
spend.rs Redesign Transaction V5 serialization, impl trusted vector security, nullifier utility functions (#1996) 2021-04-16 08:19:28 +10:00
tests.rs Move the preallocate tests into their own files (#1977) 2021-04-07 12:32:27 +10:00
tree.rs Add final sapling root test vectors (#2243) 2021-06-04 10:31:47 -03:00