Skip to content

Merge branch 'master' into zsa1#26

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

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

Conversation

@ConstanceBeguier
Copy link
Copy Markdown

@ConstanceBeguier ConstanceBeguier commented Apr 9, 2025

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 20 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
Copy link
Copy Markdown

@PaulLaux PaulLaux left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good, added coments for better compatibility with the final orchard files.

Comment thread test-vectors/rust/orchard_zsa_asset_base.rs
Comment thread regenerate.sh
PaulLaux added a commit to QED-it/orchard that referenced this pull request May 1, 2025
Merge zcash/orchard (commit  fcb14de) into zsa1  with following modifications
- Update tests comparing orchard digest against a fixed value (the default memo value has been updated)
- Import the last version of generated test_vectors files (see QED-it/zcash-test-vectors#26)
- Fix clippy errors
- Expose (Extracted)NoteCommitment in public API
@ConstanceBeguier ConstanceBeguier merged commit 5374a38 into zsa1 May 5, 2025
3 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