Bitcoin Forum
May 05, 2024, 01:56:38 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1] 2 »  All
  Print  
Author Topic: erreur lors de transmission de transaction / error during transaction transmissi  (Read 191 times)
frankie_goes_to_valhalla (OP)
Newbie
*
Offline Offline

Activity: 19
Merit: 4


View Profile
November 12, 2020, 10:00:52 PM
Merited by o_e_l_e_o (2), ABCbits (1)
 #1

(English version at the bottom)

Bonjour,

Je suis nouveau avec Electrum et je ne maîtrise pas bien encore l'outil (tout comme gardez à l'esprit que je ne suis pas un pro de l'informatique, donc ne soyez pas trop "technique" dans votre réponse  Wink )

Je suis sur Electrum 4.0.4, je dois recevoir des fonds d'un marché suite à une transaction annulée;
Le marché m'a communiqué une transaction codée que je dois signer puis diffuser pour récupérer mes fonds.

J'ai réussi à importer la transaction sur mon wallet, j'ai pu la signer, et lorsque je clic sur "diffuser", j'ai le message d'erreur suivant:

"Le serveur a retourné une erreur lors de la transmission de la transaction.
Essayez de vous connecter à un serveur différent ou mettez à jour Electrum.
Operation not valid with the current stack size"

Ceci dit, ma transaction figure bien dans la fenêtre "historique" de mon wallet (avec la mention "local").
De la même manière, lorsque je vais sur l'onglet "adresses" de mon wallet, sur l'adresse spécifiée pour la réception, je peux voir la transaction s'afficher en bout de ligne (dans la colonne "solde").
Cependant, tout en bas de la fenêtre Electrum, là où s'affiche le solde de mon compte, je vois toujours le montant de mon compte non crédité de cette transaction en attente, et à côté s'affiche le solde de cette transaction avec la mention "unconfirmed"

En ayant cherché un peu sur ce forum, j'ai lu sur un topic qu'il se pourrait qu'il manque une signature, car l'adresse Inpout est une adresse multisig...

A vrai dire je n'en sais rien... Que puis-je faire?

Si vous souhaitez je peux poster une capture-écran de la transaction... En moins que les infos qui y figurent (ID de transaction - adresse entrée - adresse sortie) ne soient confidentielles?
Merci pour votre aide  Wink

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

Hello,

I am new to Electrum and I am not familiar with the tool yet (just keep in mind that I am not a computer pro, so do not be too "technical" in your answer;))

I am on Electrum 4.0.4, I have to receive funds from a market following a canceled transaction;
The market communicated to me a coded transaction that I must sign and then broadcast to recover my funds.

I managed to import the transaction on my wallet, I was able to sign it, and when I click on "broadcast", I got the following error message:

"The server returned an error while transmitting the transaction.
Try to connect to a different server or update Electrum.
Operation not valid with the current stack size "

That said, my transaction does appear in the "history" window of my wallet (with the mention "local").
Likewise, when I go to the "addresses" tab of my wallet, to the address specified for receipt, I can see the transaction displayed at the end of the line (in the "balance" column).
However, at the very bottom of the Electrum window, where my account balance is displayed, I still see my uncredited account amount from this pending transaction, and next to it is the balance for this transaction with the mention "unconfirmed"

Having searched a bit on this forum, I read on a topic that it could be that a signature is missing, because the Inpout address is a multisig address ...

To tell the truth I don't know ... What can I do?

If you wish I can post a screenshot of the transaction ... Unless the information that appears there (transaction ID - entered address - exit address) is confidential?
Thanks for your help  Wink
1714917398
Hero Member
*
Offline Offline

Posts: 1714917398

View Profile Personal Message (Offline)

Ignore
1714917398
Reply with quote  #2

1714917398
Report to moderator
There are several different types of Bitcoin clients. The most secure are full nodes like Bitcoin Core, which will follow the rules of the network no matter what miners do. Even if every miner decided to create 1000 bitcoins per block, full nodes would stick to the rules and reject those blocks.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714917398
Hero Member
*
Offline Offline

Posts: 1714917398

View Profile Personal Message (Offline)

Ignore
1714917398
Reply with quote  #2

1714917398
Report to moderator
jackg
Copper Member
Legendary
*
Offline Offline

Activity: 2856
Merit: 3071


https://bit.ly/387FXHi lightning theory


View Profile
November 12, 2020, 10:57:25 PM
 #2

You might be better off uploading a screenshot and posting the link here (from a site like imgur) so that we can work out what exactly is happening, if you draw over the txid and input and output information to maintain privacy.

