From 3738fb41ffdca695f4dd9b61a0cb7bbba689fe0c Mon Sep 17 00:00:00 2001 From: johnta0 <22534726+johnta0@users.noreply.github.com> Date: Fri, 21 Sep 2018 14:25:51 +0900 Subject: [PATCH] Fix comment: pubkey => pubHash --- lib/bitauth-common.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/bitauth-common.js b/lib/bitauth-common.js index 195ab2e..962e709 100644 --- a/lib/bitauth-common.js +++ b/lib/bitauth-common.js @@ -52,7 +52,7 @@ BitAuth.getSinFromPublicKey = function(pubkey) { // sha256 hash the pubkey var pubHash = crypto.createHash('sha256').update(pubkeyBuffer).digest(); - // get the ripemd160 hash of the pubkey + // get the ripemd160 hash of the pubHash var pubRipe = crypto.createHash('rmd160').update(pubHash).digest(); // add the version