Hello,
i am trying to sign a raw transaction with the Electrum Windows client (version 2.3.2).
I created a 2-2 multisig address with a public key from my Electrum and one public key from an address NOT in my Electrum wallet. Then I put some btc into the address:
The address: 3QzwNoQjX8VFqM6m2Ks1fgWiLV7auoCFEN
A raw transaction is then created outside of Electrum to transfer funds out of the multisig-address:
010000000115822adc95d3abfa61e0643397966d5cfdc2311a32bdbad467aa6ec321bd774600000
0006752210391435d6f2b5ac4fd4c26b66272233b199d906fbf0a6e5241e8f7f7a93b3833884104
10a558019d72affddb3facddcd36929be9323c5e8701f602fd21c4c1c340888a90040455b3adb91
62ac0d09f5e5a5cd77245a927c13bfaf6310f0f047105a9c452aeffffffff01f695000000000000
1976a9148e27e188f5899fdf542967c9ff3d0ba5d883bbb888ac00000000
Here comes the problem. I am unable to sign the raw transaction with Electrum (remember: one of my address' public key created the multisig address). When I load the transaction via the "tools" menu I get "transaction unrelated to wallet" and when I try to sign it via the console with "signtransaction(tx)" I get the same raw transaction back. When I use the additional privkey parameter of the signtransaction() function I receive an error:
File "\lib\commands.py", line 202, in signtransaction
pubkey = bitcoin.public_key_from_private_key(sec)
NameError: global name 'sec' is not defined
Is this a bug? Is it possible to sign a transaction like this via Electrum console?