feat(sdk-coin-iota): support MPCv2 consolidation recovery - #9545
Conversation
a4a45de to
3b699ed
Compare
3b699ed to
c5a4ba0
Compare
03e4c37 to
e16c962
Compare
e16c962 to
29b4b1d
Compare
Add MPCv2 signed hot recovery support to recoverConsolidations(), consistent with the DOT/SUI pattern: - Add protected getEddsaSigningMaterial()/signIotaMpcV2Recovery() wrapper methods (matching DOT/SUI) so keycard detection and MPS signing can be independently stubbed in tests - recover() accepts an optional precomputedMaterial param and threads it through recoverIotaToken()/signRecoveryTransaction() instead of a boolean - signRecoveryTransaction() detects the keycard version exactly once (or reuses precomputedMaterial), branches on .version, and passes signingMaterial.encryptedUserKey into the MPCv2 signing call - recoverConsolidations() detects signing material once before the scan loop and passes it into each recover() call, avoiding re-decryption per index, with no ad hoc IotaRecoveryOptions type extension - Add consolidation MPCv2 test coverage with two funded receive indexes Ticket: WCI-1235
29b4b1d to
15655e0
Compare
|
Claude finished @Marzooqa's task —— View job PR Review: MPCv2 Consolidation Recovery for IOTATodo List
Code Review Feedback✅ Implementation OverviewThis PR successfully adds MPCv2 consolidation recovery support for IOTA by:
✅ Key Improvements1. Performance Optimization (Critical)
2. MPCv2 Integration
✅ Code Quality AssessmentWell-structured changes:
Good practices:
✅ Security ConsiderationsSecure keycard handling:
Validation preserved:
✅ Test Coverage AnalysisComprehensive test additions (88 new lines):
|
What
Why
decrypting the keycard once per scanned receive index.
Test plan
git diff --checkTicket: WCI-1235