Hi,
We are encountering the following error during a sendrawtransaction call:
ConnectInputs failed: mandatory-script-verify-flag-failed (Script failed an OP_CHECKSIGVERIFY operation)
We are signing the rawtx off-node using Javascript. It seems to happen for a particular from-address only. Other addresses don't encounter the same issue.
The transaction being sent involves writing to a stream. Sample decoded raw tx that encounters this issue:
{
"data": [
"7b2266726f6d5f61646472657373223a22313633665047556e7a3739624d675555636a537a6e6b68754a67397970664c357653222c22746f5f61646472657373223a2231467a675554575739456169764e3632396b43694b33646a5a69457376324a4b5944222c227061796c6f6164223a22353236663739323737333230373436353733373432303664363537333733363136373635222c226578706972795f64617465223a22222c226b657973223a7b7d7d"
],
"locktime": 0,
"txid": "f47a7bd5e32e49b24fd8faf364a81e1ea34b8f5524204810eb7989a84f19b2ec",
"version": 1,
"vin": [
{
"scriptSig": {
"asm": "",
"hex": ""
},
"sequence": 4294967295,
"txid": "38edc8652a9685c6448a0017b843718b6b8c9ee1d17a4b663224e31510d34b60",
"vout": 0
}
],
"vout": [
{
"assets": [],
"items": [
{
"createtxid": "72e857455a4a3ea43ed1920080130f811514b756439abd8d348dfbf7c4ebd178",
"data": "7b2266726f6d5f61646472657373223a22313633665047556e7a3739624d675555636a537a6e6b68754a67397970664c357653222c22746f5f61646472657373223a2231467a675554575739456169764e3632396b43694b33646a5a69457376324a4b5944222c227061796c6f6164223a22353236663739323737333230373436353733373432303664363537333733363136373635222c226578706972795f64617465223a22222c226b657973223a7b7d7d",
"key": "1FzgUTWW9EaivN629kCiK3djZiEsv2JKYD",
"name": "sharedtxns",
"publishers": [],
"streamref": "3-1195-59506",
"type": "stream"
}
],
"n": 0,
"permissions": [],
"scriptPubKey": {
"asm": "73706b65810f13800092d13ea43e4a5a4557e872 OP_DROP 73706b6b31467a675554575739456169764e3632396b43694b33646a5a69457376324a4b5944 OP_DROP OP_RETURN 7b2266726f6d5f61646472657373223a22313633665047556e7a3739624d675555636a537a6e6b68754a67397970664c357653222c22746f5f61646472657373223a2231467a675554575739456169764e3632396b43694b33646a5a69457376324a4b5944222c227061796c6f6164223a22353236663739323737333230373436353733373432303664363537333733363136373635222c226578706972795f64617465223a22222c226b657973223a7b7d7d",
"hex": "1473706b65810f13800092d13ea43e4a5a4557e872752673706b6b31467a675554575739456169764e3632396b43694b33646a5a69457376324a4b5944756a4cb37b2266726f6d5f61646472657373223a22313633665047556e7a3739624d675555636a537a6e6b68754a67397970664c357653222c22746f5f61646472657373223a2231467a675554575739456169764e3632396b43694b33646a5a69457376324a4b5944222c227061796c6f6164223a22353236663739323737333230373436353733373432303664363537333733363136373635222c226578706972795f64617465223a22222c226b657973223a7b7d7d",
"type": "nulldata"
},
"value": 0
},
{
"assets": [],
"items": [],
"n": 1,
"permissions": [],
"scriptPubKey": {
"addresses": [
"163fPGUnz79bMgUUcjSznkhuJg9ypfL5vS"
],
"asm": "OP_DUP OP_HASH160 3759808ad53db7f3801a04923ce265ffde036fe0 OP_EQUALVERIFY OP_CHECKSIG",
"hex": "76a9143759808ad53db7f3801a04923ce265ffde036fe088ac",
"reqSigs": 1,
"type": "pubkeyhash"
},
"value": 0
}
]
}
Any advice on what we should be looking into?