You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now if we have an invalid witness version we print the field element directly, which will print it in the bech32 alphabet. This is confusing because, for example, the number 17 will be printed as "3".
We should convert it to a number by adding to_u8 before printing.
The text was updated successfully, but these errors were encountered:
tcharding
added a commit
to tcharding/rust-bech32
that referenced
this issue
Jan 7, 2024
We have two errors that cover invalid witness version, for one we print
the field element which can be confusing for some values and for the
other we omit the invalid version all together - we can do better.
Print the field element as well as the integer value when displaying the
two invalid witness version errors.
Fix: rust-bitcoin#162
e988f34 Improve error display for invalid witness version (Tobin C. Harding)
d692972 Add rustfmt::skip to Display impl (Tobin C. Harding)
Pull request description:
We have two errors that cover invalid witness version, for one we print the field element which can be confusing for some values and for the other we omit the invalid version all together - we can do better.
Print the field element as well as the integer value when displaying the two invalid witness version errors.
Fix: #162
ACKs for top commit:
apoelstra:
ACK e988f34
Tree-SHA512: 93d666f396c536d6348cf793b74c27363eeacec02c0a7a4ec53786778f7c64c393bad90fe10b718f872d61deb355de4b18f4fd8a66e35a1f53e09ced2cbe7c0b
Right now if we have an invalid witness version we print the field element directly, which will print it in the bech32 alphabet. This is confusing because, for example, the number 17 will be printed as "3".
We should convert it to a number by adding
to_u8
before printing.The text was updated successfully, but these errors were encountered: