Commit 7bddfd5
feat(wasm-utxo): pass SighashCache to Taproot signature verification
Optimize Taproot script path signature verification by reusing the
SighashCache, allowing it to be created once and passed into the
verification function. This improves performance for bulk signature
verification by avoiding redundant cache creation.
Issue: BTC-2866
Co-authored-by: llm-git <llm-git@ttll.de>1 parent 5c34219 commit 7bddfd5
2 files changed
Lines changed: 13 additions & 6 deletions
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2578 | 2578 | | |
2579 | 2579 | | |
2580 | 2580 | | |
| 2581 | + | |
| 2582 | + | |
2581 | 2583 | | |
2582 | 2584 | | |
2583 | 2585 | | |
2584 | 2586 | | |
2585 | 2587 | | |
| 2588 | + | |
2586 | 2589 | | |
2587 | 2590 | | |
2588 | 2591 | | |
| |||
2603 | 2606 | | |
2604 | 2607 | | |
2605 | 2608 | | |
| 2609 | + | |
| 2610 | + | |
2606 | 2611 | | |
2607 | 2612 | | |
2608 | 2613 | | |
2609 | 2614 | | |
2610 | 2615 | | |
| 2616 | + | |
2611 | 2617 | | |
2612 | 2618 | | |
2613 | 2619 | | |
| |||
Lines changed: 7 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
131 | 131 | | |
132 | 132 | | |
133 | 133 | | |
| 134 | + | |
134 | 135 | | |
135 | 136 | | |
136 | 137 | | |
137 | 138 | | |
138 | 139 | | |
139 | | - | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
140 | 144 | | |
141 | 145 | | |
142 | 146 | | |
143 | 147 | | |
| 148 | + | |
144 | 149 | | |
145 | | - | |
146 | | - | |
147 | | - | |
| 150 | + | |
148 | 151 | | |
149 | 152 | | |
150 | 153 | | |
| |||
160 | 163 | | |
161 | 164 | | |
162 | 165 | | |
163 | | - | |
164 | | - | |
165 | 166 | | |
166 | 167 | | |
167 | 168 | | |
| |||
0 commit comments