From 8471df731767080189c129f900d902e07efbf7a5 Mon Sep 17 00:00:00 2001 From: Kyle Drake Date: Thu, 6 Mar 2014 17:54:36 -0600 Subject: [PATCH] remove unused hex helpers --- src/base58.js | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/src/base58.js b/src/base58.js index 2382cb4..5390e7a 100644 --- a/src/base58.js +++ b/src/base58.js @@ -38,10 +38,6 @@ module.exports.encode = function (input) { return chars.reverse().join(''); }, -module.exports.encodeHex = function (input) { - return conv.bytesToHex(module.exports.encode(input)); -} - // decode a base58 string into a byte array // input should be a base58 encoded string // @return Array @@ -82,10 +78,6 @@ module.exports.decode = function (input) { return bytes; } -module.exports.decodeHex = function (input) { - return module.exports.decode(conv.hexToBytes(input)); -} - module.exports.checkEncode = function(input, vbyte) { vbyte = vbyte || 0; var front = [vbyte].concat(input); @@ -94,10 +86,6 @@ module.exports.checkEncode = function(input, vbyte) { return module.exports.encode(front.concat(checksum)); } -module.exports.checkEncodeHex = function (input, vbyte) { - return conv.bytesToHex(module.exports.encode(input)); -} - module.exports.checkDecode = function(input) { var bytes = module.exports.decode(input), front = bytes.slice(0,bytes.length-4), @@ -111,9 +99,3 @@ module.exports.checkDecode = function(input) { o.version = front[0]; return o; } - -module.exports.checkDecodeHex = function (input) { - return module.exports.checkDecode(conv.hexToBytes(input)); -} - -