I want to implement RSA in solidity, but for large values, it gives back an overflow error and it does not work correctly. How do I fix it?
Asked
Active
Viewed 19 times
0
-
Solidity only supports 256 bits arithmetic. To support RSA it will require implementing your own arithmetic operations for larger numbers. Using the bigModExp precompile could be helpful https://ethereum.stackexchange.com/a/71590. – Ismael Jun 04 '23 at 04:27