Skip to content

Required crypto primitives tests - #17

Open
Fingolfin69 wants to merge 6 commits into
mainfrom
bn-crypto-primitives-test
Open

Required crypto primitives tests#17
Fingolfin69 wants to merge 6 commits into
mainfrom
bn-crypto-primitives-test

Conversation

@Fingolfin69

@Fingolfin69 Fingolfin69 commented Mar 25, 2026

Copy link
Copy Markdown
Collaborator

THIS PR SHOULD NOT BE MERGED, IT CONTAINS CRYPTO PRIMITIVES TEST EVIDENCE

Checklist

Pallas/Vesta/Jujub group/field arithmetic tests

  • On device tests (can be run on device and in speculous): src/ec.rs
  • On host reference test, same as on device: ec-ref-test

ZIP32 Orchard derivation

  1. Set test seed on device (see host-orchard-derive-test/tests/orchrad_derive.rs)
  2. Dumped derived Orchard child keys sk cc from device
  3. On host: generated reference sk and cc from same test seed.
  4. Compare reference and derived sk and cc - it matches ✔️

In order to run host tests these commands can be used:

cd host-orchard-derive-test; cargo test
cd ec-ref-test; cargo test

@Fingolfin69
Fingolfin69 requested a review from may01 March 25, 2026 09:28
@Fingolfin69 Fingolfin69 self-assigned this Mar 25, 2026
@Fingolfin69 Fingolfin69 changed the title Bn crypto primitives test Required crypto primitives tests Mar 25, 2026
Comment thread src/ffi.rs
Comment thread src/ec.rs
Comment thread src/main.rs
Comment thread src/zip32.rs
Comment thread Cargo.toml
Comment thread src/ec.rs
Fingolfin69 pushed a commit that referenced this pull request Jun 29, 2026
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.

2 participants