Skip to content

Commit c2ce224

Browse files
committed
Remove debugging statements. Fixes bitcoinjs#8.
1 parent 49114d6 commit c2ce224

File tree

2 files changed

+0
-19
lines changed

2 files changed

+0
-19
lines changed

src/message.js

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -67,17 +67,3 @@ Bitcoin.Message = (function () {
6767

6868
return Message;
6969
})();
70-
71-
console.log("should be true:", Bitcoin.Message.verifyMessage('16vqGo3KRKE9kTsTZxKoJKLzwZGTodK3ce',
72-
'HPDs1TesA48a9up4QORIuub67VHBM37X66skAYz0Esg23gdfMuCTYDFORc6XGpKZ2/flJ2h/DUF569FJxGoVZ50=',
73-
'test message'));
74-
console.log("should be false:", Bitcoin.Message.verifyMessage('16vqGo3KRKE9kTsTZxKoJKLzwZGTodK3ce',
75-
'HPDs1TesA48a9up4QORIuub67VHBM37X66skAYz0Esg23gdfMuCTYDFORc6XGpKZ2/flJ2h/DUF569FJxGoVZ50=',
76-
'test message 2'));
77-
console.log("should be true:", Bitcoin.Message.verifyMessage('1GdKjTSg2eMyeVvPV5Nivo6kR8yP2GT7wF',
78-
'GyMn9AdYeZIPWLVCiAblOOG18Qqy4fFaqjg5rjH6QT5tNiUXLS6T2o7iuWkV1gc4DbEWvyi8yJ8FvSkmEs3voWE=',
79-
'freenode:#bitcoin-otc:b42f7e7ea336db4109df6badc05c6b3ea8bfaa13575b51631c5178a7'));
80-
console.log("should be true:", Bitcoin.Message.verifyMessage('1Hpj6xv9AzaaXjPPisQrdAD2tu84cnPv3f',
81-
'INEJxQnSu6mwGnLs0E8eirl5g+0cAC9D5M7hALHD9sK0XQ66CH9mas06gNoIX7K1NKTLaj3MzVe8z3pt6apGJ34=',
82-
'testtest'));
83-

src/transaction.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -178,17 +178,12 @@
178178
txTmp.ins = [txTmp.ins[inIndex]];
179179
}
180180

181-
console.log(txTmp);
182181
var buffer = txTmp.serialize();
183182

184183
buffer = buffer.concat(Crypto.util.wordsToBytes([parseInt(hashType)]).reverse());
185184

186-
console.log("signtx: "+Crypto.util.bytesToHex(buffer));
187-
188185
var hash1 = Crypto.SHA256(buffer, {asBytes: true});
189186

190-
console.log("sha256_1: ", Crypto.util.bytesToHex(hash1));
191-
192187
return Crypto.SHA256(hash1, {asBytes: true});
193188
};
194189

0 commit comments

Comments
 (0)