zebra/zebra-chain/src/sapling
Marek 7c6a0f8388
change(scan): Refactor scanning tests (#8047)
* Derive & impl helper traits from `std`

* Create `compact_to_v4` fn

* Create `fake_block` fn

* Refactor existing tests to use the new functions

* Cosmetics

* Refactor docs

* Put `Default` behind `cfg_attr(test)`

Rationale
---------

We avoid implementing `Default` on consensus-critical types because it's
easy to miss an incorrect use in a review. It's easy to hide a
`default()` in a call like `unwrap_or_default()` or even more subtle
methods.

---------

Co-authored-by: teor <teor@riseup.net>
2023-12-06 01:57:01 +00:00
..
commitment
keys cleanup(cryptography): Remove unused shielded key and address code (#5476) 2022-10-29 20:59:55 +00:00
note change(scan): Refactor scanning tests (#8047) 2023-12-06 01:57:01 +00:00
tests
tree build(deps): bump ECC dependencies (#7784) 2023-10-20 02:12:02 +00:00
arbitrary.rs cleanup(clippy): Remove unnecessary `try_into()` with `cargo clippy --fix` (#7940) 2023-11-14 20:31:49 +00:00
commitment.rs change(scan): Refactor scanning tests (#8047) 2023-12-06 01:57:01 +00:00
keys.rs fix(errors): Handle randomness generation and invalid random values as errors in cryptographic code (#6385) 2023-04-20 17:49:21 +00:00
note.rs
output.rs
shielded_data.rs
spend.rs
tests.rs
tree.rs change(state): Make the types for finalized blocks consistent (#7923) 2023-11-08 22:06:16 +00:00