Go to file
Kris Nuttycombe 346740a680 Modify the `regenerate` script to be more user-friendly.
This now takes the generation type or 'all' as the first argument,
and then the generator or 'all' as the second argument. File extensions
are detemined automatically from the generation type.
2024-10-02 16:32:26 +01:00
.github/workflows Modify the `regenerate` script to be more user-friendly. 2024-10-02 16:32:26 +01:00
test-vectors Merge pull request #97 from nuttycom/zip_0320 2024-04-24 13:30:06 -06:00
zcash_test_vectors Add Orchard ZIP 32 test vectors 2024-10-02 16:32:26 +01:00
.gitignore
COPYING.md
LICENSE-APACHE
LICENSE-MIT Update copyright year in LICENSE-MIT. 2022-01-04 19:34:54 +00:00
README.md Move remaining scripts out of the root directory. 2022-02-08 13:53:57 +00:00
orchard_vesta.py
poetry.lock Make it possible to generate testnet test vectors for ZIP 320 addresses. 2024-05-15 22:32:36 -06:00
pyproject.toml Add Orchard ZIP 32 test vectors 2024-10-02 16:32:26 +01:00
regenerate.sh Modify the `regenerate` script to be more user-friendly. 2024-10-02 16:32:26 +01:00

README.md

Zcash Python test vectors

Code to generate test vectors for various parts of Zcash.

The generated test vectors are checked into the repository:

  • test-vectors/json/: JSON format.
  • test-vectors/rust/: Rust format, suitable for copying into a Rust library or application to use from #[cfg(test)] code.
  • test-vectors/zcash/: Bitcoin-flavoured JSON format (where 256-bit values are encoded as byte-reversed hex strings), for use in zcashd unit tests.

To generate the test vectors yourself (for example, to generate a larger set after adjusting:

  • Install poetry.
  • poetry install
  • poetry run SCRIPT_NAME [-t json|rust|zcash]
    • SCRIPT_NAME is one of the scripts listed in pyproject.toml.

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.