Author

Topic: Where to find private key to sign transaction? (Read 419 times)

HCP
legendary
Activity: 2086
Merit: 4361
... but yes it uses multi sig system. upon registering on the site I've entered my refund address and public key.
What was the refund address and public key that you entered when you registered on this site? Huh


so pretty much i'm stuck with the same issue as i don't have the private key. Where and how should I have obtained this private key in this situation?
The private key, will likely be the one that is paired with the public key that you entered when you registered on the site. Unfortunately for you, there is no way to go from public key -> private key (otherwise the entire system would be fundamentally broken! Shocked Tongue )

At best, we can identify what the address is (convert the public key to address, see below), and then hopefully you will be able to find that address in your Electrum wallet and will be able to export the private key from it.






You can convert the public key to address really easily here: https://gobittest.appspot.com/Address

Simply copy/paste the public key into Box labelled: "1 - Public ECDSA Key" and click "send":


It'll most likely give you the "Invalid Public Key Length" error... but you can ignore that (the site was designed for older uncompressed public keys that start with 04, but still works with compressed public keys that start with 02 or 03)... then simply scroll down to Box labelled: "9 - Base58 encoding of 8"... and it will show the address associated with that public key:

legendary
Activity: 2268
Merit: 18711
As I said above. The transaction is coming from a multi-sig address, and has been signed by the vendor with one of the three private keys. If you are unwilling to reveal the name of the vendor or the details of the raw transaction, then as to where the other two keys are we can only guess.

You could try contacting the vendor and asking them if you are supposed to have one or both of the other keys and what format they would be in.
Check your account with the vendor, looking for any mention of a private key or seed phrase which you could export.
Check your the email account you used to sign up, and see if they have emailed you a private key or seed phrase.
Check all the files or back ups you made around the time of opening the account.
legendary
Activity: 3038
Merit: 4418
Crypto Swap Exchange
I think the best way to identify whichever key you're looking for is to find the redeem script.

Copy the string from the script column in your inputs and it should be a format like 0047....ae. Remove the zeros and check the number after that, if it is 47, remove 142 characters, 48, remove 144 characters or if it is 49, remove 146 characters. So, you'll be removing ... 0047(142/144/146 characters) and the remainder should be 52....53ae, if not then try again. Paste the rest of the string back into coinb.in/#Verify and it should display the redeem script and the addresses associated with that multisig.
 
Unfortunately, I can't recall any site that displays the redeemscript from a raw transaction so this is actually quite an inelegant solution.
.

I believe that decoding your redeem script would help you to see the public keys required for a valid signature and possibly aid you in finding the correct keys to use. Let me know if you don't understand anything about this.

If done correctly, this should be shown on your verify tab:


newbie
Activity: 8
Merit: 0
so pretty much i'm stuck with the same issue as i don't have the private key. Where and how should I have obtained this private key in this situation?
newbie
Activity: 8
Merit: 0
The next step is to sign the transaction with my private key. I remembered I have a file saved on my computer with my private key information. I have saved my private key and all PGP key password information on my computer and been using this the last 3-4 years. So I opened it and used the private key to which it wasn't recognized.
First, saving your wallet private information on an online device (computer, email, etc) will make you vulnerable to attack and a lot of people have lost their coins through it. Here's an example.
Second, if the private key is not recognized because you cant sign the transaction using just your wallet private keys.

Thank you for the heads up Suzanne!
newbie
Activity: 8
Merit: 0
truth is I smoke weed and I've been trying to get some through one of them dark markets. now looks like that is not going to happen, but yes it uses multi sig system. upon registering on the site I've entered my refund address and public key.

Did you try my suggestion above I have a problem before with the same issue when making a double spend or rebuilding a new transaction with the stuck transaction?

What I did to fix the issue is by downloading the latest version of coinb.in they fix that issue. If you are using the coinb.in website when signing the transaction this error will occur in some cases like "one of the output or input is invalid" but they fix this issue on version 1.6 so try that first.

Here's the link https://github.com/OutCast3k/coinbin/releases

And try to rebuild and sign the transaction there. If it doesn't work well your only option is to wait for a week until the transaction drop in the mempool.


Thanks bro I tried this one, but to no avail unfortunately!

