Commit d857577
fix(tbtc/signer): bind the aggregate-cleanup filter to the message too (re-review)
Codex re-review (P2, valid): the finalized-sibling cleanup added in the previous
commit matched entries on (attempt_id, taproot root) but NOT the message. Because
attempt_id is provided by the caller separately from the package, a mismatched
aggregate - a valid signing package for message B submitted under a live message-A
attempt's id (same root) - would delete the message-A seats' live nonce/commitment
state, forcing that unrelated attempt to restart, even though the stored marker (now
message-bound) correctly would not match its Round2.
Match the FULL finalized identity in the cleanup filter: attempt_id AND
hash_hex(entry.message_bytes) == aggregated_message_digest AND taproot root - the
same (attempt + message + root) identity the completion marker binds.
Test interactive_aggregate_cleanup_is_message_bound: a valid stateless aggregate over
message B under message A's attempt id leaves the live message-A seat intact. All 297
lib tests pass; cargo fmt clean.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent 49fdcbc commit d857577
2 files changed
Lines changed: 83 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
930 | 930 | | |
931 | 931 | | |
932 | 932 | | |
| 933 | + | |
| 934 | + | |
| 935 | + | |
| 936 | + | |
| 937 | + | |
933 | 938 | | |
| 939 | + | |
934 | 940 | | |
935 | 941 | | |
936 | 942 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12107 | 12107 | | |
12108 | 12108 | | |
12109 | 12109 | | |
| 12110 | + | |
| 12111 | + | |
| 12112 | + | |
| 12113 | + | |
| 12114 | + | |
| 12115 | + | |
| 12116 | + | |
| 12117 | + | |
| 12118 | + | |
| 12119 | + | |
| 12120 | + | |
| 12121 | + | |
| 12122 | + | |
| 12123 | + | |
| 12124 | + | |
| 12125 | + | |
| 12126 | + | |
| 12127 | + | |
| 12128 | + | |
| 12129 | + | |
| 12130 | + | |
| 12131 | + | |
| 12132 | + | |
| 12133 | + | |
| 12134 | + | |
| 12135 | + | |
| 12136 | + | |
| 12137 | + | |
| 12138 | + | |
| 12139 | + | |
| 12140 | + | |
| 12141 | + | |
| 12142 | + | |
| 12143 | + | |
| 12144 | + | |
| 12145 | + | |
| 12146 | + | |
| 12147 | + | |
| 12148 | + | |
| 12149 | + | |
| 12150 | + | |
| 12151 | + | |
| 12152 | + | |
| 12153 | + | |
| 12154 | + | |
| 12155 | + | |
| 12156 | + | |
| 12157 | + | |
| 12158 | + | |
| 12159 | + | |
| 12160 | + | |
| 12161 | + | |
| 12162 | + | |
| 12163 | + | |
| 12164 | + | |
| 12165 | + | |
| 12166 | + | |
| 12167 | + | |
| 12168 | + | |
| 12169 | + | |
| 12170 | + | |
| 12171 | + | |
| 12172 | + | |
| 12173 | + | |
| 12174 | + | |
| 12175 | + | |
| 12176 | + | |
| 12177 | + | |
| 12178 | + | |
| 12179 | + | |
| 12180 | + | |
| 12181 | + | |
| 12182 | + | |
| 12183 | + | |
| 12184 | + | |
| 12185 | + | |
| 12186 | + | |
12110 | 12187 | | |
12111 | 12188 | | |
12112 | 12189 | | |
| |||
0 commit comments