btcsuite / btcutil

Provides bitcoin-specific convenience functions and types
475 stars 408 forks source link

Support decoding with length limit as a param #168

Closed assafmo closed 3 years ago

assafmo commented 4 years ago

Decode can now accept char limit instead of using 90 as a constant.

This caused a bug on cosmos-sdk, for example, where they're sometimes using addresses with a length of 218 characters: https://github.com/cosmos/cosmos-sdk/pull/6237

Roasbeef commented 3 years ago

Closing this as https://github.com/btcsuite/btcutil/pull/177 was merged.