I am trying to verify an RSA signature using Ethereum smart contract. I have some doubts regarding my design.
I am using the precompile at address 0X05 to generate
s^e mod n, where s is the signature to be verified, e is the exponent used during key generation. n is from the public Key. I understand that I have to provide s, e and n as uint256.
I will compare the value obtained as output from precompile to compare with the original message's hex. Is this the right way?