Struggling with Multisig Transfers

+1 vote
Can some one please help fix this issue? What in this output tells me it is signed or not signed?

Details of my Decoderawtransaction using Hes Blob received from Signrawtransaction

Step - 1

{

    "txid" : "c37c7b7cf718ec405660d643eda7441a5d375d59cb7d5dca62de425217446f5c",

    "version" : 1,

    "locktime" : 0,

    "vin" : [

        {

            "txid" : "b7927c38556d3d81c2cfc8fa2e6a9ae227e3b4d2114502d14b55ae2881

a1bc63",

            "vout" : 0,

            "scriptSig" : {

                "asm" : "",

                "hex" : ""

            },

            "sequence" : 4294967295

        }

    ],

    "vout" : [

        {
            "value" : 0.00000000,

            "n" : 0,

            "scriptPubKey" : {

                "asm" : "03d17cef9b4351b851e0df0810896e6233abb768286196e3f13b7b4

6bab959cb1a OP_CHECKSIG 73706b7118ebc36b61a21446d907c174ca9a08b1d007000000000000

 OP_DROP",

                "hex" : "2103d17cef9b4351b851e0df0810896e6233abb768286196e3f13b7

b46bab959cb1aac1c73706b7118ebc36b61a21446d907c174ca9a08b1d00700000000000075",

                "reqSigs" : 1,

                "type" : "pubkey",

                "addresses" : [

                    "197GmEBnoQduSkwbTY7ovK9EtKvxxpFwxsEYFs"

                ]

            },

            "assets" : [

                {

                    "name" : "asset1",

                    "issuetxid" : "b1089aca74c107d94614a2616bc3eb1804e601f8c5a1f

a9a3f76727874253536",

                    "assetref" : "288-266-2225",

                    "qty" : 20.00000000,

                    "raw" : 2000,

                    "type" : "transfer"

                }

            ],

            "permissions" : [

            ],

            "items" : [

            ]

        },

        {

            "value" : 0.00000000,

            "n" : 1,

            "scriptPubKey" : {

                "asm" : "OP_HASH160 43220429cd90eb887cb959a84b8705ddf28419d8 OP_

EQUAL 73706b7118ebc36b61a21446d907c174ca9a08b1401f000000000000 OP_DROP",

                "hex" : "a91443220429cd90eb887cb959a84b8705ddf28419d8871c73706b7

118ebc36b61a21446d907c174ca9a08b1401f00000000000075",

                "reqSigs" : 1,

                "type" : "scripthash",

                "addresses" : [

                    "4959EiF1S9ecS7sXQ1fq4jKEmzhVQkbthZ86iw"

                ]

            },

            "assets" : [

                {

                    "name" : "asset1",

                    "issuetxid" : "b1089aca74c107d94614a2616bc3eb1804e601f8c5a1f

a9a3f76727874253536",

                    "assetref" : "288-266-2225",

                    "qty" : 80.00000000,

                    "raw" : 8000,

                    "type" : "transfer"

                }

            ],

            "permissions" : [

            ],

            "items" : [

            ]

        },

        {

            "value" : 0.00000000,

            "n" : 2,

            "scriptPubKey" : {

                "asm" : "OP_HASH160 43220429cd90eb887cb959a84b8705ddf28419d8 OP_

EQUAL",

                "hex" : "a91443220429cd90eb887cb959a84b8705ddf28419d887",

                "reqSigs" : 1,

                "type" : "scripthash",

                "addresses" : [

                    "4959EiF1S9ecS7sXQ1fq4jKEmzhVQkbthZ86iw"

                ]

            },

            "assets" : [

            ],

            "permissions" : [

            ],

            "items" : [

            ]
        },

        {

            "value" : 0.00000000,

            "n" : 3,

            "scriptPubKey" : {

                "asm" : "OP_RETURN 5554584f732046545721",

                "hex" : "6a0a5554584f732046545721",

                "type" : "nulldata"
            },

            "assets" : [

            ],

            "permissions" : [

            ],

            "items" : [

            ]
        }
    ],

    "data" : [

        "5554584f732046545721"
    ]
}
related to an answer for: Signrawtransaction issue
asked Jan 19, 2017 by rahulkumargr

1 Answer

0 votes

Look in the asm field of the scriptSig of the vin to see how complete the signature is. A complete 2-of-2 multisig with have four parts - 0 (which is ignored), two signatures and one "redeem script".

The problem you're having may be that you didn't use addmultisigaddress on the nodes to create the multi signature address, but instead used createmultisig then importaddress. In that case the wallets won't know the redeemScript for the multisignature address, which is required when signing its inputs.

There are two workarounds for this. The easy one is to call addmultisigaddress even after the address has been added to the wallet using importaddress.

The harder one is to pass the redeemScript alongside the txid, vout and scriptPubKey for the output being spent in the parent output list parameter for signrawtransaction. The redeemScript was one of the fields returned from the createmultisig call.

answered Jan 20, 2017 by MultiChain
...