Timeline for Does PDA owned by System Program safe?
Current License: CC BY-SA 4.0
4 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Feb 28 at 7:32 | vote | accept | Maksim Tolstikov | ||
Feb 27 at 11:37 | comment | added | Jon C |
Certainly! Here's the code in the syscall to perform a cross-program invocation. You'll see that it takes all the seeds from invoke_signed and creates program addresses with those, and promotes those addresses to signers in the instruction: github.com/solana-labs/solana/blob/…
|
|
Feb 27 at 7:44 | comment | added | Maksim Tolstikov | Thank you very much for your answer! Is it possible, if you know, to share the piece of Solana code where this check happens - "Only the program whose id is used to generate the PDA may "sign" for that account, so it's totally safe."? | |
Feb 26 at 20:39 | history | answered | Jon C | CC BY-SA 4.0 |