Skip to content

Moved funds sweep Bitcoin transaction #3790

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Mar 15, 2024
Merged

Conversation

tomaszslabon
Copy link
Contributor

@tomaszslabon tomaszslabon commented Mar 1, 2024

#Closes #3737.

This PR introduces the creation of Bitcoin moved funds sweep transaction which allows the target wallet to merge funds moved from the source wallet with the target wallet's main UTXO.

The creation of the Bitcoin moved funds sweep transaction is the responsibility of movedFundsSweepAction which is executed after the moved funds sweep proposal has been prepared.

Executing the movedFundsSweepAction consists of several steps:
initial validation of the moved funds sweep proposal against the Ethereum network
assembling the moved funds sweep Bitcoin transaction
signing the moved funds sweep Bitcoin transaction
broadcasting the moved funds sweep Bitcoin transaction
The moved funds sweep Bitcoin transaction always consists of one input (the UTXO moved from the source wallet) and optionally the second input (wallet's main UTXO). There is always one output which transfers the funds back to the wallet and becomes the wallet's new main UTXO.

@tomaszslabon tomaszslabon force-pushed the moved-funds-sweep-btc-tx branch from 7006e61 to 761428e Compare March 1, 2024 18:00
@tomaszslabon tomaszslabon force-pushed the moved-funds-sweep-btc-tx branch from 4546e4d to 1c4037a Compare March 5, 2024 15:45
@tomaszslabon tomaszslabon marked this pull request as ready for review March 7, 2024 08:24
@tomaszslabon tomaszslabon force-pushed the moved-funds-sweep-btc-tx branch from 160e118 to 664ace2 Compare March 15, 2024 11:35
@tomaszslabon tomaszslabon force-pushed the moved-funds-sweep-btc-tx branch from daade95 to e25ae31 Compare March 15, 2024 12:28
@lukasz-zimnoch lukasz-zimnoch merged commit f1c4f08 into main Mar 15, 2024
@lukasz-zimnoch lukasz-zimnoch deleted the moved-funds-sweep-btc-tx branch March 15, 2024 12:47
@lukasz-zimnoch lukasz-zimnoch added this to the v2.1.0 milestone Jun 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement moved funds sweep transaction execution
2 participants