Skip to content

Moving funds SPV proofs #3785

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 4 commits into from
Feb 21, 2024
Merged

Moving funds SPV proofs #3785

merged 4 commits into from
Feb 21, 2024

Conversation

tomaszslabon
Copy link
Contributor

@tomaszslabon tomaszslabon commented Feb 16, 2024

#Refs: #3735.
This PR adds functionalities for creating and submitting moving funds transaction SPV proofs.

Finding the possible unproven moving funds transactions is done by retrieving MovingFundsCommitmentSubmitted events and looking at the recent transactions of target wallets from each event as well as the wallet public key hash from the event. It's enough to just look at one of the target wallets (e.g. the first one) and retrieve all the transactions that pay to that target wallet. The unproven moving funds transaction must match both the input - it must be the current wallet's main UTXO and all the outputs - they must match the target wallets.

Once the unproven moving funds transactions are found, they are proven.

@tomaszslabon tomaszslabon force-pushed the moving-funds-spv-maintainer branch 5 times, most recently from 11f28c3 to cc58708 Compare February 19, 2024 14:37
@tomaszslabon tomaszslabon force-pushed the moving-funds-spv-maintainer branch from cc58708 to b64f633 Compare February 19, 2024 14:41
@tomaszslabon tomaszslabon marked this pull request as ready for review February 20, 2024 10:20
@lukasz-zimnoch lukasz-zimnoch merged commit 2a76f4d into main Feb 21, 2024
@lukasz-zimnoch lukasz-zimnoch deleted the moving-funds-spv-maintainer branch February 21, 2024 07:24
@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.

2 participants