Skip to content

Conversation

@pablojhl
Copy link
Contributor

@pablojhl pablojhl commented Mar 19, 2025

This fixes the eddsa tests.

The main issue is that NadaValue::create_eddsa_private_key() works only with modular scalars, while noble/ed25519.util.randomPrivateKey() generates seed that can be greater than the curve order. For now, I have implemented a utility to calculate a valid scalar.

Not sure if it would make sense, but if a user wanted to store this seed in the future we would have to revisit the nilvm implementation.

@pablojhl pablojhl force-pushed the fix/eddsa-signatures branch from 91f0514 to 28dfe3d Compare March 19, 2025 13:12
@pablojhl pablojhl marked this pull request as ready for review March 19, 2025 13:28
@mfontanini mfontanini requested a review from jimouris March 21, 2025 14:00
@pablojhl pablojhl force-pushed the fix/eddsa-signatures branch from 28dfe3d to 4a8ea83 Compare March 25, 2025 08:20
@pablojhl pablojhl merged commit f7a6723 into main Mar 25, 2025
4 checks passed
@pablojhl pablojhl deleted the fix/eddsa-signatures branch March 25, 2025 08:35
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.

4 participants