From f51be92a7238e02ee26b805d91f489c849cbc0b8 Mon Sep 17 00:00:00 2001 From: root Date: Sun, 5 Jul 2020 20:21:41 +0000 Subject: [PATCH] fixed multisig bug as described in issues/212 --- js/coin.js | 9 ++++++++- sha1sum | 4 ++-- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/js/coin.js b/js/coin.js index ed4ddeb..8dd718d 100644 --- a/js/coin.js +++ b/js/coin.js @@ -1336,7 +1336,14 @@ return {'type':'segwit', 'signed':signed, 'signatures': sigs, 'script': Crypto.util.bytesToHex(this.ins[index].script.chunks[0]), 'value': value}; } else if (this.ins[index].script.chunks[0]==0 && this.ins[index].script.chunks[this.ins[index].script.chunks.length-1][this.ins[index].script.chunks[this.ins[index].script.chunks.length-1].length-1]==174) { // OP_CHECKMULTISIG // multisig script, with signature(s) included - return {'type':'multisig', 'signed':'true', 'signatures':this.ins[index].script.chunks.length-2, 'script': Crypto.util.bytesToHex(this.ins[index].script.chunks[this.ins[index].script.chunks.length-1])}; + sigcount = 0; + for(i=1; i=80 && this.ins[index].script.chunks[this.ins[index].script.chunks.length-1]==174) { // OP_CHECKMULTISIG // multisig script, without signature! return {'type':'multisig', 'signed':'false', 'signatures':0, 'script': Crypto.util.bytesToHex(this.ins[index].script.buffer)}; diff --git a/sha1sum b/sha1sum index ecb69ea..78cdf63 100644 --- a/sha1sum +++ b/sha1sum @@ -1,9 +1,9 @@ ----- Version 1.5 2020.06.03 ---- +---- Version 1.5 2020.07.05 ---- 77e4519962e2f6a9fc93342137dbb31c33b76b04 ./js/aes.js 3a09a8fc0cfe828b57fc798d668234d0490ee1a6 ./js/bootstrap-datetimepicker.min.js 253711c6d825de55a8360552573be950da180614 ./js/bootstrap.min.js 7708a3771dd2749807f2bfc41af407b68888ae5d ./js/coinbin.js -101544b32de9b5637edd38ea0da462bb25bab29a ./js/coin.js +e8a374661d3e0636b9948d34adcd81f6d69684cc ./js/coin.js 988565bc2cb402d63ed5c5fd7ff47c4278efc2c5 ./js/collapse.js 9ba5ede3d7f9d4c8fd623395f196adfdcf7e970f ./js/crypto-min.js f7c09f2f5a721371e7d478050119f7e2d58e3ef9 ./js/crypto-sha256-hmac.js