From 7353511da3fe386ce3c7ad1e6eda7ed3a302627f Mon Sep 17 00:00:00 2001 From: ethers Date: Sat, 26 Jul 2014 20:51:06 -0700 Subject: [PATCH] make ripe160 preconditions be consistent like the other hashing functions --- util/util.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/util/util.js b/util/util.js index 40d72a017..a824d9c9c 100644 --- a/util/util.js +++ b/util/util.js @@ -40,9 +40,6 @@ var sha512hmac = exports.sha512hmac = function(data, key) { }; var ripe160 = exports.ripe160 = function(data) { - if (!Buffer.isBuffer(data)) { - throw new Error('arg should be a buffer'); - } if (process.browser) { return new Buffer(hashjs.ripemd160().update(data).digest()); }