1

I'm implementing a sign in with Solana, and i'm trying to recover the user's publicKey from their signature + the known message they signed.

I know for Ethereum, ethers provides a method to do this, but I can't seem to find the equivalent on Solana.

1

1 Answer 1

1

Solana uses the ed25519 signature scheme. You can use any JS lib that implements ed25519 to handle signing/verifying etc

I couldn't find one that implements a public key recovery, though according to this post, its mathematically possible

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.