bitcore-lib icon indicating copy to clipboard operation
bitcore-lib copied to clipboard

BUG: Address strips out trailing spaces from an address string

Open gabegattis opened this issue 7 years ago • 1 comments

https://github.com/bitpay/bitcore-lib/blob/master/lib/address.js#L278 trims trailing whitespace from the address string. This is not strict validation. Spaces are not valid characters in an address. Code relying on bitcore-lib to validate an address need to know that the exact string is a valid address.

gabegattis avatar Oct 10 '16 14:10 gabegattis

+1

afk11 avatar Dec 12 '16 16:12 afk11