Fix hashes

This commit is contained in:
Kagami Hiiragi 2015-01-05 16:41:34 +03:00
parent 2dd9efd1a6
commit 591134bd9a

View File

@ -12,11 +12,11 @@ exports.sha512 = function(buf) {
};
exports.sha256 = function(buf) {
return hash.sha256().update(buf).digest();
return new Buffer(hash.sha256().update(buf).digest());
};
exports.ripemd160 = function(buf) {
return hash.ripemd160().update(buf).digest();
return new Buffer(hash.ripemd160().update(buf).digest());
};
exports.randomBytes = function(size) {