Is there a way to do basic decryption in Solidity?
Given 3 actors and message:
- Solidity contract
- Server generates message and signs with
- Client uses the message as parameter to call contract
- Contract uses server's
public keyto decrypt the message (make sure it came from server)
Is there a way in Solidity to do "decrypt" a string using a pubkey?