Commit 2ca5a35
committed
Merge rust-bitcoin#845: various improvements/refactors of the decoder and its errors
cdb36c1 miniscript: rename parse_* functions to decode_* (Andrew Poelstra)
5fea2b3 miniscript: rename and cleanup decode::KeyParseError (Andrew Poelstra)
a57fab3 miniscript: replace many calls to reduce0 in decode with infallible constructors (Andrew Poelstra)
5b736bd miniscript: move lexer errors into their own type (Andrew Poelstra)
ceadd0d miniscript: use byte arrays in lexer (Andrew Poelstra)
Pull request description:
The last commit, which renames `parse_with_ext` to `decode_with_ext`, I think we should backport with deprecation to 12.x. This is a pretty uncommonly used function and is unlikely to bother anybody, but the current name is inconsistent with our general use of "parse" for strings and "decode" for scripts.
ACKs for top commit:
sanket1729:
ACK cdb36c1
Tree-SHA512: 8a3563dd23e49cf9331b299e237337a3d1097c15d5fe143ec9aa3f686d681fda077f019b25f0d66fccdd9a88ec489a84e144fcbb28410a671eb113f38e0fe58dFile tree
9 files changed
+227
-187
lines changed- fuzz/fuzz_targets
- src
- interpreter
- miniscript
- psbt
9 files changed
+227
-187
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
| 46 | + | |
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| |||
327 | 327 | | |
328 | 328 | | |
329 | 329 | | |
330 | | - | |
| 330 | + | |
331 | 331 | | |
332 | 332 | | |
333 | 333 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
131 | 131 | | |
132 | 132 | | |
133 | 133 | | |
134 | | - | |
135 | | - | |
136 | 134 | | |
137 | 135 | | |
138 | 136 | | |
| |||
436 | 434 | | |
437 | 435 | | |
438 | 436 | | |
439 | | - | |
440 | | - | |
441 | | - | |
442 | | - | |
443 | | - | |
444 | | - | |
445 | | - | |
446 | | - | |
447 | | - | |
| 437 | + | |
| 438 | + | |
448 | 439 | | |
449 | 440 | | |
450 | 441 | | |
| |||
490 | 481 | | |
491 | 482 | | |
492 | 483 | | |
493 | | - | |
| 484 | + | |
494 | 485 | | |
495 | 486 | | |
496 | 487 | | |
| |||
519 | 510 | | |
520 | 511 | | |
521 | 512 | | |
522 | | - | |
523 | | - | |
524 | | - | |
525 | | - | |
526 | | - | |
527 | | - | |
| 513 | + | |
528 | 514 | | |
529 | 515 | | |
530 | 516 | | |
| |||
576 | 562 | | |
577 | 563 | | |
578 | 564 | | |
579 | | - | |
580 | | - | |
581 | | - | |
582 | | - | |
| 565 | + | |
583 | 566 | | |
584 | 567 | | |
585 | 568 | | |
| |||
593 | 576 | | |
594 | 577 | | |
595 | 578 | | |
596 | | - | |
| 579 | + | |
597 | 580 | | |
598 | 581 | | |
599 | 582 | | |
| |||
614 | 597 | | |
615 | 598 | | |
616 | 599 | | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
617 | 605 | | |
618 | 606 | | |
619 | 607 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| |||
0 commit comments