-
Notifications
You must be signed in to change notification settings - Fork 12.3k
Use calldata ECDSA recovery variants to avoid memory copies #6048
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
base: master
Are you sure you want to change the base?
Use calldata ECDSA recovery variants to avoid memory copies #6048
Conversation
|
WalkthroughMultiple cryptographic signer contracts are updated to use Possibly related PRs
Suggested labels
Pre-merge checks and finishing touches✅ Passed checks (2 passed)
✨ Finishing touches🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (3)
🧰 Additional context used🧠 Learnings (1)📚 Learning: 2025-10-03T13:14:57.679ZApplied to files:
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (9)
🔇 Additional comments (5)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Replace ECDSA.tryRecover(hash, signature) with ECDSA.tryRecoverCalldata(hash, signature)
Reason: signatures are received as bytes calldata; using the calldata variant prevents copying to memory, reducing gas without changing behavior.