MCPcopy Index your code
hub / github.com/coral-xyz/multisig

github.com/coral-xyz/multisig @v0.9.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.9.0 ↗ · + Follow
18 symbols 22 edges 3 files 7 documented · 39%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

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. threhsold) of the owners have signed.

Note

  • This code is unaudited. Use at your own risk.

Non-Upgradeable mainnet-beta verifiable deployed versions

  • Tag 0.7.0 deployed at: msigmtwzgXJHj2ext4XJjCDmpbcMuufFb5cHuwg6Xdt

To verify: check out tag 0.7.0 and...

cd serum/multisig/programs/multisig
anchor verify msigmtwzgXJHj2ext4XJjCDmpbcMuufFb5cHuwg6Xdt`

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.

Core symbols most depended-on inside this repo

assert_unique_owners
called by 2
programs/multisig/src/lib.rs
set_owners
called by 1
programs/multisig/src/lib.rs
change_threshold
called by 1
programs/multisig/src/lib.rs
create_multisig
called by 0
programs/multisig/src/lib.rs
create_transaction
called by 0
programs/multisig/src/lib.rs
approve
called by 0
programs/multisig/src/lib.rs
set_owners_and_change_threshold
called by 0
programs/multisig/src/lib.rs
execute_transaction
called by 0
programs/multisig/src/lib.rs

Shape

Class 8
Function 8
Enum 1
Method 1

Languages

Rust100%

Modules by API surface

programs/multisig/src/lib.rs18 symbols

For agents

$ claude mcp add multisig \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page