What version of electrum are you running? Once you sign a transaction, is the sign button still clickable or is it grayed out and before you sign is the broadcast button grayed out. I thought that's what they did in older versions but haven't tried it with the more recent one.
khaled0111
Legendary
*
Offline Offline

Activity: 2520
Merit: 2853


Top Crypto Casino


View Profile WWW
November 12, 2020, 11:22:33 PM
 #3

This error message usually means that one or many other co-signers have to sign the transaction too before it can be broadcast. Or the inputs you are trying to spend do not belong to your wallet.

Something doesn't seem right here!! Why do you have to create a multisig wallet with the merchant?
And if it's not a multisig, why does he ask you to sign the transaction if you are the one who is going to be refunded? Do you trust him?

█████████████████████████
████▐██▄█████████████████
████▐██████▄▄▄███████████
████▐████▄█████▄▄████████
████▐█████▀▀▀▀▀███▄██████
████▐███▀████████████████
████▐█████████▄█████▌████
████▐██▌█████▀██████▌████
████▐██████████▀████▌████
█████▀███▄█████▄███▀█████
███████▀█████████▀███████
██████████▀███▀██████████
█████████████████████████
.
BC.GAME
▄▄░░░▄▀▀▄████████
▄▄▄
██████████████
█████░░▄▄▄▄████████
▄▄▄▄▄▄▄▄▄██▄██████▄▄▄▄████
▄███▄█▄▄██████████▄████▄████
███████████████████████████▀███
▀████▄██▄██▄░░░░▄████████████
▀▀▀█████▄▄▄███████████▀██
███████████████████▀██
███████████████████▄██
▄███████████████████▄██
█████████████████████▀██
██████████████████████▄
.
..CASINO....SPORTS....RACING..
█░░░░░░█░░░░░░█
▀███▀░░▀███▀░░▀███▀
▀░▀░░░░▀░▀░░░░▀░▀
░░░░░░░░░░░░
▀██████████
░░░░░███░░░░
░░█░░░███▄█░░░
░░██▌░░███░▀░░██▌
░█░██░░███░░░█░██
░█▀▀▀█▌░███░░█▀▀▀█▌
▄█▄░░░██▄███▄█▄░░▄██▄
▄███▄
░░░░▀██▄▀


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
frankie_goes_to_valhalla (OP)
Newbie
*
Offline Offline

Activity: 19
Merit: 4


View Profile
November 12, 2020, 11:37:15 PM
 #4

Thank you Jackg  Wink

Here is a screenshot of the situation:

https://imgur.com/v6uhIyV

I am using version 4.0.4 of Electrum;

To sign the message, I went to the "addresses" tab, I right-clicked on the receiving address that I had communicated for this transaction, then "sign / verify the message", and in the dialog box then opened, I pasted the encrypted transaction into the "message" dialog box (my receiving address is displayed in the "address" box), then I click on "sign".
There I have to enter my password, I validate and the "sign" button remains clickable. I then clicked on "verify", a pop'up indicated to me that the transaction has been verified.

Therefore the dialog box presenting the transaction is displayed (see screenshot) and when I click on "broadcast", I have the famous error message ...
frankie_goes_to_valhalla (OP)
Newbie
*
Offline Offline

Activity: 19
Merit: 4


View Profile
November 13, 2020, 09:53:40 AM
 #5

I specify that I tried to connect to almost 30 different servers, in the end I always have the same error message ...
NotATether
Legendary
*
Offline Offline

Activity: 1596
Merit: 6728


bitcoincleanup.com / bitmixlist.org


View Profile WWW
November 13, 2020, 09:54:52 AM
Merited by ABCbits (1)
 #6

Whenever you get a "Operation not valid with the current stack size" error it means the transaction you are trying to broadcast is not valid. How did you construct the transaction? You mentioned that it uses multi-sig, by how many signatures are required? (What kind of M-by-N multisig is it?)

In the case of multisig, people have reported that not having enough signatures causes this error. https://www.reddit.com/r/BitcoinBeginners/comments/c45dja/need_some_help_for_multisig/

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
frankie_goes_to_valhalla (OP)
Newbie
*
Offline Offline

Activity: 19
Merit: 4


View Profile
November 13, 2020, 10:11:48 AM
 #7

Whenever you get a "Operation not valid with the current stack size" error it means the transaction you are trying to broadcast is not valid. How did you construct the transaction? You mentioned that it uses multi-sig, by how many signatures are required? (What kind of M-by-N multisig is it?)

In the case of multisig, people have reported that not having enough signatures causes this error. https://www.reddit.com/r/BitcoinBeginners/comments/c45dja/need_some_help_for_multisig/

This is a "2 of 3" multisig ...

