Verify data
melisovm97 opened this issue · comments
How to verify signed data which have only signature(hexadecimal string), address, and data, I mean message
@melisovm97 , you won't be able to verify the data with just that information. The XRP address is derived from the master public key using a one-way hash function.
What you might be able to do is see if that address has signed any transactions using its master public key, get the info for that transaction and grab the SigningPubKey
field so you have the master public key.
Does that make sense?
But how can I get public key from signature? Is it possible? If I will be able derive public key from signature, then I will be able also get address from public Key, then only compare between them? Is it real?
I don't know of a way to get the public key from the signature. Based on https://crypto.stackexchange.com/questions/9936/what-signature-schemes-allow-recovering-the-public-key-from-a-signature it may not be possible with Ed25519. I'm closing this issue for now, but if anyone has other ideas, please feel free to comment or open a new issue.