Issue
Let's say I have a program where I want the initialization call to be signed by multiple wallets. How to proceeds, I suppose I pass x accounts as signers, but in terme of UI/user interactions how does that play out?
Solution
Ok I think this is the way. Indirection through a program that does the gathering of signs.
You init a multisig tx, set all the details and signers count.
Signers refer this calling the multisig program, effectively signing it
Once the treshold is reach, you call the execute ix of that multisig program, and it does a multisig CPI call.
https://github.com/project-serum/multisig/blob/master/programs/multisig/src/lib.rs
Answered By - Acammm Answer Checked By - Robin (PHPFixing Admin)
0 Comments:
Post a Comment
Note: Only a member of this blog may post a comment.