signrawtransactionwithkey get me confusing error message even when hash160(redeemScript) != scriptPubKey.
Obviously hash 160 (redeemScript)! = ScriptPubKey
If so, why do not give me a better message?
0signrawtransactionwithkey "0200000001cfe62b9f1c52bc2998f9a0e6d6ee35430c93ec653d5691935178147a43090fee0000000000ffffffff01f0afd320766191d4c5c088ac00000000" "[\"cSXHtKRXWnCLWhuie8WC13cKF3qdnKL8vG3BiRpxgCXZkK2CHe9u\"]" "[{\"txid\":\"ee0f09437a1478519391563d65ec930c4335eed6e6a0f99829bc521c9f2be6cf\",\"vout\":0,\"scriptPubKey\":\"a914111111111111111111111111111111111111111187\",\"redeemScript\":\"5221033d9aecbced8e776c03d283f6c0d64c6a301ad142d74d500fe8860c9b362fa4932102a4df3cb4e5286e180b7c68e323c778e32350a604d4f4a74c290d1c60c721687a52ae\"}]"
1{
2 "hex": "0200000001cfe62b9f1c52bc2998f9a0e6d6ee35430c93ec653d5691935178147a43090fee0000000000ffffffff01f0a29a3b000000001976a9146eeff5b6a0960be69ad0941fd320766191d4c5c088ac00000000",
3 "complete": false,
4 "errors": [
5 {
6 "txid": "ee0f09437a1478519391563d65ec930c4335eed6e6a0f99829bc521c9f2be6cf",
7 "vout": 0,
8 "witness": [
9 ],
10 "scriptSig": "",
11 "sequence": 4294967295,
12 **"error": "Unable to sign input, invalid stack size (possibly missing key)"**
13 }
14 ]
15}
16
17signrawtransactionwithkey "0200000001cfe62b9f1c52bc2998f9a0e6d6ee35430c93ec653d5691935178147a43090fee0000000000ffffffff01f0afd320766191d4c5c088ac00000000" "[\"cSXHtKRXWnCLWhuie8WC13cKF3qdnKL8vG3BiRpxgCXZkK2CHe9u\"]" "[{\"txid\":\"ee0f09437a1478519391563d65ec930c4335eed6e6a0f99829bc521c9f2be6cf\",\"vout\":0,\"scriptPubKey\":\"a914648a73e6a0db686b547a66b7b38f3f7af61f50ae87\",\"redeemScript\":\"52211111111111111111111111111111111111111111111111111111111111111111112102a4df3cb4e5286e180b7c68e323c778e32350a604d4f4a74c290d1c60c721687a52ae\"}]"
18{
19 "hex": "0200000001cfe62b9f1c52bc2998f9a0e6d6ee35430c93ec653d5691935178147a43090fee0000000000ffffffff01f0a29a3b000000001976a9146eeff5b6a0960be69ad0941fd320766191d4c5c088ac00000000",
20 "complete": false,
21 "errors": [
22 {
23 "txid": "ee0f09437a1478519391563d65ec930c4335eed6e6a0f99829bc521c9f2be6cf",
24 "vout": 0,
25 "witness": [
26 ],
27 "scriptSig": "",
28 "sequence": 4294967295,
29 **"error": "Unable to sign input, invalid stack size (possibly missing key)"**
30 }
31 ]
32}
33
34signrawtransactionwithkey "0200000001cfe62b9f1c52bc2998f9a0e6d6ee35430c93ec653d5691935178147a43090fee0000000000ffffffff01f0afd320766191d4c5c088ac00000000" "[\"cSXHtKRXWnCLWhuie8WC13cKF3qdnKL8vG3BiRpxgCXZkK2CHe9u\"]" "[{\"txid\":\"ee0f09437a1478519391563d65ec930c4335eed6e6a0f99829bc521c9f2be6cf\",\"vout\":0,\"scriptPubKey\":\"a914648a73e6a0db686b547a66b7b38f3f7af61f50ae87\",\"redeemScript\":\"5221033d9aecbced8e776c03d283f6c0d64c6a301ad142d74d500fe8860c9b362fa4932111111111111111111111111111111111111111111111111111111111111111111152ae\"}]"
35{
36 "hex": "0200000001cfe62b9f1c52bc2998f9a0e6d6ee35430c93ec653d5691935178147a43090fee0000000000ffffffff01f0a29a3b000000001976a9146eeff5b6a0960be69ad0941fd320766191d4c5c088ac00000000",
37 "complete": false,
38 "errors": [
39 {
40 "txid": "ee0f09437a1478519391563d65ec930c4335eed6e6a0f99829bc521c9f2be6cf",
41 "vout": 0,
42 "witness": [
43 ],
44 "scriptSig": "",
45 "sequence": 4294967295,
46 "error": "Unable to sign input, invalid stack size (possibly missing key)"
47 }
48 ]
49}
<What behavior did you expect?> “error”: “Unable to sign input, the scriptPubKey does not match redeemScript”
<What version of Bitcoin Core are you using, where did you get it (website, self-compiled, etc)? >
0./bitcoind --version
1Bitcoin Core Daemon version v0.16.99.0-81d0d565a
2Copyright (C) 2009-2018 The Bitcoin Core developers