Yes that is correct you understand my situation now.
yes it uses multi sig system. upon registering on the site I've entered my refund address and public key.
So, if I understand all this correctly, your refund is currently sitting in a multisig address on the vendor's platform, you are trying to withdraw it to your own Electrum wallet, they have given you a transaction which is signed with one key, and you have to sign it with one of the other keys and then broadcast it.

If the transaction is trying to send coins to the 17vEiXonEt... address, then attempting to sign with the private key associated with this address makes no sense.

At some point when you set up an account with the vendor, they must have provided you with at least one of the multi-sig keys (unless the entire platform is a scam). This could have been in the form of a raw private key in hex format (64 characters 0-9 and A-F), WIF format (51/52 characters, most letters and numbers, starting with 5, K, or L), or a seed phrase (12 - 24 seemingly random words). Do you remember being shown one of these and backing it up, writing it down, saving it, etc?

If you are willing to share the raw transaction you are trying to sign, we can extract the address(es) in question if you think that might help you narrow down your search. Doing so would compromise your privacy, but would not compromise the security of your transaction.
Yes that is correct you understand my situation now.  I will get back to you let me sleep on it.
hero member
Activity: 2660
Merit: 651
Want top-notch marketing for your project, Hire me
The next step is to sign the transaction with my private key. I remembered I have a file saved on my computer with my private key information. I have saved my private key and all PGP key password information on my computer and been using this the last 3-4 years. So I opened it and used the private key to which it wasn't recognized.
First, saving your wallet private information on an online device (computer, email, etc) will make you vulnerable to attack and a lot of people have lost their coins through it. Here's an example.
Second, if the private key is not recognized because you cant sign the transaction using just your wallet private keys.
legendary
Activity: 2268
Merit: 18711
yes it uses multi sig system. upon registering on the site I've entered my refund address and public key.
So, if I understand all this correctly, your refund is currently sitting in a multisig address on the vendor's platform, you are trying to withdraw it to your own Electrum wallet, they have given you a transaction which is signed with one key, and you have to sign it with one of the other keys and then broadcast it.

If the transaction is trying to send coins to the 17vEiXonEt... address, then attempting to sign with the private key associated with this address makes no sense.

At some point when you set up an account with the vendor, they must have provided you with at least one of the multi-sig keys (unless the entire platform is a scam). This could have been in the form of a raw private key in hex format (64 characters 0-9 and A-F), WIF format (51/52 characters, most letters and numbers, starting with 5, K, or L), or a seed phrase (12 - 24 seemingly random words). Do you remember being shown one of these and backing it up, writing it down, saving it, etc?

If you are willing to share the raw transaction you are trying to sign, we can extract the address(es) in question if you think that might help you narrow down your search. Doing so would compromise your privacy, but would not compromise the security of your transaction.
legendary
Activity: 3374
Merit: 3095
Playbet.io - Crypto Casino and Sportsbook
truth is I smoke weed and I've been trying to get some through one of them dark markets. now looks like that is not going to happen, but yes it uses multi sig system. upon registering on the site I've entered my refund address and public key.

Did you try my suggestion above I have a problem before with the same issue when making a double spend or rebuilding a new transaction with the stuck transaction?

What I did to fix the issue is by downloading the latest version of coinb.in they fix that issue. If you are using the coinb.in website when signing the transaction this error will occur in some cases like "one of the output or input is invalid" but they fix this issue on version 1.6 so try that first.

Here's the link https://github.com/OutCast3k/coinbin/releases

And try to rebuild and sign the transaction there. If it doesn't work well your only option is to wait for a week until the transaction drop in the mempool.

newbie
Activity: 8
Merit: 0
truth is I smoke weed and I've been trying to get some through one of them dark markets. now looks like that is not going to happen, but yes it uses multi sig system. upon registering on the site I've entered my refund address and public key.
legendary
Activity: 2268
Merit: 18711
It's a 3 party system. I'm not really good knowing how and why this is required, but all I know is my bitcoins are stuck and I can not get them back.
Can you tell us the name of the vendor so we can take a look at their system ourselves? It sounds like your wallet with them is multi-sig, with them holding one key, you are holding one key, and the third maybe as a back up recovery key somewhere? When you first opened your account with this vendor, were you given a seed phrase or private key to back up?

I use Kleopatra software. Is the private key connected to my public key?
Kleopatra is for PGP keys, not bitcoin keys.

