From 5377f0746ff2b67ad74e55a16d2a5f8ac856db12 Mon Sep 17 00:00:00 2001
From: vub <vub@gmail.com>
Date: Thu, 10 Oct 2013 03:46:09 -0400
Subject: [PATCH] Hex private keys now work with Bitcoin.Key

---
 src/eckey.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/eckey.js b/src/eckey.js
index cd699f9..e7e3c5b 100644
--- a/src/eckey.js
+++ b/src/eckey.js
@@ -43,7 +43,7 @@ var ECKey = function (input) {
     } else {
       // hex string?
       // Prepend zero byte to prevent interpretation as negative integer
-      this.priv = BigInteger.fromByteArrayUnsigned(Crypto.util.hexToBytes(input));
+      this.priv = BigInteger.fromByteArrayUnsigned(conv.hexToBytes(input));
     }
   }
   else if (input.constructor == [].constructor) {