Skip to content

Merge branch 'master' into zsa1#30

Merged
ConstanceBeguier merged 22 commits intozsa1from
merge_master_20250408
May 6, 2025
Merged

Merge branch 'master' into zsa1#30
ConstanceBeguier merged 22 commits intozsa1from
merge_master_20250408

Conversation

@ConstanceBeguier
Copy link
Copy Markdown

Main modifications

  • Generate test vectors for ZIP230 adresses
  • Generate test vectors for ZIP32
  • Update regenerate script
  • Update rust output by replacing vectors by slices to support no_std

nuttycom and others added 22 commits May 15, 2024 22:32
Make it possible to generate testnet test vectors for ZIP 320 addresses.
This now takes the generation type or 'all' as the first argument,
and then the generator or 'all' as the second argument. File extensions
are detemined automatically from the generation type.
Add Orchard ZIP 32 test vectors
Test vectors for ZIP 32 arbitrary key derivation
When using them, I forgot that `bytes(range(32))` doesn't generate an
all-zeroes seed of length 32, so I was using the wrong seed with the
test vectors and they were failing. We now embed that seed in the test
vectors, along with the context string (to make it clear that there is
no trailing null byte) and the IKM (which is what clued me into the seed
being wrong).
Improve the ZIP 32 arbitrary key derivation test vectors
Signed-off-by: Daira-Emma Hopwood <daira@jacaranda.org>
Signed-off-by: Daira-Emma Hopwood <daira@jacaranda.org>
…e of

pairs that will be used in the `zip_0032_registered` test vectors. This
should not change any of the generated vectors.

Signed-off-by: Daira-Emma Hopwood <daira@jacaranda.org>
Signed-off-by: Daira-Emma Hopwood <daira@jacaranda.org>
Co-authored-by: Jack Grigg <jack@electriccoin.co>
Co-authored-by: Kris Nuttycombe <kris@nutty.land>
Signed-off-by: Daira-Emma Hopwood <daira@jacaranda.org>
Co-authored-by: Jack Grigg <jack@electriccoin.co>
Co-authored-by: Kris Nuttycombe <kris@nutty.land>
Signed-off-by: Daira-Emma Hopwood <daira@jacaranda.org>
Add test vectors for ZIP 32 registered key derivation
@ConstanceBeguier
Copy link
Copy Markdown
Author

ConstanceBeguier commented May 5, 2025

This is a copy of PR #26 which was merged squashed instead of merge commit.

@ConstanceBeguier ConstanceBeguier requested a review from PaulLaux May 5, 2025 15:08
@ConstanceBeguier ConstanceBeguier merged commit b3744a0 into zsa1 May 6, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants