1 unstable release

0.0.1 Aug 16, 2024

#12 in #pubkey

Download history 74/week @ 2024-08-10 83/week @ 2024-08-17 9/week @ 2024-08-24 46/week @ 2024-08-31 3/week @ 2024-09-07 38/week @ 2024-09-14 137/week @ 2024-09-21 72/week @ 2024-09-28 108/week @ 2024-10-05 180/week @ 2024-10-12 93/week @ 2024-10-19 132/week @ 2024-10-26 232/week @ 2024-11-02

678 downloads per month

Apache-2.0

17KB
336 lines

An example of a multisig to execute arbitrary Solana transactions.

This program can be used to allow a multisig to govern anything a regular Pubkey can govern. One can use the multisig as a BPF program upgrade authority, a mint authority, etc.

To use, one must first create a Multisig account, specifying two important parameters:

  1. Owners - the set of addresses that sign transactions for the multisig.
  2. Threshold - the number of signers required to execute a transaction.

Once the Multisig account is created, one can create a Transaction account, specifying the parameters for a normal solana transaction.

To sign, owners should invoke the approve instruction, and finally, the execute_transaction, once enough (i.e. threshold) of the owners have signed.

Dependencies

~17–26MB
~441K SLoC