Bitcoin/address validation: Difference between revisions
adding valid address example.
(corrections, reformulation) |
(adding valid address example.) |
||
Line 15:
You can use a digest library for [[SHA-256]].
Here is an example of a bitcoin address:
1AGNa15ZQXAZUgFiqJ2i7Z2DPU2J6hW62i
It does not belong to anyone. It is part of the test suite of the bitcoin software. You can change a few characters in this string and check that it will fail the test.
''extra credit'': allow your code to deal with [http://bitcoin.stackexchange.com/questions/3059/what-is-a-compressed-bitcoin-key compressed keys]
|