Commit Graph

7 Commits

Author SHA1 Message Date
Jack Grigg 2093b309f4 Refactor test vectors into package
Scripts that were previously run via:
    poetry run python ./SCRIPT_NAME.py

and have been moved, can now be run as:
    poetry run SCRIPT_NAME

Some top-level scripts remain, where they only generate test vectors and
do not contain any Zcash logic. These now use the `zcash_test_vectors`
package, and can't be run directly unless this package is made available
in `PYTHONPATH`.
2022-01-13 02:46:20 +00:00
Kris Nuttycombe 3e77a9a158 Add test vectors for unified viewing keys.
Fixes #47
Co-authored-by: str4d <jack@electriccoin.co>
2021-12-10 10:06:51 -07:00
Daira Hopwood efee9dcb03 chmod +x for scripts and make the shebang/preamble consistent.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2021-09-15 18:03:47 +01:00
Daira Hopwood ce388d3783 Further simplify parsing.
This also ensures that the encoding ends with a receiver value, not a type or length.

Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2021-08-30 19:49:45 +01:00
Daira Hopwood 810c8bf275 Simplify parse_compact_size usage.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2021-08-30 19:42:51 +01:00
Daira Hopwood 29cae03b12 unified_address: updates for large UAs/UVKs.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2021-08-30 19:25:20 +01:00
ying tong b85498259b
Rename unified_addrs.py to unified_address.py 2021-08-05 16:26:30 +08:00