-
Notifications
You must be signed in to change notification settings - Fork 349
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ED25519 signature verification #211
Comments
I'm hoping to achieve something like this:
|
@ronanyeah you should be able to achieve this with the ed25519 program https://docs.solana.com/developing/runtime-facilities/programs#ed25519-program CPI to that program within yours and you're good |
Thanks! I'm currently porting this file from |
Apparently this program doesn't work for CPI for GPU reasons: Apparently the correct approach is to verify the signature in a separate instruction, then walk through the instructions in your program code using |
I want to verify multiple signature in solana smart contract how can i do this . i am able to verify signle signature in smart contract . but how can i verify multiple signature |
I am trying to figure out if signature verification is possible onchain. If it is I will create an example for the cookbook.
I have tried to implement it with various ed25519 rust crates but keep running out of CPU:
![Screenshot from 2022-01-17 22-31-46](https://user-images.githubusercontent.com/9598261/149871495-db352181-dbe4-4418-8195-4f71dc844c9a.png)
I think this file is relevant, but relates to the SDK (which is offchain only):
https://github.com/solana-labs/solana/blob/master/sdk/src/ed25519_instruction.rs
The text was updated successfully, but these errors were encountered: