Skip to content

Zksync modexp #887

Jan 15, 2025 · 2 comments · 3 replies
Discussion options

You must be logged in to vote

Hey, modexp is planned in the future, but it will not be present in the short term. We plan to introduce it somewhere in the middle term, but it is a bit hard to tell you a release date. So yes, using a modexp library is the best option for you.

I dropped the precompile for modexp into Remix and immediately found compiler errors dropping out for variable scoping. After cleaning those up I hit stack too deep errors which may take time to sort out as this is complex code to say the least.

You should probably try out compiling + testing as explained in the repo's README. Remix works with solc compiler, which compiles EVM bytecode, while Era requires zkEVM bytecode, compiled via zksolc comp…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
2 replies
@uF4No
Comment options

@nelsonhp
Comment options

Answer selected by popzxc
Comment options

You must be logged in to vote
1 reply
@popzxc
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
General
Labels
general General question
5 participants