But suddenly, I do not understand: the market that gave me this encrypted transaction signed the transaction (at least it is supposed to have done so since it was he who sequestered my payment and offered me to return my funds), and once I import the transaction into my wallet, I also signed the transaction (at least I hope I did it well ... I explained how I process to sign, a few posts above).

So we would have 2 out of 3 signatures ...

I also think that it blocks for a problem of signature, but how to be sure?
NotATether
Legendary
*
Offline Offline

Activity: 1596
Merit: 6728


bitcoincleanup.com / bitmixlist.org


View Profile WWW
November 13, 2020, 11:13:12 AM
 #8

I think I know what the problem is.

To sign the message, I went to the "addresses" tab, I right-clicked on the receiving address that I had communicated for this transaction, then "sign / verify the message", and in the dialog box then opened, I pasted the encrypted transaction into the "message" dialog box (my receiving address is displayed in the "address" box), then I click on "sign".
There I have to enter my password, I validate and the "sign" button remains clickable. I then clicked on "verify", a pop'up indicated to me that the transaction has been verified.

Therefore the dialog box presenting the transaction is displayed (see screenshot) and when I click on "broadcast", I have the famous error message ...

This is not how you sign a transaction. What you did was sign a message (the “BEGIN BITCOIN SIGNED MESSAGE” texts). So the error must be that there is only one out of two necessary signatures, the signature from the merchant, so you need to make the second signature.

First make sure the merchant gave you the transaction file. he needs to save his signed transaction to a file, transfer it to you by email or something and you need to import the file into Electrum.

But since you already have the transaction text, you should just need to click File > Load Transaction > From Text (or something like that, I can’t go to my Electrum to check). Paste the transaction in that text box.

Then it’s going to open a window for signing and broadcasting like the one in your screenshot, click on “Sign” followed by typing your password, and then click “Broadcast”.

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
khaled0111
Legendary
*
Offline Offline

Activity: 2520
Merit: 2853


Top Crypto Casino


View Profile WWW
November 13, 2020, 02:19:48 PM
 #9

But since you already have the transaction text, you should just need to click File > Load Transaction > From Text (or something like that, I can’t go to my Electrum to check). Paste the transaction in that text box.
the Load transacation option is under the Tools menu not File menu.
.
Try to load the transaction again as explained by NotATether. If the merchant signed the transaction, you should see "Partially signed" next to Status.
However, from the screenshot you posted, it looks like there are two other problems:
    The first, is the transaction fee. Electrum is unable to read the transaction fee which is probably why it returned that error.
    The second, is that the receiving address belongs to the multisig wallet (highlighted in green) meaning even if you succeed to broadcast the transaction, you will not be able to spend the coins without the merchant signature.

█████████████████████████
████▐██▄█████████████████
████▐██████▄▄▄███████████
████▐████▄█████▄▄████████
████▐█████▀▀▀▀▀███▄██████
████▐███▀████████████████
████▐█████████▄█████▌████
████▐██▌█████▀██████▌████
████▐██████████▀████▌████
█████▀███▄█████▄███▀█████
███████▀█████████▀███████
██████████▀███▀██████████
█████████████████████████
.
BC.GAME
▄▄░░░▄▀▀▄████████
▄▄▄
██████████████
█████░░▄▄▄▄████████
▄▄▄▄▄▄▄▄▄██▄██████▄▄▄▄████
▄███▄█▄▄██████████▄████▄████
███████████████████████████▀███
▀████▄██▄██▄░░░░▄████████████
▀▀▀█████▄▄▄███████████▀██
███████████████████▀██
███████████████████▄██
▄███████████████████▄██
█████████████████████▀██
██████████████████████▄
.
..CASINO....SPORTS....RACING..
█░░░░░░█░░░░░░█
▀███▀░░▀███▀░░▀███▀
▀░▀░░░░▀░▀░░░░▀░▀
░░░░░░░░░░░░
▀██████████
░░░░░███░░░░
░░█░░░███▄█░░░
░░██▌░░███░▀░░██▌
░█░██░░███░░░█░██
░█▀▀▀█▌░███░░█▀▀▀█▌
▄█▄░░░██▄███▄█▄░░▄██▄
▄███▄
░░░░▀██▄▀


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
frankie_goes_to_valhalla (OP)
Newbie
*
Offline Offline

Activity: 19
Merit: 4


View Profile
November 13, 2020, 02:32:22 PM
 #10

Thank you for your answer NotATether  Wink

So I tried to do the procedure you told me, reload the transaction, but when I get to the last window (the signature and broadcast window), I can only broadcast, the "sign" button remains turn off.

So I ask myself a question: isn't it because I have already signed this transaction on another site, in this case coinb.in?
Indeed, as I did not know how to broadcast the transaction offered to me by the market, I looked at the market's online help, which indicated to do so on the coinb.in site.
And on this site, apparently I was able to sign the transaction (oddly with my master public key), at least the signature was accepted, but I could not broadcast the transaction (error message: "mandatory-script -verify-flag-failed (Operation not valid with the current stack size) (code 16) ")

Or maybe it has nothing to do with it? I hope I didn't crash the transaction by trying on coinb.in and still be able to do it on Electrum... Undecided
frankie_goes_to_valhalla (OP)
Newbie
*
Offline Offline

Activity: 19
Merit: 4


View Profile
November 13, 2020, 02:47:45 PM
 #11

But since you already have the transaction text, you should just need to click File > Load Transaction > From Text (or something like that, I can’t go to my Electrum to check). Paste the transaction in that text box.
the Load transacation option is under the Tools menu not File menu.
.
Try to load the transaction again as explained by NotATether. If the merchant signed the transaction, you should see "Partially signed" next to Status.
However, from the screenshot you posted, it looks like there are two other problems:
    The first, is the transaction fee. Electrum is unable to read the transaction fee which is probably why it returned that error.
    The second, is that the receiving address belongs to the multisig wallet (highlighted in green) meaning even if you succeed to broadcast the transaction, you will not be able to spend the coins without the merchant signature.


Thank you for your answer khaled0111.

When I reload the transaction, next to "status", it's always written "local" (as you can see on my screenshot).

As for the address highlighted in green, I do not understand since it is indeed one of my receiving addresses, the one I had provided to the market. In addition my Electrum wallet is a standard wallet, not a multisig wallet.

Regarding transaction fees, it also caught my attention, the fact that they are "unknown". However, when I look in the window "tools -> preferences -> TRANSACTIONS", the box "use the replacement of fees" is checked (as are checked "use the addresses of currency" and "activate the rounding of the output value "). But it is true that it seems abnormal to me that we cannot know the fees on this transaction ...
khaled0111
Legendary
*
Offline Offline

Activity: 2520
Merit: 2853


Top Crypto Casino


View Profile WWW
November 13, 2020, 03:08:01 PM
 #12

^^
You have to load the raw transaction and sign it from the multisig wallet not your standard wallet on which you are going to receive the funds (hope you still have access to it).

When you load the raw transaction, make sure you copy-paste the text or import the text file sent to you by the merchant not the signed one from coinb.in nor by double clicking the local transaction from the history tab.

█████████████████████████
████▐██▄█████████████████
████▐██████▄▄▄███████████
████▐████▄█████▄▄████████
████▐█████▀▀▀▀▀███▄██████
████▐███▀████████████████
████▐█████████▄█████▌████
████▐██▌█████▀██████▌████
████▐██████████▀████▌████
█████▀███▄█████▄███▀█████
███████▀█████████▀███████
██████████▀███▀██████████
█████████████████████████
.
BC.GAME
▄▄░░░▄▀▀▄████████
▄▄▄
██████████████
█████░░▄▄▄▄████████
▄▄▄▄▄▄▄▄▄██▄██████▄▄▄▄████
▄███▄█▄▄██████████▄████▄████
███████████████████████████▀███
▀████▄██▄██▄░░░░▄████████████
▀▀▀█████▄▄▄███████████▀██
███████████████████▀██
███████████████████▄██
▄███████████████████▄██
█████████████████████▀██
██████████████████████▄
.
..CASINO....SPORTS....RACING..
█░░░░░░█░░░░░░█
▀███▀░░▀███▀░░▀███▀
▀░▀░░░░▀░▀░░░░▀░▀
░░░░░░░░░░░░
▀██████████
░░░░░███░░░░
░░█░░░███▄█░░░
░░██▌░░███░▀░░██▌
░█░██░░███░░░█░██
░█▀▀▀█▌░███░░█▀▀▀█▌
▄█▄░░░██▄███▄█▄░░▄██▄
▄███▄
░░░░▀██▄▀


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
frankie_goes_to_valhalla (OP)
Newbie
*
Offline Offline

Activity: 19
Merit: 4


View Profile
November 13, 2020, 03:41:12 PM
 #13

^^
You have to load the raw transaction and sign it from the multisig wallet not your standard wallet on which you are going to receive the funds (hope you still have access to it).

When you load the raw transaction, make sure you copy-paste the text or import the text file sent to you by the merchant not the signed one from coinb.in nor by double clicking the local transaction from the history tab.

When I load the raw transaction I always take the one provided by the market (copy paste the plain text), but the result is the same, I don't have access to the "sign" button, I can just "broadcast".

So maybe I should delete the local transaction from my wallet, the one that does not want to be broadcast, in order to have a wallet free of any blocked transaction?

