therealyingtong
07a8e95931
Correct ROOT_OF_UNITY.
2021-10-12 15:36:43 +02:00
therealyingtong
35fbc5d7b2
orchard_vesta.py: Undo renaming of p and q.
2021-10-12 15:21:15 +02:00
Daira Hopwood
69a2dbb691
Move COPYING to COPYING.md so that it will be rendered correctly by GitHub.
...
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2021-10-12 14:12:11 +01:00
ying tong
795d436ad2
Merge pull request #53 from daira/dual-license
...
Ensure that GitHub's "View license" link points to complete license information
2021-10-12 15:09:39 +02:00
str4d
d1f5723d8b
Merge pull request #54 from zcash-hackworks/nu5-testnet-update
...
Updates for new NU5 testnet consensus rules
2021-09-29 10:47:45 +13:00
Jack Grigg
dd8fdb4eaa
Updates for new NU5 testnet consensus rules
...
The ZIP 244 test vectors are altered as a result of changing the
consensus branch ID.
2021-09-28 22:34:42 +01:00
str4d
61d2ae2425
Merge pull request #49 from daira/large-uas
...
Updates for large UAs/UVKs
2021-09-23 11:19:40 +12:00
Daira Hopwood
230876e20e
Ensure that GitHub's "View license" link points to complete license information.
...
refs https://github.com/zcash/librustzcash/issues/443
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2021-09-17 23:16:26 +01:00
Daira Hopwood
3838e2514d
Apply suggestion for the type of jumbled_hash.
...
Co-authored-by: str4d <thestr4d@gmail.com>
2021-09-17 20:40:48 +01:00
Daira Hopwood
bc6bc8a375
zc_utils.py: optionally enforce the MAX_SIZE limit (enforced by default).
...
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2021-09-17 20:39:53 +01:00
str4d
3e0835b140
Merge pull request #52 from zcash-hackworks/merkle-path
...
Merkle path test vectors for a depth-4 tree
2021-09-17 01:16:21 +12: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
f15c51c680
zc_utils.py: restore 2^64 - 1 test vector.
...
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2021-09-15 17:59:52 +01:00
Daira Hopwood
cbaca139a7
Split F4Jumble hashed test vectors into another file (`f4jumble_long.py`).
...
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2021-09-15 17:59:52 +01:00
Jack Grigg
33a95555dc
Use list comprehension to initialize paths
...
`[[]] * length` creates an array of the correct length, but where every
entry is an alias to the same inner array. Pushing to any of the arrays
was behaving as if we were pushing to all of them, instead of updating
independent paths.
2021-09-13 22:36:44 +01:00
therealyingtong
9e1563af0d
Merkle path test vectors for a depth-4 tree
...
Co-authored-by: Jack Grigg <jack@electriccoin.co>
2021-09-13 22:36:32 +01:00
str4d
05a7a973d5
Merge pull request #42 from dannywillems/add-poetry
...
[Suggestion/Discussion] Support poetry
2021-09-13 15:58:24 +01:00
str4d
e06eb19135
Fill out poetry config
2021-09-13 15:57:58 +01:00
Daira Hopwood
bdf4c9ff9b
f4jumble: Use BLAKE2b hashes for the long test vectors.
...
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2021-08-31 20:59:19 +01:00
therealyingtong
4cbfddd566
orchard_vesta.py: Add constants for Vesta curve.
2021-08-31 09:51:17 +08:00
Daira Hopwood
fa1bd3773a
zc_utils: Enforce canonicity in parse_compact_size.
...
(It's not strictly needed for generating test vectors, but just in case this code gets reused.)
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2021-08-30 23:50:53 +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
Daira Hopwood
71e2a355c4
f4jumble: updates for large UAs/UVKs.
...
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2021-08-30 19:16:52 +01:00
Daira Hopwood
87e0a6b57c
zc_utils: Add support for parsing a compactSize.
...
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2021-08-30 19:14:55 +01:00
Daira Hopwood
a3fd15bc20
Merge pull request #46 from zcash-hackworks/rename-unified-addrs
...
Rename unified_addrs.py to unified_address.py
2021-08-08 05:01:18 +01:00
str4d
c00b8f2472
Merge pull request #45 from daira/poseidon-rounds-update
...
Update Poseidon instantiation from 58 to 56 partial rounds.
2021-08-05 14:24:20 +01:00
ying tong
b85498259b
Rename unified_addrs.py to unified_address.py
2021-08-05 16:26:30 +08:00
Daira Hopwood
80ea1ef46f
Update Poseidon instantiation from 58 to 56 partial rounds.
...
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2021-08-04 12:59:58 +01:00
Daira Hopwood
ae90208ebb
Merge pull request #44 from zcash-hackworks/43-ua-hrp-padding
...
Include HRP inside Unified Address padding bytes
2021-07-30 20:22:32 +01:00
Jack Grigg
92164f5b5f
Include HRP inside Unified Address padding bytes
...
Closes #43 .
2021-07-30 14:59:09 +01:00
Danny Willems
7721bae4dd
Support poetry
2021-07-15 17:42:50 +02:00
str4d
39f44c3964
Merge pull request #40 from dconnolly/requirements.txt
...
Add a requirements.txt pip file compatible with Python 3
2021-06-29 13:32:01 +01:00
str4d
de3e09de1a
Merge pull request #37 from zcash-hackworks/orchard-empty-roots
...
Add Orchard empty root test vectors
2021-06-29 13:24:22 +01:00
Deirdre Connolly
1a60941a5d
Add a requirements.txt pip file compatible with Python 3
2021-06-24 21:37:13 -04:00
str4d
ec5fe3abef
Merge pull request #38 from zcash-hackworks/unified-addresses
...
Add test vectors for unified address encodings.
2021-06-18 20:02:02 +01:00
str4d
2c97e9a99a
Distinguish between P2PKH and P2SH in UA test vectors
2021-06-18 20:00:38 +01:00
Kris Nuttycombe
0392dd089c
Fix nondeterministic generation of UA test vectors.
...
Co-Authored By: Jack Grigg
2021-06-18 08:25:09 -06:00
Kris Nuttycombe
854a2ddd87
Allow unrecognized receivers.
2021-06-14 10:54:59 -06:00
Kris Nuttycombe
503a57bcbb
Add test vectors for unified address encodings.
...
This copies in the reference implementation of bech32m,
so that we can remove the 90 character length limitation.
2021-06-12 17:09:21 -06:00
Jack Grigg
f59d31132c
Add Orchard empty root test vectors
2021-06-10 23:57:45 +01:00
str4d
0b97f47e7c
Merge pull request #35 from zcash-hackworks/fix-orchard-note-enc-output
...
Fix output for Orchard note encryption test vectors
2021-06-10 19:44:27 +01:00
Jack Grigg
3179b97362
Fix output for Orchard note encryption test vectors
...
The test vectors were being generated correctly, but the output was
still Sapling-specific (rather than including Orchard components).
2021-06-10 19:26:38 +01:00
str4d
23f3d09f03
Merge pull request #34 from zcash-hackworks/33-zip-244-auth-digest
...
Add ZIP 244 auth digest test vectors
2021-06-08 19:07:08 +01:00
Jack Grigg
95b3a130df
Add ZIP 244 auth digest test vectors
2021-06-08 17:46:45 +01:00
str4d
cd50b88703
Merge pull request #20 from zcash-hackworks/tx-v5
...
Test vectors for ZIP 225 and ZIP 244
2021-06-04 18:13:27 +01:00
str4d
351f6cfc5f
Merge pull request #30 from zcash-hackworks/orchard-notes
...
Orchard note encryption
2021-05-30 21:40:49 +01:00
str4d
62a176014a
orchard_note_encryption: Use ephemeral_key local
2021-05-30 21:40:42 +01:00
str4d
41925bb669
Merge pull request #32 from zcash-hackworks/orchard-key-components-fix
...
Fix Orchard key components test vectors
2021-05-30 21:37:47 +01:00