Skip to content

Conversation

0xsimka
Copy link

@0xsimka 0xsimka commented Sep 19, 2025

I noticed that key generation was failing when using a boxed RNG.

Updated all instances of:

Keypair::new(&secp, &mut self.rng)

to:

Keypair::new(&secp, &mut *self.rng)

This ensures self.rng (a Box<dyn RngCore>) is correctly passed as &mut dyn RngCore.
The change fixes the mismatch and allows key creation to work as intended.

Copy link
Collaborator

@mattsse mattsse left a comment

Choose a reason for hiding this comment

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

this currently works as expected

@mattsse mattsse closed this Sep 23, 2025
@github-project-automation github-project-automation bot moved this from Backlog to Done in Reth Tracker Sep 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants