Bitcoin/address validation: Difference between revisions

Content deleted Content added
Grondilu (talk | contribs)
mNo edit summary
Grondilu (talk | contribs)
m actually RIPEMD-160 is not needed for address validation
Line 3: Line 3:
Write a program that takes a [[wp:bitcoin|bitcoin address]] as argument, and checks whether or not this address is valid. The program can either return a boolean value or throw an exception when not valid.
Write a program that takes a [[wp:bitcoin|bitcoin address]] as argument, and checks whether or not this address is valid. The program can either return a boolean value or throw an exception when not valid.


You can use digest libraries for [[SHA-256]] and [[RIPEMD-160]].
You can use a digest library for [[SHA-256]].


==Unix shell==
==Unix shell==