Commit de73db9
committed
key: fix DefiniteDescriptorKey construction from key with hardened step
Our current API allows constructing a DefiniteDescriptorKey with hardened steps,
which means that you can't actually derive a public key. However, the point of
this type is to provide a DescriptorPublicKey which implements the ToPublicKey
trait.
This is a backport, so it introduces the `has_hardened_steps` helper function
but does *not* make it pub, in the interest of avoiding gratuitious API changes.1 parent af2664d commit de73db9
1 file changed
Lines changed: 24 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
609 | 609 | | |
610 | 610 | | |
611 | 611 | | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
612 | 629 | | |
613 | 630 | | |
614 | 631 | | |
| |||
1037 | 1054 | | |
1038 | 1055 | | |
1039 | 1056 | | |
1040 | | - | |
| 1057 | + | |
1041 | 1058 | | |
1042 | 1059 | | |
1043 | 1060 | | |
| |||
1071 | 1088 | | |
1072 | 1089 | | |
1073 | 1090 | | |
1074 | | - | |
| 1091 | + | |
1075 | 1092 | | |
1076 | 1093 | | |
1077 | 1094 | | |
| |||
1516 | 1533 | | |
1517 | 1534 | | |
1518 | 1535 | | |
| 1536 | + | |
| 1537 | + | |
| 1538 | + | |
| 1539 | + | |
| 1540 | + | |
1519 | 1541 | | |
1520 | 1542 | | |
0 commit comments