Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bech32 Windows binary fails to convert any input #40

Open
Iridium-IO opened this issue Jul 16, 2021 · 1 comment
Open

Bech32 Windows binary fails to convert any input #40

Iridium-IO opened this issue Jul 16, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@Iridium-IO
Copy link

Using the bech32 binary from cardano-wallet v2021-06-11

Piping any address in either upper or lower case fails, including the test inputs on the readme page.

  • Fails using piping in powershell
  • Fails using echo in powershell or commandprompt

Attempted commands (with or without the underscore, doesn't change outcome):

> echo 706174617465 | ./bech32 base16_
>>>bech32: user error (Unable to detect input encoding. Neither Base16, Bech32 nor Base58.)
> echo 706174617465 | ./bech32 base16_
>>>bech32: user error (Unable to detect input encoding. Neither Base16, Bech32 nor Base58.)
> "addr1q9.....kqwymqug" | ./bech32 addr
>>>bech32: user error (Unable to detect input encoding. Neither Base16, Bech32 nor Base58.)

I've also tried multiple examples provided around the forums for generating staking addresses from a wallet address with the same results.

@rvl
Copy link
Contributor

rvl commented Jul 18, 2021

Thanks for reporting @ImminentFate - I can reproduce this on Linux with:

$ printf "706174617465\n" | bech32 base16_
base16_1wpshgct5v5r5mxh0
$ printf "706174617465\r\n" | bech32 base16_ 
bech32: user error (Unable to detect input encoding. Neither Base16, Bech32 nor Base58.)

As a workaround, you can put your input in a file and save it with UNIX line endings (LF), instead of Windows line endings (CRLF).

@rvl rvl added the bug Something isn't working label Jul 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants