Bitcoin Forum
July 28, 2024, 09:31:17 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1]
1  Bitcoin / Electrum / Re: issue "operation not valid with the current stack size" on: August 16, 2021, 08:55:48 PM
Leo's guess was right, now that you have posted the transaction it lacks the other signature.

Details: Your transaction is spending a P2SH output with a 2 of 3 multi-sig redeem script. While spending it the signature script only provides a single signature so when the script is being evaluated the evaluator knows that for a OP_CheckMultiSig with with m=2 and n=3 it needs 3 pubkeys, 2 signatures and a dummy item (OP_0) and when checking the stack it sees 1 item is missing hence the invalid message based on stack size.

To solve this you simply have to sign the transaction with one of the other 2 private keys (assuming your existing signature is valid, I didn't check).

Leo's guess was right, now that you have posted the transaction it lacks the other signature.

Details: Your transaction is spending a P2SH output with a 2 of 3 multi-sig redeem script. While spending it the signature script only provides a single signature so when the script is being evaluated the evaluator knows that for a OP_CheckMultiSig with with m=2 and n=3 it needs 3 pubkeys, 2 signatures and a dummy item (OP_0) and when checking the stack it sees 1 item is missing hence the invalid message based on stack size.

To solve this you simply have to sign the transaction with one of the other 2 private keys (assuming your existing signature is valid, I didn't check).

Hi & thanks one more!
You wrote, i need one of the other 2 private keys. How can i get this? isn't that the case that everyone has a private key and that it is confidential?
2  Bitcoin / Electrum / Re: issue "operation not valid with the current stack size" on: August 16, 2021, 08:43:12 PM
Do you remember how you created this wallet? Where else or who else did you set it up with?

I created the wallet myself.

Additionally, is it 2FA wallet (since 2FA wallet also use 2-of-3 multi-sig scheme)? You could find out by checking title of Electrum window application when you open the wallet. For example for standard wallet it's

Code:
Electrum 4.1.2 - default_wallet [standard]

My wallet is Electrum 4.1.5 [standard]

On a side note, i accidentally send 20 instead of 2 merit.
3  Bitcoin / Electrum / issue "operation not valid with the current stack size" on: August 15, 2021, 10:50:47 AM
Hi everybody, i see the error "operation not valid with the current stack size" if i try to broadcast after sign the transaction. Can anybody help please?


Hi guys, thanks for your feedback!

My wallet is electrum 4.1.5 standalone version.
The raw transaction:

010000000133cfe4fee57a49c87aaebe6680f5df65d2e8415c0c40ee7182945b807e5ad3b501000 000b500483045022100d1c66bdd1e03de6da9fa93c3c51c7b33ebe8504a13ca2895cf5f9cae8c4f d9a402207cc95a120677e50c7f5ebd8077c12ee98962e881aac5877fac802770f9ec22b6014c695 2210218f5bd07a035c06f9dc996fccf6c506afeca47a254524c1ac5efd09bcd719e1f21021b27b5 61146058dab6da3a4dd9eb9d8741652eb000f4a543978a5c639da6e46e2103ca405f45cbc7e7bd4 ace4ee75a72cdaf439ff7607cc4a6a54894e2e65f6b196353aeffffffff01901805000000000019 76a9145a5f756f562f8aaf82e4569761f85c2a06f031c488ac00000000

The transaction is imported
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!