This commit is contained in:
cubedro 2015-04-07 19:34:00 +03:00
parent b3d87fa542
commit 97791570f9
1 changed files with 0 additions and 29 deletions

View File

@ -494,33 +494,4 @@ Node.prototype.stop = function()
web3.reset();
}
function directICAP(address)
{
if (address[0] != 0)
return '';
var d = toBase36(address);
while(d.length < 30)
d = "0" + d;
return d;
// return iban("XE", d);
}
function toBase36(hex)
{
var c_alphabet = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ";
var a = hex.length;
var ret = '';
for(; a > 0; a = a/36){
ret = c_alphabet[a%36] + ret;
console.log('a: ', a);
console.log('ret: ', ret);
}
return ret;
}
module.exports = Node;