Create a Multisig
To create a multisig, first derive the address. The address is technically a PDA, and can be derived based off of the createKey.
The createKey
can be any public key (wallet, random, etc.), as long as its supplied as a PublicKey type.
Additionally, the create
method will need an approval threshold and a list of keys to act as the members of the multisig (signers).
For example, to create a multisig based on a user's wallet address or a random key:
Read the section on PDAs for more information about the multisig PDA.