From 734bd57a23ac46cdfca140377328366506308933 Mon Sep 17 00:00:00 2001 From: Stefan Thomas Date: Mon, 26 Sep 2011 21:28:45 +0100 Subject: [PATCH] Added copies of Crypto.util.* tools in Bitcoin.Util namespace. --- src/util.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/util.js b/src/util.js index d7c5409..f033cd3 100644 --- a/src/util.js +++ b/src/util.js @@ -95,3 +95,9 @@ Bitcoin.Util = { return Crypto.RIPEMD160(Crypto.SHA256(data, {asBytes: true}), {asBytes: true}); } }; + +for (var i in Crypto.util) { + if (Crypto.util.hasOwnProperty(i)) { + Bitcoin.Util[i] = Crypto.util[i]; + } +}