I am able to sign a message on the client side using something like this:
const encodedMessage = new TextEncoder().encode("some message");
const signedMessage = await provider.signMessage(encodedMessage, "utf8");
Now I want to verify the signature on the back end side using Kotlin (or Java).
Problem:
- I cannot find the information about the algorithm that is used for signing messages in the documentation.
- It seems like there are no Java/Kotlin libraries that work with Phantom and Solana (found a few which are not updated for a year).
Question: How can I verify a signature from the Phantom wallet using Java? Or generally how can I do that in any language? (I will port it to Java then).