Skip to main content
edited tags; edited title
Source Link

Verify a ed25519an Ed25519 signature in Smart Contracta Solana program

I'd like to sign a message via Phantom (How to verify a signature from the Phantom wallet?), and then have a smart contract verify the signature of the message to be from the correct public key.

From searches, I found there is an ed25519 signature program (https://github.com/solana-labs/solana/blob/master/core/src/sigverify.rs), but I have no idea how to use it. And no idea if this is how one would verify a signature in a rust smart contractonchain program.

Ethereum has an method ecrecover in Solidity that allows one to verify a signature given the message and public address. I'm hoping for something similar.

Thanks

Edit: Still no solution or recommendations, despite my best efforts to search around outside of Stake Exchange.

Verify a ed25519 signature in Smart Contract

I'd like to sign a message via Phantom (How to verify a signature from the Phantom wallet?), and then have a smart contract verify the signature of the message to be from the correct public key.

From searches, I found there is an ed25519 signature program (https://github.com/solana-labs/solana/blob/master/core/src/sigverify.rs), but I have no idea how to use it. And no idea if this is how one would verify a signature in a rust smart contract.

Ethereum has an method ecrecover in Solidity that allows one to verify a signature given the message and public address. I'm hoping for something similar.

Thanks

Edit: Still no solution or recommendations, despite my best efforts to search around outside of Stake Exchange.

Verify an Ed25519 signature in a Solana program

I'd like to sign a message via Phantom (How to verify a signature from the Phantom wallet?), and then have a smart contract verify the signature of the message to be from the correct public key.

From searches, I found there is an ed25519 signature program (https://github.com/solana-labs/solana/blob/master/core/src/sigverify.rs), but I have no idea how to use it. And no idea if this is how one would verify a signature in a rust onchain program.

Ethereum has an method ecrecover in Solidity that allows one to verify a signature given the message and public address. I'm hoping for something similar.

Thanks

Edit: Still no solution or recommendations, despite my best efforts to search around outside of Stake Exchange.

Bumped by Community user
No answers. Crickets.
Source Link
britt
  • 113
  • 6

I'd like to sign a message via Phantom (How to verify a signature from the Phantom wallet?), and then have a smart contract verify the signature of the message to be from the correct public key.

From searches, I found there is an ed25519 signature program (https://github.com/solana-labs/solana/blob/master/core/src/sigverify.rs), but I have no idea how to use it. And no idea if this is how one would verify a signature in a rust smart contract.

Ethereum has an method ecrecover in Solidity that allows one to verify a signature given the message and public address. I'm hoping for something similar.

Thanks

Edit: Still no solution or recommendations, despite my best efforts to search around outside of Stake Exchange.

I'd like to sign a message via Phantom (How to verify a signature from the Phantom wallet?), and then have a smart contract verify the signature of the message to be from the correct public key.

From searches, I found there is an ed25519 signature program (https://github.com/solana-labs/solana/blob/master/core/src/sigverify.rs), but I have no idea how to use it. And no idea if this is how one would verify a signature in a rust smart contract.

Ethereum has an method ecrecover in Solidity that allows one to verify a signature given the message and public address. I'm hoping for something similar.

Thanks

I'd like to sign a message via Phantom (How to verify a signature from the Phantom wallet?), and then have a smart contract verify the signature of the message to be from the correct public key.

From searches, I found there is an ed25519 signature program (https://github.com/solana-labs/solana/blob/master/core/src/sigverify.rs), but I have no idea how to use it. And no idea if this is how one would verify a signature in a rust smart contract.

Ethereum has an method ecrecover in Solidity that allows one to verify a signature given the message and public address. I'm hoping for something similar.

Thanks

Edit: Still no solution or recommendations, despite my best efforts to search around outside of Stake Exchange.

Source Link
britt
  • 113
  • 6

Verify a ed25519 signature in Smart Contract

I'd like to sign a message via Phantom (How to verify a signature from the Phantom wallet?), and then have a smart contract verify the signature of the message to be from the correct public key.

From searches, I found there is an ed25519 signature program (https://github.com/solana-labs/solana/blob/master/core/src/sigverify.rs), but I have no idea how to use it. And no idea if this is how one would verify a signature in a rust smart contract.

Ethereum has an method ecrecover in Solidity that allows one to verify a signature given the message and public address. I'm hoping for something similar.

Thanks