I want to create a program influenced by multisig structure.
There will be multiple types of instructions that require two parties to sign each transaction. Here's what I have in my mind:
- There will be a pda account that stores the signatures of both parties
- An execution instruction then will require this pda and an instruction
- This instruction will invoke the instruction with the signatures inside the pda
Is it possible to create such a structure? The reason why I want to implement this structure is to create a request program, where both parties need to sign to execute a instruction inside the program, but I don't want two signers in the instruction itself. Instead, I want each user to be able to sign each instruction independently and system will execute the instruction if both parties have signed the instruction.