Live data from Hacker News

Validate Bitcoin, Ethereum, Litecoin and other popular cryptocurrency addresses

github.com

1–10 of 11 posts

Re: Validate Bitcoin, Ethereum, Litecoin and other popular cryptocurrency addresses

#3
Should put a disclaimer in the README that this package doesn't validate checksums. Doesn't make it useless, just something to be aware of before deciding to use it. For example, if you want to ensure that a user entered a valid Bitcoin address, validating the checksum goes a lot further than a simple regex.

Re: Validate Bitcoin, Ethereum, Litecoin and other popular cryptocurrency addresses

#4
post #3

Should put a disclaimer in the README that this package doesn't validate checksums. Doesn't make it useless, just something to be aware of before deciding to use it. For example, if you want to ensure that a user entered a valid Bitcoin address, validating the checksum goes a lot further than a simple regex.

Exactly. A bit surprising that such a rudimentary lib reaches HN frontpage...

Re: Validate Bitcoin, Ethereum, Litecoin and other popular cryptocurrency addresses

#5
post #4
post #3

Should put a disclaimer in the README that this package doesn't validate checksums. Doesn't make it useless, just something to be aware of before deciding to use it. For example, if you want to ensure that a user entered a valid Bitcoin address, validating the checksum goes a lot further than a simple regex.

Exactly. A bit surprising that such a rudimentary lib reaches HN frontpage...

Agreed. This library is literally a collection of regexes.
Post reply on HN