IntersectMBO / bech32

Haskell implementation of the Bech32 address format (BIP 0173).
Apache License 2.0
44 stars 13 forks source link

Filter whitespaces from bech32 stdin #41

Closed piotr-iohk closed 2 years ago

piotr-iohk commented 2 years ago

Relates to https://github.com/input-output-hk/cardano-wallet/pull/3000#issuecomment-960873218.

Tested on Windows. Before:

>echo addr_vk1xxly8nmfk0nr38a7fp002zkprfv562hll98mv9xntmgz4v9590cs4hujs4 | bech32
bech32: user error (StringToDecodeContainsInvalidChars [CharPosition 66,CharPosition 67])

After:

>echo addr_vk1xxly8nmfk0nr38a7fp002zkprfv562hll98mv9xntmgz4v9590cs4hujs4 | bech32
31be43cf69b3e6389fbe485ef50ac11a594d2afff94fb614d35ed02ab0b42bf1