bip151: minor.

This commit is contained in:
Christopher Jeffrey 2016-07-27 00:50:50 -07:00
parent 2bd90910b4
commit 6720ecc2c8
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -202,8 +202,7 @@ BIP151Stream.prototype.getPublicKey = function getPublicKey() {
BIP151Stream.prototype.encryptSize = function encryptSize(size) {
var data = new Buffer(4);
data.writeUInt32LE(size, 0, true);
this.chacha.encrypt(data);
return data;
return this.chacha.encrypt(data);
};
/**