[Guide] PHP Check for valid Feathercoin address
-
I have adapted code to check for a valid Bitcoin address into a check for a valid Feathercoin address for the Market. I figured I would put it on the forum for safe keeping.
Include the code below and then use checkAddress() to check if it is a valid address. checkAddress() returns false if the address is not valid.
[code]//hex input must be in uppercase, with no leading 0x
define(“ADDRESSVERSION”,“0E”); //this is a hex byte
function decodeHex($hex)
{
$hex=strtoupper($hex);
$chars=“0123456789ABCDEF”;
$return=“0”;
for($i=0;$i -
Hi, sorry for digging up this topic, but can we have the end of the guide ?
:) very interested in it actualy. :)