Skip to content
This repository has been archived by the owner on Nov 24, 2021. It is now read-only.

Verify data #110

Closed
melisovm97 opened this issue Feb 18, 2020 · 3 comments
Closed

Verify data #110

melisovm97 opened this issue Feb 18, 2020 · 3 comments

Comments

@melisovm97
Copy link

melisovm97 commented Feb 18, 2020

How to verify signed data which have only signature(hexadecimal string), address, and data, I mean message

@0xCLARITY
Copy link
Contributor

@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?

@melisovm97
Copy link
Author

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?

@intelliot
Copy link
Contributor

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants