creating Multisig and spending - issues

+1 vote

Hi,
I created a multisig address with 3 addresses and followed the steps below, getting error message.
appreciate if anyone helpme point whats the issue, any documentation on mulitsig address creation and steps to implement signing transactions would  be great as well.

Node 2
---------
chain1: getaddresses true
[{  "address" : "1LfAhMnohKtXgeR4RNjsmxPVd5vHTMCm5padph",
        "ismine" : true,
        "iswatchonly" : false,
        "isscript" : false,
        "pubkey" : "02f9c277201499ad0ce23c7b79df44664d21a2edb8304409aa84cfa752a9b9c367",
        "iscompressed" : true,
        "account" : ""
    }
]

Node 1
-------------
getaddresses
{"method":"getaddresses","params":[],"id":1,"chain_name":"chain1"}
[
    "1PAeYSRGRzg2SMvn41QkYfPdbv7JD7fzXpSPwt",
    "1TizPBTAN2CqeJaqA9tUe6ecmWhdAJeUP1vy9k",
    "1aRSuHDm5Ludcj7LX7Ayau5DMxAYYm63rEKtju",
]
chain1: createmultisig 2 "[\"1aRSuHDm5Ludcj7LX7Ayau5DMxAYYm63rEKtju\",\"1TiqA9tUe6ecmWhdAJeUP1vy9k\",\"02f9c277201499ad0ce23c7b79df44664d21a2edb8304409aa84cfa752a9b9c367\"]""                                                                 

{
    "address" : "43RFdrdKdmrDN8G9VihQJpEs7DtzF3y1m9BV2G",
    "redeemScript" : "522102c1b01d28f6f4f6e9338eaac0ace6507ee63b245bad1c29727a59dfd9f9e0d07c2102d9dec8f14c67a1793c2c0591dab7f425f748fee32a8e926f280971b4d9281b5d2102f9c277201499ad0ce23c7b79df44664d21a2edb8304409aa84cfa752a9b9c36753ae"
}

chain1: preparelockunspent "{\"192-266-28433\":10}"
{
    "txid" : "bdaba195cc8da2b979f9e583105f6f984497c986ad327f7ac7c553a04979613b",
    "vout" : 0
}
chain1: createrawtransaction '[{"txid":"bdaba195cc8da2b979f9e583105f6f984497c986adac7c553a04979613b","vout":0}]' '{"43RFdrdKdmrDN8G9VihQJpEs7DtzF3y1m9BV2G":{"asset1":90.0}}''

01000000013b617949a053c5c77a7f32ad86c99744986f5f1083e5f979b9a28dcc95a1abbd0000000000ffffffff0100000000000000002fa914194e040f91303597ab027eeebc4abf88f4263a8b871673706b71c00000000a010000116f28230000000000007500000000                                              

-------------

chain1: signrawtransaction 01000000013b617949a053c5c77a7f32ad86c99744986f5f1083e5f979b9a28dcc95a1abbd0000000000ffffffff0100000000000000002fa914194e040f91303597ab027eeebc4abf88f4263a8b871673706b71c00000000a010000116f28230000000000007500000000
{
    "hex" : "01000000013b617949a053c5c77a7f32ad86c99744986f5f1083e5f979b9a28dcc95a1abbd000000006b483045022100ddb5b64e0d56ed38610862650d7430648ba1c9773333ef7608e4f12ff3cb83e302201df6beb3c045ee750118b68dc1aa35fb39c9581351da076a4bff738ac9d9bd340121039a31b360b0ade75aa53bcac434ca26b1b02c53b02764bf9f6cd460d85e8f2056ffffffff0100000000000000002fa914194e040f91303597ab027eeebc4abf88f4263a8b871673706b71c00000000a010000116f28230000000000007500000000",
    "complete" : true
}
-----------------------------------------

