I have 3 private keys (a,b,c) which belong to an address (2 of 3) from which I want to spend funds using RPC commands.
I´ve started with generating the redeemScript using
createmultisig() and the pub keys which I have generated from the 3 priv Keys (using bitwasp). As the result returns the correct address this step seems to be correct.
After importing the address to my node and rescanning the blockchain I execute
listunspend() to get the unspend outputs for my rawtransaction.
Now I generate the raw tx using
Here the result:
Now I start with signing this raw transaction
The result of this signing process is used for the second step
The first signing step returns
"Operation not valid with the current stack size" which, as far as I know is correct if a multisig address is involved and not enough keys have signed the tx.
The second step returns
"Signature must be zero for failed CHECK(MULTI)SIG operation" which I don´t understand. What's going wrong here?
Even if I change the used priv keys and use the second or third key for the first signing step and one other for the second the error still persits. Am I missing a thing?