Fix hashes
This commit is contained in:
parent
2dd9efd1a6
commit
591134bd9a
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user