bip151: fix encack.

This commit is contained in:
Christopher Jeffrey 2016-06-27 07:13:38 -07:00
parent b74bda623f
commit adb7b28795
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -167,9 +167,9 @@ BIP151.prototype.encack = function encack(data) {
} }
if (i === publicKey.length) if (i === publicKey.length)
this.init(publicKey);
else
this.rekey(); this.rekey();
else
this.init(publicKey);
return this; return this;
}; };