pda 使用问题 #7
Replies: 1 comment 1 reply
-
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
v1xingyue
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
用户wallet 使用 findProgramAddress + solana合约 id ,申请 pda 。
申请到数据空间后,然后,借由 合约 进行交互(写入)。
那是不是说,程序是可以操作 用他自己id 申请的所有pda。
或者,是不是有一种机制,创建出来的pda,只能允许某些钱包地址授权的情况下进行写入操作?
举个例子:
有两个账户 A, B
合约 C
A 使用 C 申请一个pda a ,
B 使用 C 申请一个pda b ,
现在的问题是 , A 和 B 是不是都可以通过合约C 来完成对 a , b 的写入。
或者有一种机制,可以限制 a 只能由 A 来写入。
Beta Was this translation helpful? Give feedback.
All reactions