Skip to content
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

AVM: Optimizations and Extensions of Bytes math #6270

Draft
wants to merge 12 commits into
base: master
Choose a base branch
from

Conversation

jannotti
Copy link
Contributor

@jannotti jannotti commented Mar 10, 2025

This PR contains one new opcode bmodexp (thanks to @mangoplane) and several optimizations to existing "bytes math" opcodes, allowing lower costs, and use on larger inputs.

Together, these changes enable new use cases, such as RSA implementations in the AVM.

Remaining work:

  • Improved cost function for bmodexp, I'm reluctant to use the proposed cost function, since it relies on floating point math.
  • Specs updates to describe the larger inputs now allowed for many bytes math opcodes.

Summary

Test Plan

@jannotti jannotti self-assigned this Mar 10, 2025
@jannotti jannotti mentioned this pull request Mar 10, 2025
@jannotti jannotti mentioned this pull request Mar 10, 2025
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants