Go to file
Daira Hopwood 189cadb357 Reduce run times of unified_{address, incoming_viewing_keys, full_viewing_keys}.py by over half
by avoiding duplicated work in deriving levels of the key hierarchy above the account level.

Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2022-02-11 16:29:14 +00:00
.github/workflows
test-vectors Make the test vectors for UAs, UIVKs, and UFVKs match up, and allow unknown items for UAs. 2022-02-11 16:29:14 +00:00
zcash_test_vectors Reduce run times of unified_{address, incoming_viewing_keys, full_viewing_keys}.py by over half 2022-02-11 16:29:14 +00:00
.gitignore
COPYING.md
LICENSE-APACHE
LICENSE-MIT
README.md
poetry.lock
pyproject.toml Add BIP 32 key derivation and test vectors. 2022-02-11 16:29:14 +00:00
regenerate.sh Add BIP 32 key derivation and test vectors. 2022-02-11 16:29:14 +00: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.