On the other hand, I don't understand when you say: "You have to load the raw transaction and sign it from the multisig wallet and not from your standard wallet on which you will receive the funds (I hope you still have access to it). " ?

Sign it from the multisig wallet? which multisig wallet? personally I only have a standard wallet ...
The market giving me the transaction just gives me the encrypted text of the transaction and says "Sign this transaction with your private Bitcoin key and broadcast it to receive your funds."
bob123
Legendary
*
Offline Offline

Activity: 1624
Merit: 2481



View Profile WWW
November 15, 2020, 01:20:10 PM
 #14

The market giving me the transaction just gives me the encrypted text of the transaction and says "Sign this transaction with your private Bitcoin key and broadcast it to receive your funds."

Which "market" are you using?

It seems to be somewhat weird that you get a multisignature transaction to sign with a non-multisig wallet?

Is it the first time you were doing it this exact way? Or did it work in the past?

NotATether
Legendary
*
Offline Offline

Activity: 1596
Merit: 6728


bitcoincleanup.com / bitmixlist.org


View Profile WWW
November 15, 2020, 08:35:55 PM
 #15

The market giving me the transaction just gives me the encrypted text of the transaction and says "Sign this transaction with your private Bitcoin key and broadcast it to receive your funds."

Which "market" are you using?

It seems to be somewhat weird that you get a multisignature transaction to sign with a non-multisig wallet?

Is it the first time you were doing it this exact way? Or did it work in the past?

He mentioned that he copied the raw transaction from coinb.in and is trying to sign it from his Electrum wallet. It makes a single multisig address that needs to be signed with private keys belonging to other address to spend anything.

OP: When coinb.in made the multisig address, it asked you for the public keys of the holders. You should also have their private keys too. So in total you should have one address in three Electrum wallets, imported using File > New/Restore > type a name for your wallet > Import Bitcoin addresses or private keys.

Then the transaction has to be made in Electrum. First, create a payment from one of your wallets as you'd normally do. Then after you sign the transaction, you have to copy the raw transaction to the clipboard:



Then you open one of your other wallets and click on Tools > Load Transaction > From Text:



Then in the box that appears, paste the raw transaction you copied from the first wallet and click "Load Transaction". It should open a window like this:



Click "Sign" to sign the transaction as you normally do, then click Broadcast to send it.

That's how you spend funds from a multisig wallet in Electrum.

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
frankie_goes_to_valhalla (OP)
Newbie
*
Offline Offline

Activity: 19
Merit: 4


View Profile
November 15, 2020, 11:20:47 PM
 #16

The market giving me the transaction just gives me the encrypted text of the transaction and says "Sign this transaction with your private Bitcoin key and broadcast it to receive your funds."

Which "market" are you using?

It seems to be somewhat weird that you get a multisignature transaction to sign with a non-multisig wallet?

Is it the first time you were doing it this exact way? Or did it work in the past?

He mentioned that he copied the raw transaction from coinb.in and is trying to sign it from his Electrum wallet. It makes a single multisig address that needs to be signed with private keys belonging to other address to spend anything.

OP: When coinb.in made the multisig address, it asked you for the public keys of the holders. You should also have their private keys too. So in total you should have one address in three Electrum wallets, imported using File > New/Restore > type a name for your wallet > Import Bitcoin addresses or private keys.

Then the transaction has to be made in Electrum. First, create a payment from one of your wallets as you'd normally do. Then after you sign the transaction, you have to copy the raw transaction to the clipboard:

https://i.imgur.com/aWtTRAa.png

Then you open one of your other wallets and click on Tools > Load Transaction > From Text:

https://i.imgur.com/1vAyVM1.png

Then in the box that appears, paste the raw transaction you copied from the first wallet and click "Load Transaction". It should open a window like this:

https://i.imgur.com/pXKJDNu.png

Click "Sign" to sign the transaction as you normally do, then click Broadcast to send it.

That's how you spend funds from a multisig wallet in Electrum.

NotATether, in fact I don't have the public btc key of the market, all I have from the market is the encrypted transaction (and signed by the market apparently) that he asks me to sign in turn and then I will get a new signed transaction (by the market and by me) that I must broadcast. The market tells me to do this on Coinb.in, by following the procedure below:

1- I go to Coinb.in, menu "verify" (at the top); there I paste the encrypted transaction that they provided to me, then I click on "submit" ... There the decrypted transaction appears with the input address, the output address (one of my Electrum reception addresses), the amount of the transaction, 1 script for each input/output ...

