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.
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.