Skip to content

πŸ›οΈ Multi-Sig Governance: Quorum Threshold Checker for WASM Upgrades (Issue #595) - #660

Merged
Sadeequ merged 4 commits into
StellarFlow-Network:mainfrom
ayandipe:feature/multisig-quorum-upgrade
Jul 27, 2026
Merged

Sadeequ merged 4 commits into
StellarFlow-Network:mainfrom
ayandipe:feature/multisig-quorum-upgrade

Conversation

@ayandipe

@ayandipe ayandipe commented Jul 25, 2026

Copy link
Copy Markdown
Contributor

Summary\n- Implements weighted N-of-M multi-sig authorization for WASM upgrades.\n- Tracks signer weights and quorum threshold in storage.\n- Aborts upgrade if collected signature weight is below the configured threshold.\n- Emits GV_UPG_PRO (GovernanceUpgradeProposedEvent) when a proposal is registered.\n- Adds public APIs: set_multisig_config, get_multisig_config, set_signer_weight, get_signer_weight.\n\nTesting & Notes\n- Proposal and execution both re-validate quorum (legacy count-based + new weight-based).\n- Admin has default weight 1 if not explicitly set.\n- Duplicate signer entries are deduplicated; weight arithmetic uses checked_add().\n\n Closes #595

ayandipe added 2 commits July 25, 2026 04:20
Add N-of-M multi-sig authorization for WASM bytecode upgrades:

- GovernanceConfig with configurable quorum_threshold stored in instance storage
- verify_upgrade_quorum() checks collected signature weight against threshold
- propose_upgrade() validates quorum at proposal time, stores signer list
- execute_upgrade() re-verifies quorum at execution time (prevents signer-removal race)
- Emit GV_UPG_PROPOSED event on proposal registration
- Clean up governance proposal record on cancel/execute
@drips-wave

drips-wave Bot commented Jul 25, 2026

Copy link
Copy Markdown

@ayandipe Great news! πŸŽ‰ Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! πŸš€

Learn more about application limits

@Sadeequ
Sadeequ merged commit 6a976a3 into StellarFlow-Network:main Jul 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

πŸ›οΈ Multi-Sig-Governance | Quorum Threshold Checker for WASM Code Upgrades

2 participants