Verify Signatures

Based on a message and signature, get the corresponding address which signed the message. The prefix flag indicates where or not the message should be prefixed with

\x19Ethereum Signed Message:\ + length of the message

NOTE: If the message was a text value, it will treat is as such. If it's a hex (starts with 0x and is a hex representation of a byte array), it will use the byte array created by decoding the hex value.

Example Request

curl -X POST \
  https://api.cinder.cloud/api/ethereum/signature/verify \
  -H 'Content-Type: application/json' \
  -d '{
      	"message": "test",
      	"prefix": false, //optional
      	"signature": "0x0c38b27286a5cae08282be8b991eefd4da4715d7d1244ee6128825ec5f200fcd24e268a5f616e861eab76e7f73f36f5c3e682d790ca334a8e3df7c594faab7fe1b"
      }'

Example Response Observable

{
    "signer": "0x40859366b5c1949a6dd7f035fd321e48976b97de"
}