chain1: sendrawtransaction 01000000013b617949a053c5c77a7f32ad86c99744986f5f1083e5f979b9a28dcc95a1abbd000000006b483045022100ddb5b64e0d56ed38610862650d7430648ba1c9773333ef7608e4f12ff3cb83e302201df6beb3c045ee750118b68dc1aa35fb39c9581351da076a4bff738ac9d9bd340121039a31b360b0ade75aa53bcac434ca26b1b02c53b02764bf9f6cd460d85e8f2056ffffffff0100000000000000002fa914194e040f91303597ab027eeebc4abf88f4263a8b871673706b71c00000000a010000116f28230000000000007500000000
{"method":"sendrawtransaction","params":["01000000013b617949a053c5c77a7f32ad86c99744986f5f1083e5f979b9a28dcc95a1abbd000000006b483045022100ddb5b64e0d56ed38610862650d7430648ba1c9773333ef7608e4f12ff3cb83e302201df6beb3c045ee750118b68dc1aa35fb39c9581351da076a4bff738ac9d9bd340121039a31b360b0ade75aa53bcac434ca26b1b02c53b02764bf9f6cd460d85e8f2056ffffffff0100000000000000002fa914194e040f91303597ab027eeebc4abf88f4263a8b871673706b71c00000000a010000116f28230000000000007500000000"],"id":1,"chain_name":"chain1"}

error code: -26
error message:
64: One of the outputs doesn't have receive permission
chain1:
---------------
All the addresses involved in the multisig creation has send,receive permission.
thanks in advance
~Sanjeev

 

asked Sep 14, 2016 by sanmadhavan

1 Answer

0 votes

The multisig address 43RFdrdKdmrDN8G9VihQJpEs7DtzF3y1m9BV2G also needs receive permission. With a P2SH (pay-to-scripthash) address like this, there is no way for other nodes to know the individual addresses from which the P2SH was formed, so it needs to be explicitly granted permission.

answered Sep 15, 2016 by MultiChain
Thanks for the response, if I remember correctly, I had issues receive permission to the multisig address before initiating these steps. I had to cut-down the evidence in the notes as the question character limit was 8000 bytes.
however, i noticed that the multisig address in question was not visible in my chain anymore and there was a new address.

my previous command:
-----------------------------------
chain1: sendrawtransaction 01000000013b617949a053c5c77a7f32ad86c99744986f5f1083e5f979b9a28dcc95a1abbd000000006b483045022100ddb5b64e0d56ed38610862650d7430648ba1c9773333ef7608e4f12ff3cb83e302201df6beb3c045ee750118b68dc1aa35fb39c9581351da076a4bff738ac9d9bd340121039a31b360b0ade75aa53bcac434ca26b1b02c53b02764bf9f6cd460d85e8f2056ffffffff0100000000000000002fa914194e040f91303597ab027eeebc4abf88f4263a8b871673706b71c00000000a010000116f28230000000000007500000000
{"method":"sendrawtransaction","params":["01000000013b617949a053c5c77a7f32ad86c99744986f5f1083e5f979b9a28dcc95a1abbd000000006b483045022100ddb5b64e0d56ed38610862650d7430648ba1c9773333ef7608e4f12ff3cb83e302201df6beb3c045ee750118b68dc1aa35fb39c9581351da076a4bff738ac9d9bd340121039a31b360b0ade75aa53bcac434ca26b1b02c53b02764bf9f6cd460d85e8f2056ffffffff0100000000000000002fa914194e040f91303597ab027eeebc4abf88f4263a8b871673706b71c00000000a010000116f28230000000000007500000000"],"id":1,"chain_name":"chain1"}

error code: -26
error message:
64: One of the outputs doesn't have receive permission
chain1: getaddresses
{"method":"getaddresses","params":[],"id":1,"chain_name":"chain1"}

[
    "1PAeYSRGRzg2SMvn41QkYfPdbv7JD7fzXpSPwt",
    "1TizPBTAN2CqeJaqA9tUe6ecmWhdAJeUP1vy9k",
    "1aRSuHDm5Ludcj7LX7Ayau5DMxAYYm63rEKtju",
    "4QJsM1po6gJMpiKzxaNzH7wJzintgogyUJERXW"
]
chain1:
---------- new multisig address visible , oroginal multisig address created was "43RFdrdKdmrDN8G9VihQJpEs7DtzF3y1m9BV2G"

I tried to recreate the screnario again today but was unsuccessful.  will be trying again.

meanwhile do you have documentation on multisig  usage with sample?
any pointers would be much appreciated.
thanks
~Sanjeev
We don't have any of our own materials on multisig, but you can read any materials on bitcoin multisig - it will work exactly the same in MultiChain (except for the permissioning of course).
...