Commit 08bc215
refactor(abstract-utxo): update getMusig2Nonces to accept UtxoPsbt
Update the getMusig2Nonces method to accept a UtxoPsbt object directly
instead of a hex string. This improves type safety and reduces unnecessary
encoding/decoding. Also add a helper method decodeTransactionAsPsbt to
validate and cast decoded transactions to UtxoPsbt.
Update dependent functions to use the new method signature and refactor
to avoid unnecessary conversion steps.
Issue: BTC-2806
Co-authored-by: llm-git <[email protected]>1 parent b73057e commit 08bc215
File tree
2 files changed
+22
-11
lines changed- modules/abstract-utxo/src
- transaction/fixedScript
2 files changed
+22
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
547 | 547 | | |
548 | 548 | | |
549 | 549 | | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
550 | 558 | | |
551 | 559 | | |
552 | 560 | | |
| |||
711 | 719 | | |
712 | 720 | | |
713 | 721 | | |
714 | | - | |
715 | | - | |
716 | | - | |
| 722 | + | |
| 723 | + | |
| 724 | + | |
717 | 725 | | |
718 | 726 | | |
719 | 727 | | |
| 728 | + | |
720 | 729 | | |
721 | 730 | | |
722 | 731 | | |
| |||
726 | 735 | | |
727 | 736 | | |
728 | 737 | | |
729 | | - | |
| 738 | + | |
730 | 739 | | |
731 | 740 | | |
732 | 741 | | |
| |||
736 | 745 | | |
737 | 746 | | |
738 | 747 | | |
739 | | - | |
740 | | - | |
741 | | - | |
| 748 | + | |
| 749 | + | |
| 750 | + | |
| 751 | + | |
| 752 | + | |
742 | 753 | | |
743 | 754 | | |
744 | 755 | | |
| |||
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
| 69 | + | |
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
86 | | - | |
87 | | - | |
| 86 | + | |
| 87 | + | |
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
| |||
0 commit comments