Skip to content

feat(ml-dsa): Implement verifying_key method for SigningKey #1008

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

romen
Copy link

@romen romen commented Jun 30, 2025

Introduce a utility method to derive a VerifyingKey from a SigningKey, even when the original seed or precomputed public key is unavailable. This aids in scenarios where private keys are imported from external sources lacking associated public key data.

Introduce a utility method to derive a VerifyingKey from a SigningKey,
even when the original seed or precomputed public key is unavailable.
This aids in scenarios where private keys are imported from external
sources lacking associated public key data.

References:
- https://github.com/RustCrypto/signatures/blob/6cc40e5c10b04dae44d91500d5a1afc4a3ff2b49/ml-dsa/src/lib.rs#L856

Co-authored-by: Nicola Tuveri <nic.tuv@gmail.com>
Signed-off-by: Francesco Rollo <eferollo@gmail.com>
Change-Id: I6a6a6964ee2d466e43dc65bf07cfb6d5b4bfa6c4
@tarcieri
Copy link
Member

tarcieri commented Jul 2, 2025

It would be good to add an impl of the signature::Keypair trait: https://docs.rs/signature/3.0.0-rc.1/signature/trait.Keypair.html

You can keep the inherent method too so it still works with the trait out-of-scope

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.

3 participants