For both PGP and bitcoin, the public key is related to the private key, but you cannot find the private key only from knowledge of the public key.
newbie
Activity: 8
Merit: 0
I checked and it doesn't support replace-by-fee. It has 357 confirmations. I also contacted customer service.

I use Kleopatra software. Is the private key connected to my public key?
legendary
Activity: 3038
Merit: 4418
Crypto Swap Exchange
I think the best way to identify whichever key you're looking for is to find the redeem script.

Copy the string from the script column in your inputs and it should be a format like 0047....ae. Remove the zeros and check the number after that, if it is 47, remove 142 characters, 48, remove 144 characters or if it is 49, remove 146 characters. So, you'll be removing ... 0047(142/144/146 characters) and the remainder should be 52....53ae, if not then try again. Paste the rest of the string back into coinb.in/#Verify and it should display the redeem script and the addresses associated with that multisig.
 
Unfortunately, I can't recall any site that displays the redeemscript from a raw transaction so this is actually quite an inelegant solution.
newbie
Activity: 8
Merit: 0
I'm not entirely clear why you have to sign a transaction to receive a refund? Why can't the vendor just send the coins back to your wallet? What is the name of the vendor who is making you sign your own refund transaction?

Regardless, it seems like you are trying to sign the transaction with the private key of the address in the output, which is incorrect. You need to sign with the private keys of the addresses in the input. It is two-of-three multisig transaction with one key already signed. You must sign from one of the other keys before you can broadcast.
It's a 3 party system. I'm not really good knowing how and why this is required, but all I know is my bitcoins are stuck and I can not get them back.

It seems like you kind of understand my situation. So how can I sign this where can I get the correct key?
legendary
Activity: 2268
Merit: 18711
I'm not entirely clear why you have to sign a transaction to receive a refund? Why can't the vendor just send the coins back to your wallet? What is the name of the vendor who is making you sign your own refund transaction?

Regardless, it seems like you are trying to sign the transaction with the private key of the address in the output, which is incorrect. You need to sign with the private keys of the addresses in the input. It is two-of-three multisig transaction with one key already signed. You must sign from one of the other keys before you can broadcast.
newbie
Activity: 8
Merit: 0
Hello everyone and thanks all for your help much appreciated!

I've been using Electrum wallet since.
I'm trying to explain my situation better.

So this is where it starts this is my cancelled order. I've redacted parts of them, but you hopefully get the idea.
My order site has refund information as you can see from the picture. So what I did last time was using coinb.in and it worked. I copy this
code of numbers given to coinb.in.
https://postimg.cc/34wht4xM

Coinb.in recognizes the transaction. The address I used with my Electrum wallet is there.
https://postimg.cc/grq5xkz8

The next step is to sign the transaction with my private key. I remembered I have a file saved on my computer with my private key information. I have saved my private key and all PGP key password information on my computer and been using this the last 3-4 years. So I opened it and used the private key to which it wasn't recognized.

This is my saved private key information.
https://postimg.cc/bG9Csm88

Previously on the vendors website I'd save my bitcoin refund address and public key. The public key matches, but the address is different, because the new Electrum I updated in the past changes my Electrum receive address.
https://postimg.cc/62DYPgfr

Anyway, when I enter the private key from my saved note the following occurs:
https://postimg.cc/627MYtn6

So then what I did was I looked up all my addresses on my Electrum wallet and I found the one I did the transaction and it has the private key next to it like in the picture here:
https://postimg.cc/3kK9zgmc

I typed in this private key, but I still can't verify:
https://postimg.cc/627MYtn6

So my bitcoins are stuck now and I don't know what to do how to get them back IF.....

I hope I've explained myself better. What do you think I should do now?



legendary
Activity: 2268
Merit: 18711
If the transaction support replace-by-fee, either you cancel the transaction with high fee, or pump the fee with a higher fee, and see if truly the order is cancelled, but sending message to their customer care will be the next option, in which their support will be able to help you when the transaction is confirmed but maybe the order is still cancelled.
Using RBF in situations where a merchant has generated an invoice for you can cause more problems than it solves. Most of the time, the software they are using generates a new address for each customer, and then watches that address for an incoming transaction. Once it sees an incoming transaction, instead of watching the address, it then watches the transaction for 1/3/6/however many confirmations they require. If you use RBF to bump the fee, then the transaction they are watching becomes invalid and gets replaced with a new one, but the software does not pick up the new one. So your bitcoin gets sent to the correct address, but their software tells them your transaction was cancelled and you never paid.

