feat: Btc sweep + withdraw in signet#1339
Open
esaminu wants to merge 3 commits intogalacticcouncil:masterfrom
Open
feat: Btc sweep + withdraw in signet#1339esaminu wants to merge 3 commits intogalacticcouncil:masterfrom
esaminu wants to merge 3 commits intogalacticcouncil:masterfrom
Conversation
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.
Reimplements #1275
feat: add Bitcoin vault integration with per-input PSBT signing
Description
Adds Bitcoin vault functionality with support for UTXO management, PSBT construction, per-input MPC signatures, and transaction monitoring on Bitcoin regtest.
New components:
pallet-btc-vault): Handles deposits, claims, and balance trackingbuild-btc-tx): Constructs PSBTs from UTXOs and outputsbtc-vault.test.ts): Full deposit/claim, withdraw and refund flow with regtestKey features:
Motivation and Context
Extends the Signet MPC framework to support Bitcoin transactions, enabling users to deposit BTC into a Substrate vault by:
This mirrors the existing ERC20 vault pattern but adapted for Bitcoin's UTXO model.
How Has This Been Tested?
btc-vault.test.ts) passes end-to-endTest environment:
Checklist: