From 4a358c9feeb6ba31498c8e58359f6fa7baaa19bc Mon Sep 17 00:00:00 2001 From: Iglocska Date: Thu, 15 Oct 2015 17:44:33 +0200 Subject: [PATCH] Removed junk --- app/Lib/Tools/BitCoinTool.php | 44 ----------------------------------- 1 file changed, 44 deletions(-) delete mode 100644 app/Lib/Tools/BitCoinTool.php diff --git a/app/Lib/Tools/BitCoinTool.php b/app/Lib/Tools/BitCoinTool.php deleted file mode 100644 index 1fdab1278..000000000 --- a/app/Lib/Tools/BitCoinTool.php +++ /dev/null @@ -1,44 +0,0 @@ -decodeBase58($address); - if ($decoded === false) return false; - - $d1 = hash("sha256", substr($decoded,0,21), true); - $d2 = hash("sha256", $d1, true); - - if(substr_compare($decoded, $d2, 21, 4)){ - return false; - } - return true; - } - function decodeBase58($input) { - $alphabet = "123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"; - - $out = array_fill(0, 25, 0); - for($i=0;$i