Commit Graph

15 Commits

Author SHA1 Message Date
Jack Grigg a44f9f6c90
Fix chunk() output when given zero-length data 2018-08-23 14:25:41 +01:00
Jack Grigg 17d146b5a9
Refactor Rust output rendering to support reformatting
Used to convert a -1 for JSON to Option::None in Rust
2018-08-21 20:13:11 +01:00
Jack Grigg a9676cc9b4
Render Vec<u8> data correctly 2018-08-21 19:44:02 +01:00
Jack Grigg 07b7a6e8d8
Don't reverse 32-byte transactions in Zcash output 2018-08-20 12:26:48 +01:00
Daira Hopwood bfcc98b327 Add a '-t json' option that gives JSON output without reversing 32-byte test vectors.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2018-07-25 01:16:22 +01:00
Daira Hopwood 5394ee1a15 Style nit: don't use list comprehensions for side-effecting code.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2018-07-25 01:16:22 +01:00
Daira Hopwood 3dfe532bac Support printing test vectors of Option type (needed for diversifiers).
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2018-07-25 01:16:22 +01:00
Daira Hopwood c8036959ad Add assertions that we are running under Python 3.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2018-07-25 01:16:22 +01:00
Daira Hopwood 3aa38fb3c9 Avoid shadowing a variable name.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2018-07-03 15:04:41 +01:00
Jack Grigg dd66ed8fec
Explicitly make the JSON output Bitcoin-flavoured (32-byte values reversed)
Also renames the 'json' output type to 'zcash' to make it more obvious.
2018-06-13 11:48:17 +12:00
Jack Grigg 145fe37af5
Implement JSON output 2018-06-05 20:36:37 +12:00
Jack Grigg 68263af2b5
Extract sapling_key_components Rust rendering 2018-06-05 17:30:16 +12:00
Jack Grigg d5d7d70a65
Extract sapling_signatures Rust rendering 2018-06-05 17:12:24 +12:00
Jack Grigg 9f4a41dcf3
Extract sapling_generators Rust rendering 2018-06-05 16:46:08 +12:00
Jack Grigg 7e37b8cc24
Move chunk() into tv_output module 2018-06-05 16:10:43 +12:00