Often, since the merchant only has a superficial knowledge of bitcoin, you then need to contact both them and the payment processor they are using to get things sorted out. If I'm ever in the situation of a transaction not going to confirm before the invoice expires, then I place a new order and use RBF to both cancel my stuck transaction and pay the new invoice at the same time.
legendary
Activity: 1568
Merit: 6660
bitcoincleanup.com / bitmixlist.org
If the order is canceled and the transaction is confirmed, you need to contact the merchant to refund you. Coinb.in can't help because you won't have access to the private key that belongs to the recipient.
OP says the transaction is stuck, which probably means the transaction is not confirmed yet, also the reason that would result to the cancellation of an order placed.

It's possible that the transaction confirmed after the merchant cancelled the order which would really mean they have the private key for the Bitcoin's he's looking for (he should just open a support ticket with the payment gateway and give them the order ID and ask them to return the bitcoins to him).
legendary
Activity: 1512
Merit: 4795
Leading Crypto Sports Betting & Casino Platform
Please I need help. I have made an transaction online using bitcoin, but the order cancelled and now my bitcoins are stuck. I've been using coinb.in the first time a while ago and was able to do it successfully. Now the private key is not letting me pass the same one I used last time. What can I do to get back my bitcoins?
You will need to know if the transaction is confirmed or not, if not confirmed, I do not know if you can double spend or cancel the unconfirmed bitcoin using coinb.in, but you can import your seed phrase on electrum to be able to cancel or double spend the transaction, provided if the transaction support replace-by-fee.

If the transaction support replace-by-fee, either you cancel the transaction with high fee, or pump the fee with a higher fee, and see if truly the order is cancelled, but sending message to their customer care will be the next option, in which their support will be able to help you when the transaction is confirmed but maybe the order is still cancelled. But cancelling the transaction if not confirmed yet with high fee will send back the funds back into your wallet.

If you are really confused about the state of your transaction, you can check blockchain explorer (like blockchair.com) to see if the transaction supports replace-by-fee and also if still stuck or confirmed.

If it does not support replace-by-fee, I will advice you to just wait until it is confirmed. You can use https://www.viabtc.com/tools/txaccelerator free acceleratator to accelerate the transaction if the fee used is not less than 10 sat/byte. You can paste the txid on this thread for help.

If the order is canceled and the transaction is confirmed, you need to contact the merchant to refund you. Coinb.in can't help because you won't have access to the private key that belongs to the recipient.
OP says the transaction is stuck, which probably means the transaction is not confirmed yet, also the reason that would result to the cancellation of an order placed.
legendary
Activity: 3374
Merit: 3095
Playbet.io - Crypto Casino and Sportsbook
What wallet do you use before you made this transaction?

You can only get the private keys on the wallet you use unless if you are using an exchange wallet or any web wallet like Coinbase or blockchain wallet.

What do you mean about this

Quote
Now the private key is not letting me pass the same one I used last time.

You mean you have the private key but it doesn't work in coinb.in?

You can try their latest version maybe their site is not yet updated to the latest one.
You can download the latest one from here https://github.com/OutCast3k/coinbin/releases
copper member
Activity: 2114
Merit: 1814
฿itcoin for all, All for ฿itcoin.
Could you share the Transaction ID of the said transaction you made when the order was cancelled if you don't mind?
What's the name of the wallet you were sending Bitcoins from?

If the transaction has already been confirmed then I am afraid that the only way you could recover your BTC is if the merchant accepts to send it back. If the transaction has not  yet been confirmed, and you own private keys to the address that sent the Bitcoins, there is a chance that you can double spend it. Just act faster before it gets confirmed
legendary
Activity: 3038
Merit: 4418
Crypto Swap Exchange
If the order is canceled and the transaction is confirmed, you need to contact the merchant to refund you. Coinb.in can't help because you won't have access to the private key that belongs to the recipient.
newbie
Activity: 8
Merit: 0
Hello.

Please I need help. I have made an transaction online using bitcoin, but the order cancelled and now my bitcoins are stuck. I've been using coinb.in the first time a while ago and was able to do it successfully. Now the private key is not letting me pass the same one I used last time. What can I do to get back my bitcoins?
Jump to: