bip151: minor.
This commit is contained in:
parent
2bd90910b4
commit
6720ecc2c8
@ -202,8 +202,7 @@ BIP151Stream.prototype.getPublicKey = function getPublicKey() {
|
|||||||
BIP151Stream.prototype.encryptSize = function encryptSize(size) {
|
BIP151Stream.prototype.encryptSize = function encryptSize(size) {
|
||||||
var data = new Buffer(4);
|
var data = new Buffer(4);
|
||||||
data.writeUInt32LE(size, 0, true);
|
data.writeUInt32LE(size, 0, true);
|
||||||
this.chacha.encrypt(data);
|
return this.chacha.encrypt(data);
|
||||||
return data;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user