keep-network / keep-core

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

Prepare SPV maintainer for redemptions #3669

Closed lukasz-zimnoch closed 1 year ago

lukasz-zimnoch commented 1 year ago

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

The current code of SPV maintainer is strongly tied to deposit sweeps. In order to implement redemption proofs in an efficient and clean way, we need to make them more generic and extract common parts that can be reused by different proof types in order to avoid duplication. Here we aim to achieve this. I recommend reviewing commit by commit to understand all changes being part of this refactoring.