From c2ce224d1b0120be317aaff46afa49365f3d0e83 Mon Sep 17 00:00:00 2001 From: Stefan Thomas Date: Fri, 17 Aug 2012 02:00:02 +0200 Subject: [PATCH] Remove debugging statements. Fixes #8. --- src/message.js | 14 -------------- src/transaction.js | 5 ----- 2 files changed, 19 deletions(-) diff --git a/src/message.js b/src/message.js index 22c8133..a2dabc0 100644 --- a/src/message.js +++ b/src/message.js @@ -67,17 +67,3 @@ Bitcoin.Message = (function () { return Message; })(); - -console.log("should be true:", Bitcoin.Message.verifyMessage('16vqGo3KRKE9kTsTZxKoJKLzwZGTodK3ce', - 'HPDs1TesA48a9up4QORIuub67VHBM37X66skAYz0Esg23gdfMuCTYDFORc6XGpKZ2/flJ2h/DUF569FJxGoVZ50=', - 'test message')); -console.log("should be false:", Bitcoin.Message.verifyMessage('16vqGo3KRKE9kTsTZxKoJKLzwZGTodK3ce', - 'HPDs1TesA48a9up4QORIuub67VHBM37X66skAYz0Esg23gdfMuCTYDFORc6XGpKZ2/flJ2h/DUF569FJxGoVZ50=', - 'test message 2')); -console.log("should be true:", Bitcoin.Message.verifyMessage('1GdKjTSg2eMyeVvPV5Nivo6kR8yP2GT7wF', - 'GyMn9AdYeZIPWLVCiAblOOG18Qqy4fFaqjg5rjH6QT5tNiUXLS6T2o7iuWkV1gc4DbEWvyi8yJ8FvSkmEs3voWE=', - 'freenode:#bitcoin-otc:b42f7e7ea336db4109df6badc05c6b3ea8bfaa13575b51631c5178a7')); -console.log("should be true:", Bitcoin.Message.verifyMessage('1Hpj6xv9AzaaXjPPisQrdAD2tu84cnPv3f', - 'INEJxQnSu6mwGnLs0E8eirl5g+0cAC9D5M7hALHD9sK0XQ66CH9mas06gNoIX7K1NKTLaj3MzVe8z3pt6apGJ34=', - 'testtest')); - diff --git a/src/transaction.js b/src/transaction.js index c4c876d..c06dc87 100644 --- a/src/transaction.js +++ b/src/transaction.js @@ -178,17 +178,12 @@ txTmp.ins = [txTmp.ins[inIndex]]; } - console.log(txTmp); var buffer = txTmp.serialize(); buffer = buffer.concat(Crypto.util.wordsToBytes([parseInt(hashType)]).reverse()); - console.log("signtx: "+Crypto.util.bytesToHex(buffer)); - var hash1 = Crypto.SHA256(buffer, {asBytes: true}); - console.log("sha256_1: ", Crypto.util.bytesToHex(hash1)); - return Crypto.SHA256(hash1, {asBytes: true}); };