Skip to content

Conversation

prestoalvarez
Copy link

This PR refactors the NewKeyForDirectICAP function to use an iterative approach instead of recursion for key generation retries.

Changes:

  • Replaced recursive call return NewKeyForDirectICAP(rand) with an infinite for loop
  • Moved key generation logic inside the loop
  • Early return when valid key is found (strings.HasPrefix(key.Address.Hex(), "0x00"))

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.

1 participant