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