bip151: remove useless slice.

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

View File

@ -212,7 +212,6 @@ BIP151Stream.prototype.encryptSize = function encryptSize(size) {
*/
BIP151Stream.prototype.decryptSize = function decryptSize(data) {
data = data.slice(0, 4);
this.chacha.encrypt(data);
return data.readUInt32LE(0, true);
};