zcash-test-vectors/README.md

35 lines
1.2 KiB
Markdown
Raw Permalink Normal View History

2019-07-03 09:37:23 -07:00
# Zcash Python test vectors
2018-05-17 12:20:52 -07:00
Code to generate test vectors for various parts of Zcash.
2018-05-17 18:18:01 -07:00
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`](https://python-poetry.org/).
- `poetry install`
- `poetry run SCRIPT_NAME [-t json|rust|zcash]`
- `SCRIPT_NAME` is one of the scripts listed in `pyproject.toml`.
2020-06-30 16:09:20 -07:00
2019-07-03 09:37:23 -07:00
## License
Licensed under either of
* Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0)
* MIT license ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT)
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.