From adb7b28795af5962243d7b77bd36f37d95ca79af Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Mon, 27 Jun 2016 07:13:38 -0700 Subject: [PATCH] bip151: fix encack. --- lib/bcoin/bip151.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/bcoin/bip151.js b/lib/bcoin/bip151.js index ec75b88e..f25eb637 100644 --- a/lib/bcoin/bip151.js +++ b/lib/bcoin/bip151.js @@ -167,9 +167,9 @@ BIP151.prototype.encack = function encack(data) { } if (i === publicKey.length) - this.init(publicKey); - else this.rekey(); + else + this.init(publicKey); return this; };