2- I go to the "sign" menu: the market tells me "Paste here the transaction and your private key which belongs to the public key you used. Click on" Submit "to sign the transaction with your key";
I therefore paste the transaction then I will look for my private key on Electrum by right clicking on the reception address which I use for this transaction, I have to enter my password and there I obtain the private key which belongs to the public key used. I copy this private key, paste it on coinb.in to the dedicated location then I click submit and that's where it crashes, I get the following error message: "There is a problem with one or more of your inputs, please check and try again ". As if my private key wasn't good, yet I'm sure I'm taking the private key corresponding to the receiving address I'm using for this transaction!
On the other hand, if I enter my master public key instead of my private key, then the transaction is signed (it's not normal ?!).
And once the transaction is signed (with my master public key and not my private key as requested), I have to copy the new script of the signed transaction and paste it in the "broadcast" menu box, and obviously there it doesn't work not.

HCP
Legendary
*
Offline Offline

Activity: 2086
Merit: 4316

<insert witty quote here>


View Profile
November 16, 2020, 03:31:06 AM
 #17

This whole situation is very confusing... Nothing that is happening here appears to be "normal"??!? Shocked I don't know of any sites that require that you create a multisig to deposit your coins, and therefore require that you sign your own withdrawal transactions?!?! Huh Shocked


NotATether, in fact I don't have the public btc key of the market, all I have from the market is the encrypted transaction (and signed by the market apparently) that he asks me to sign in turn and then I will get a new signed transaction (by the market and by me) that I must broadcast. The market tells me to do this on Coinb.in, by following the procedure below:
There should not be any need for you to sign anything to receive coins from the "market". You should be able to provide a bitcoin address and they should be able to create/sign/broadcast a transaction that sends coins to that address. Simple.

So, it appears that this "market" is using some sort of very complicated wallet setup... Undecided

Can you please explain the "cancelled transaction" that lead to the requirement for a "refund". Do you have an account on this "market" that has a wallet feature? ie. you login, and can generate deposit addresses etc? Huh


Quote
1- I go to Coinb.in, menu "verify" (at the top); there I paste the encrypted transaction that they provided to me, then I click on "submit" ... There the decrypted transaction appears with the input address, the output address (one of my Electrum reception addresses), the amount of the transaction, 1 script for each input/output ...
It appears that they have created a partially signed transaction and given it to you... do you recognise the "input address" shown when you "verify" this transaction on Coinb.in? Huh It *should* be somehow related to your account on the "market". NOTE: It will not have anything to do with your Electrum wallet or addresses.


Quote
2- I go to the "sign" menu: the market tells me "Paste here the transaction and your private key which belongs to the public key you used. Click on" Submit "to sign the transaction with your key";
I therefore paste the transaction then I will look for my private key on Electrum by right clicking on the reception address which I use for this transaction,
This is where you are going wrong... you should NOT be using the private key for the "reception address"... it must be one of the private keys associated with the multisig address that is being used as the input.

When you first setup your account on this Market, were you asked to enter a public key at all? Huh

█████████████████████████
████▐██▄█████████████████
████▐██████▄▄▄███████████
████▐████▄█████▄▄████████
████▐█████▀▀▀▀▀███▄██████
████▐███▀████████████████
████▐█████████▄█████▌████
████▐██▌█████▀██████▌████
████▐██████████▀████▌████
█████▀███▄█████▄███▀█████
███████▀█████████▀███████
██████████▀███▀██████████
█████████████████████████
.
BC.GAME
▄▄░░░▄▀▀▄████████
▄▄▄
██████████████
█████░░▄▄▄▄████████
▄▄▄▄▄▄▄▄▄██▄██████▄▄▄▄████
▄███▄█▄▄██████████▄████▄████
███████████████████████████▀███
▀████▄██▄██▄░░░░▄████████████
▀▀▀█████▄▄▄███████████▀██
███████████████████▀██
███████████████████▄██
▄███████████████████▄██
█████████████████████▀██
██████████████████████▄
.
..CASINO....SPORTS....RACING..
█░░░░░░█░░░░░░█
▀███▀░░▀███▀░░▀███▀
▀░▀░░░░▀░▀░░░░▀░▀
░░░░░░░░░░░░
▀██████████
░░░░░███░░░░
░░█░░░███▄█░░░
░░██▌░░███░▀░░██▌
░█░██░░███░░░█░██
░█▀▀▀█▌░███░░█▀▀▀█▌
▄█▄░░░██▄███▄█▄░░▄██▄
▄███▄
░░░░▀██▄▀


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
frankie_goes_to_valhalla (OP)
Newbie
*
Offline Offline

Activity: 19
Merit: 4


View Profile
November 17, 2020, 03:16:12 PM
 #18

There should not be any need for you to sign anything to receive coins from the "market". You should be able to provide a bitcoin address and they should be able to create/sign/broadcast a transaction that sends coins to that address. Simple.

So, it appears that this "market" is using some sort of very complicated wallet setup... Undecided

Can you please explain the "cancelled transaction" that lead to the requirement for a "refund". Do you have an account on this "market" that has a wallet feature? ie. you login, and can generate deposit addresses etc? Huh

I did not create a multisig wallet, my wallet is a standard wallet. The one that is multisig I think it is only the one of the market since it serves as an intermediary between the buyer and the seller (by sequestering the buyer's payment while waiting for him to receive his package, before to give the money to the seller).

On this marketplace, when I find an item that I like, I buy it by making a payment, normally. Except that the payment I made does not go directly to the seller, it is sequestered by the marketplace and will only be given to the seller when I have declared that I have received my package. It is exactly the same principle as on the Vinted platform. Except that this is in bitcoins. I don't have any waalet on this marketplace.

And suddenly, since the seller canceled my purchase, the marketplace wants to return my payment by giving me an encrypted transaction and asking me to sign it (since my payment apparently was on a multisig wallet, that of marketplace), then broadcast it.
Likewise, if my purchase had been accepted by the seller, the marketplace would have sent a transaction to the seller, asking him to sign it and then broadcast it for himself.
The payment in bitcoin is unlocked thanks to 2 signatures: that of the market and mine in the event of a refund, OR that of the market and the seller in the event of a successful sale.


Quote
It appears that they have created a partially signed transaction and given it to you... do you recognise the "input address" shown when you "verify" this transaction on Coinb.in? Huh It *should* be somehow related to your account on the "market". NOTE: It will not have anything to do with your Electrum wallet or addresses.

Here is the verified transaction on coinb.in:
https://image.noelshack.com/fichiers/2020/47/2/1605624673-capture-1.jpg

I don't recognise the imput adress (73244..........). Neither in relation to my account on this market, nor in relation to my Electrum wallet.

Quote
This is where you are going wrong... you should NOT be using the private key for the "reception address"... it must be one of the private keys associated with the multisig address that is being used as the input.

When you first setup your account on this Market, were you asked to enter a public key at all? Huh

As you can imagine, I do not have access to the private key associated with the multisig address which is used as input, as long as I do not recognize the address in imput on the transaction.

And when I configured my account on the marketplace, I was asked to enter a Bitcoin public key for multisig; there, I entered the public key linked to the reception address which I also entered.

On the other hand, when I am on Coinb.in, after verifying the transaction, step 2 is to sign the transaction. And to sign it, I am asked for a private key, not a public key. And if I enter the public key that I entered (linked to my reception address), the signature fails. Likewise, if I enter the private key (still linked to this same reception address), the signature also fails. The only time the signature is OK is when I sign with my master public key.

But there, once I copy the new transaction that I just signed with this master public key, I cannot broadcast it, it does not work (note that when I look at the encrypted transaction as given by the market, and the new encrypted transaction once I can sign it with my master public key, I see the encryption is exactly the same, nothing has changed in the code while the transaction is supposed to be signed - with my master public key)
HCP
Legendary
*
Offline Offline

Activity: 2086
Merit: 4316

<insert witty quote here>


View Profile
November 17, 2020, 06:02:49 PM
Last edit: November 15, 2023, 12:38:55 AM by HCP
Merited by Rath_ (4), ABCbits (3), NotATether (1)
 #19

I did not create a multisig wallet, my wallet is a standard wallet. The one that is multisig I think it is only the one of the market since it serves as an intermediary between the buyer and the seller (by sequestering the buyer's payment while waiting for him to receive his package, before to give the money to the seller).

On this marketplace, when I find an item that I like, I buy it by making a payment, normally. Except that the payment I made does not go directly to the seller, it is sequestered by the marketplace and will only be given to the seller when I have declared that I have received my package. It is exactly the same principle as on the Vinted platform. Except that this is in bitcoins. I don't have any waalet on this marketplace.

And suddenly, since the seller canceled my purchase, the marketplace wants to return my payment by giving me an encrypted transaction and asking me to sign it (since my payment apparently was on a multisig wallet, that of marketplace), then broadcast it.
Likewise, if my purchase had been accepted by the seller, the marketplace would have sent a transaction to the seller, asking him to sign it and then broadcast it for himself.
The payment in bitcoin is unlocked thanks to 2 signatures: that of the market and mine in the event of a refund, OR that of the market and the seller in the event of a successful sale.
Right, so the Marketplace is essentially acting as Escrow... and creating 2-of-3 MultiSig addresses between the buyer, the seller and themselves. That's actually not a bad way of setting it up...


Quote
Here is the verified transaction on coinb.in:
https://image.noelshack.com/fichiers/2020/47/2/1605624673-capture-1.jpg

I don't recognise the imput adress (73244..........). Neither in relation to my account on this market, nor in relation to my Electrum wallet.
That isn't an address... it is a "transactionID"... you'd need to look that transaction up on a blockexplorer to see which addresses were involved... however, given your info below, I don't think it is required to solve your problem, as I think I figured out what the issue is Wink



Quote
As you can imagine, I do not have access to the private key associated with the multisig address which is used as input, as long as I do not recognize the address in imput on the transaction.

And when I configured my account on the marketplace, I was asked to enter a Bitcoin public key for multisig; there, I entered the public key linked to the reception address which I also entered.
A-HA!  Wink

The golden piece of information... If you provided the public key for the "reception address" (ie. the address you are trying to get refunded to "bc1qr95w...w7") then you should definitely be able to sign the transaction provided by the marketplace. The screenshot shows that it is a 2-of-3, that already has 1 signature attached, so it would appear that they have indeed signed it already.

I was trying to figure out what the issue was, and then noted this part in one of your previous messages:
2- I go to the "sign" menu: the market tells me "Paste here the transaction and your private key which belongs to the public key you used. Click on" Submit "to sign the transaction with your key";
I therefore paste the transaction then I will look for my private key on Electrum by right clicking on the reception address which I use for this transaction, I have to enter my password and there I obtain the private key which belongs to the public key used. I copy this private key, paste it on coinb.in to the dedicated location then I click submit and that's where it crashes, I get the following error message: "There is a problem with one or more of your inputs, please check and try again ".
By having a quick experiment with Electrum and coinb.in Multisigs... I think I know what the problem is... when you view your Private Key in Electrum, it includes the "script_type" at the beginning of the private key... so it shows as something like this:
Code:
p2wpkh:LPVqjAxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxDB



However, coinb.in doesn't know how to deal with that script_type prefix...



so when you copy the private key from Electrum... DO NOT copy the "p2wpkh:" part at the front... you ONLY want to copy the text AFTER the ":". In my example, it would be:
Code:
LPVqjAxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxDB

If you use just THAT part of the private key, you should be able to use the "Sign" functionality on coinb.in, which will successfully add the 2nd required signature, and output a fully signed transaction. You should then be able to broadcast that transaction to the network using the "Broadcast" page on coinb.in. Smiley



█████████████████████████
████▐██▄█████████████████
████▐██████▄▄▄███████████
████▐████▄█████▄▄████████
████▐█████▀▀▀▀▀███▄██████
████▐███▀████████████████
████▐█████████▄█████▌████
████▐██▌█████▀██████▌████
████▐██████████▀████▌████
█████▀███▄█████▄███▀█████
███████▀█████████▀███████
██████████▀███▀██████████
█████████████████████████
.
BC.GAME
▄▄░░░▄▀▀▄████████
▄▄▄
██████████████
█████░░▄▄▄▄████████
▄▄▄▄▄▄▄▄▄██▄██████▄▄▄▄████
▄███▄█▄▄██████████▄████▄████
███████████████████████████▀███
▀████▄██▄██▄░░░░▄████████████
▀▀▀█████▄▄▄███████████▀██
███████████████████▀██
███████████████████▄██
▄███████████████████▄██
█████████████████████▀██
██████████████████████▄
.
..CASINO....SPORTS....RACING..
█░░░░░░█░░░░░░█
▀███▀░░▀███▀░░▀███▀
▀░▀░░░░▀░▀░░░░▀░▀
░░░░░░░░░░░░
▀██████████
░░░░░███░░░░
░░█░░░███▄█░░░
░░██▌░░███░▀░░██▌
░█░██░░███░░░█░██
░█▀▀▀█▌░███░░█▀▀▀█▌
▄█▄░░░██▄███▄█▄░░▄██▄
▄███▄
░░░░▀██▄▀


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
frankie_goes_to_valhalla (OP)
Newbie
*
Offline Offline

Activity: 19
Merit: 4


View Profile
November 17, 2020, 10:28:52 PM
 #20

HCP come in my arms that I kiss you !!!  Cheesy Cheesy Cheesy Cheesy Cheesy

You found out where the problem came from! I followed your recommendations and it worked! the transaction has been broadcast!

But wow! you had to know that to have the private key you just had to select the part without the p2wpkh! If you hadn't told me I would never have guessed that this was the procedure!

At least it's cool, this galley allowed me to learn more about the use of Electrum, it was a good learning.

Another big thank you HCP! In addition to being able to broadcast my transaction, you allowed me to learn (like the other speakers on this topic, thank you!)  Wink
Pages: [1] 2 »  All
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!