Skip to content

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