keep-network / keep-core

The smart contracts and reference client behind the Keep network
https://keep.network
MIT License
113 stars 72 forks source link

Moved funds sweep SPV proofs #3793

Closed tomaszslabon closed 4 months ago

tomaszslabon commented 4 months ago

Refs: https://github.com/keep-network/keep-core/issues/3738.

This PR adds functionalities for creating and submitting moved funds sweep transaction SPV proofs.

Finding the possible unproven moved funds sweep transactions is done by retrieving MovingFundsCommitmentSubmitted events and looking at the recent transactions of target wallets from each event.

An unproven moved funds seep transaction must have the following format:

Once the unproven moved funds sweep transactions are found, they are proven.