How can i verify Ethereum signed messase with PHP?
Message is signed using web3.personal.sign
function in Web3.js and signature is then sent to server. How can I verify it with PHP?
Are there some pre-built packages (on Packagist) or I should do this from scratch? Is it possible to do this without any connection to RPC nodes or chain (off-chain)?
I already found some question about this on Ethereum StackExchange, but it is very complicate and a bit old so I want to know if there is newer and better solution.
I also found some package on GitHub, but I don't know if it will work with web3.personal.sign
.
Some links I found:
Verifying signed message is possible with package php-ecrecover.
You can get the original message address using this package and then verify if it is same as expected address.
JS Sign:
PHP Verify: