Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
6
votes
Confusion about PDAs
PDAs are found, not generated, they aren't designed to be secretive.
let [pda, bump] = await PublicKey.findProgramAddress(
[...arrayOfSeeds],
programId
);
You don't need to know or "brute force" the … can I generate the same pda and do some malicious transaction acting as authority for that pda
So you can find the PDA but it's entirely dependent on the program whether you can "do some malicious transaction …
4
votes
Accepted
Prog A calls Prog B via invoke_signed. How do I pass account_infos for the next CPI call fro...
The accounts needed for Program C needs to be passed in via the CPI call made to Program B. Which circles back to the accounts needed for both Program B and Program C needs to be passed in when the us …
32
votes
Accepted
What is a Program Derived Address (PDA) exactly?
A PDA is an address with special properties. They are 32-byte strings that look like public keys, but don’t have corresponding private keys.
Why do I need it? …
4
votes
Instruction Error after upgrading solana program
You will need to migrate the account. There's a full guide how to do this on the cookbook
1
vote
Accepted
Make reading from PDAs private
As you correctly stated, anyone who knows the seeds can find the address of a PDA.
There is no mechanism to have a private PDA. …
6
votes
Accepted
Can you modify a non-PDA account's data when you know its private key
I wonder if there is a way to modify the account's data without the program if you know its private key?
No. There are two concepts that are at play. Ownership and signing authority.
Only the owner …
2
votes
Accepted
How to generate new wallets in anchor typescript tests
Another user in your case is any Keypair
You can generate another Keypair using:
const user1 = anchor.web3.Keypair.generate();
const user2 = anchor.web3.Keypair.generate();
Then you can call updatePd …