zebra/zebra-consensus/src
teor f7202bfbc0
Download Zcash Sapling parameters and load them from cached files (#3057)
* Replace Zcash parameters crates with pre-downloaded local parameter files

* Download Zcash parameters using the `zcashd` script in CI and Docker

* Add a zcash_proofs dependency to zebra-consensus

* Download Sapling parameters using zcash_proofs, rather than fetch-params.sh

* Add a new `zebrad download` subcommand

This command isn't required for nomrmal usage.
But it's useful when testing, or launching multiple Zebra instances.

* Use `zebrad download` in CI to pre-download parameters

* Log a helpful hint if downloading fails

* Allow some duplicate dependencies currently hidden by orchard

* Spawn a separate task to download Groth16 parameters

* Run the parameter download with code coverage

This avoids re-compining Zebra with and without coverage.

* Update Cargo.lock after rebase

* Try to pass `download` as an argument to `zebrad` in coverage CI

* Fix copy and paste comment typos

* Add path and download examples, like zcash_proofs

* Download params in CI just like zcash_proofs does

* Delete a redundant build step

* Implement graceful shutdown for zebrad start

* Send coverage summary to /dev/null when getting the params path

* Use the correct parameters path and download commands in CI

* Explain pre-downloads

* Avoid calling params_folder twice

* Rename parameter types and methods for consistency

```sh
fastmod SaplingParams SaplingParameters zebra*
fastmod Groth16Params Groth16Parameters zebra*
fastmod PARAMS GROTH16_PARAMETERS zebra*
fastmod params_folder directory zebra*
```

And a manual variable name tweak.

* rustfmt

* Remove a redundant coverage step

Co-authored-by: Janito Vaqueiro Ferreira Filho <janito.vff@gmail.com>
2021-11-19 23:02:56 +00:00
..
block Check MAX_BLOCK_SIGOPS in the block verifier (#3049) 2021-11-15 20:55:32 +00:00
chain Download Zcash Sapling parameters and load them from cached files (#3057) 2021-11-19 23:02:56 +00:00
checkpoint Fix typos (#3055) 2021-11-12 19:30:22 +00:00
parameters Validate funding stream addresses (#3040) 2021-11-12 15:20:31 -03:00
primitives Download Zcash Sapling parameters and load them from cached files (#3057) 2021-11-19 23:02:56 +00:00
transaction Async Halo2 verifier service (#2645) 2021-11-17 13:26:15 +10:00
block.rs Check MAX_BLOCK_SIGOPS in the block verifier (#3049) 2021-11-15 20:55:32 +00:00
chain.rs Download Zcash Sapling parameters and load them from cached files (#3057) 2021-11-19 23:02:56 +00:00
checkpoint.rs Fix typos (#3055) 2021-11-12 19:30:22 +00:00
config.rs Allow deliberate instances of the clippy::derivable_impls lint (#2788) 2021-09-22 10:43:27 -03:00
error.rs Check MAX_BLOCK_SIGOPS in the block verifier (#3049) 2021-11-15 20:55:32 +00:00
lib.rs Download Zcash Sapling parameters and load them from cached files (#3057) 2021-11-19 23:02:56 +00:00
parameters.rs move genesis parameters to zebra-chain (#1151) 2020-10-12 14:08:23 -07:00
primitives.rs Async Halo2 verifier service (#2645) 2021-11-17 13:26:15 +10:00
script.rs Send looked up UTXOs to the transaction verifier (#2849) 2021-10-12 00:25:20 +00:00
transaction.rs Download Zcash Sapling parameters and load them from cached files (#3057) 2021-11-19 23:02:56 +00:00