Commit d8ad98a
committed
Merge rust-bitcoin#5093: fix(address): report decoded base58 payload length in error
ac78c57 add test (Daniel)
34b927d fix(address): report decoded base58 payload length in error (Daniel)
Pull request description:
Ensure `InvalidBase58PayloadLengthError` reflects the length of the decoded base58 payload instead of the input string length. Aligns the error message with the actual bytes produced by`base58::decode_check` and improves diagnostics for malformed legacy addresses
ACKs for top commit:
apoelstra:
ACK ac78c57; successfully ran local tests
tcharding:
ACK ac78c57
Tree-SHA512: 0af80d44bde3e87919cff3c22dfc6afe0287df098fbca628d8f63544092bafeec209c1a59f81d0b69e007b4d66d031e4c41de4882fea12ea0d277b34cdb9da431 file changed
+21
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
919 | 919 | | |
920 | 920 | | |
921 | 921 | | |
922 | | - | |
923 | | - | |
| 922 | + | |
| 923 | + | |
| 924 | + | |
924 | 925 | | |
925 | 926 | | |
926 | 927 | | |
| |||
1602 | 1603 | | |
1603 | 1604 | | |
1604 | 1605 | | |
| 1606 | + | |
| 1607 | + | |
| 1608 | + | |
| 1609 | + | |
| 1610 | + | |
| 1611 | + | |
| 1612 | + | |
| 1613 | + | |
| 1614 | + | |
| 1615 | + | |
| 1616 | + | |
| 1617 | + | |
| 1618 | + | |
| 1619 | + | |
| 1620 | + | |
| 1621 | + | |
| 1622 | + | |
| 1623 | + | |
1605 | 1624 | | |
0 commit comments