Go to file
Steven Luscher 435d6eb15f
s/threhsold/threshold/ (#65)
2022-11-15 13:49:08 -05:00
migrations Init repo 2021-03-10 09:58:46 -08:00
programs/multisig update addresses, build items, and docs (#63) 2022-10-29 09:58:47 -04:00
tests update addresses, build items, and docs (#63) 2022-10-29 09:58:47 -04:00
.gitignore Add package.json (#36) 2021-12-29 17:33:11 -05:00
.travis.yml update addresses, build items, and docs (#63) 2022-10-29 09:58:47 -04:00
Anchor.toml update addresses, build items, and docs (#63) 2022-10-29 09:58:47 -04:00
Cargo.lock update addresses, build items, and docs (#63) 2022-10-29 09:58:47 -04:00
Cargo.toml update addresses, build items, and docs (#63) 2022-10-29 09:58:47 -04:00
LICENSE Add LICENSE 2021-03-18 16:48:15 -07:00
README.md s/threhsold/threshold/ (#65) 2022-11-15 13:49:08 -05:00
SECURITY_AUDIT_REPORT.pdf Security audit attached (#62) 2022-10-19 09:46:40 -04:00
package-lock.json update addresses, build items, and docs (#63) 2022-10-29 09:58:47 -04:00
package.json upgrade to anchor 0.24.2 (#57) 2022-05-22 10:33:15 +02:00

README.md

Multisig

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.

Note

Developing

Anchor is used for developoment, and it's recommended workflow is used here. To get started, see the guide.

Build

anchor build --verifiable

The --verifiable flag should be used before deploying so that your build artifacts can be deterministically generated with docker.

Test

anchor test

Verify

To verify the program deployed on Solana matches your local source code, install docker, cd programs/multisig, and run

anchor verify <program-id | write-buffer>

A list of build artifacts can be found under releases.