feat: upgrade tool producing time-locked multisig wasm swap - #646
Open
vally111 wants to merge 1 commit into
Open
feat: upgrade tool producing time-locked multisig wasm swap#646vally111 wants to merge 1 commit into
vally111 wants to merge 1 commit into
Conversation
- Add ProposalAction::UpgradeWasm(BytesN<32>) variant to multisig.rs with action tag 11; updates action_tag() match arm - Add upgrade_tool.rs module with verify_manifest_hash(), execute_wasm_upgrade(), validate_upgrade_hash_env(), and UPGRADE_WASM_ACTION_TAG constant - Add WasmUpgradeExecuted event struct and emit_wasm_upgrade_executed() to events.rs with TOPIC_WASM_UPGRADE_EXECUTED symbol - Wire upgrade_tool module into lib.rs; dispatch_multisig_action redirects UpgradeWasm to execute_upgrade entry point with a clear error message Security properties: - Hash-binding: SHA-256 of supplied WASM must match proposal-committed hash - Timelock: standard DEFAULT_PROPOSAL_EXPIRY window enforced - Flash-vote resistance: vote-weight snapshot (issue Veritasor#512) applies - Replay protection: nonce on create/execute prevents double-execution - Null hash guard: all-zero hash rejected at proposal creation time
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Security properties: