Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: Envrin on April 12, 2015, 04:47:39 AM



Title: Multisig Signature Help
Post by: Envrin on April 12, 2015, 04:47:39 AM

Wondering if anyone can help.  I can sign 2-of-2 txs no problem, but having an issue with 2-of-3.  Below is an example transaction I put together.  I have the signatures for pub keys #1 and #3 in the redeem script.  I don't know, what am I supposed to put for that second signature I don't have?  I've tried everything from leaving it blank, to simply '00' to '0100', etc.  Nothing works, as bitcoin core always throws some type of error upon sending it.

Any help would be greatly appreciated!


Code:
01000000
01
61e84f63e20b96196e55471bc9cf7def0f6ed8a371d3d9bd6e8be2906dd9ba39
01000000

-----------------------------
------ START SIGNATURE ------
-----------------------------

fdff00 -- (length = 255)

00

49 -- (length = 73)
30 46 02 21 00 c6 5c b5 3c 72 81 b0 29 fd ca 1e b3 08 ba 2d
22 e2 b6 2c 70 14 4d da 9a 84 4b f1 28 d5 98 6a 15 02 21 00
81 ef a8 b1 bd f3 9e 6d 10 5b ef 81 13 fc 73 3d e1 22 4f 70
69 b6 66 0c a2 c0 37 40 75 08 c4 14 01

01  <----  This I don't know.  2 of 3 multisig, don't have this signature, so what goes here?  Is this right?
00

47 -- (length = 71)
30 44 02 20 16 b9 d1 69 4e 16 09 91 73 68 42 35 0e b3 dd 54
c0 b1 c7 47 a2 20 c5 1f 53 38 b1 9e d9 b8 f9 21 02 20 00 79
13 70 d4 3b 31 fc ff e2 72 10 57 12 31 68 69 8d f6 12 9b d8
02 06 0e bb ba 99 54 84 3c 8c 01

69 -- (length = 105) <-- Redeem Script
52
21
032cc9c4ba33a552c2c3832f3a15f8b1f9f4c408e474bdc88f0e4c89ce4e0549f3 -- Pubkey 1

21
027f1f6e2843334718c78ba6bb3583a753394cfed9156693d1d8007019d60d1c7a -- Pubkey 2

21
0335678e5245256b92f113d54c9eae0c5a00e9d8b98bc2aa558bf3389e20ca705c -- Pubkey 3
53
ae
-----------------------------
------ END SIGNATURE   ------
-----------------------------

ffffffff

-- Output
0170640800000000001976a914daab284e3fcf5b99da089831ff29f3429a51e40b88ac00000000


Title: Re: Multisig Signature Help
Post by: Envrin on April 12, 2015, 05:19:17 AM
Nevermind, thanks to the help of andytoshi, I got it figured.  Was missing a 0x4c at the beginning of the redeem script.