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
Rather than returning a String this should really use the alternate flag on a Formatter, for efficiency reasons. But regardless of efficiency, currently this function just calls Debug instead of Display which does not do the right thing. In particular the "no checksum" output wraps public keys in PublicKey(...).
e28d6d4 descriptor: drop `to_string_no_chksum` method (Andrew Poelstra)
Pull request description:
This method has been made redundant by the `{:#}` display specifier since 7577e8c two years ago. It is poorly named, inefficient since it always requires allocating a `String`, and also broken because it uses debug display for keys.
All of our unit tests were converted over to use :# which is why it wasn't noticed that this method didn't work.
Fixes#34Fixes#85
ACKs for top commit:
delta1:
ACK e28d6d4
RCasatta:
utACK e28d6d4
Tree-SHA512: 73ee261979822906316fac727970ccdb723bee400a9bba789d68b4851b8bf9b2d500dd5c9a22d75b9c43bcfc57e8d1701c83d43f420edcb257e51653ae314744
Rather than returning a
String
this should really use thealternate
flag on aFormatter
, for efficiency reasons. But regardless of efficiency, currently this function just callsDebug
instead ofDisplay
which does not do the right thing. In particular the "no checksum" output wraps public keys inPublicKey(...)
.cc rust-bitcoin/rust-miniscript#477
The text was updated successfully, but these errors were encountered: