Pages:
Author

Topic: cannot sing messages with this type of address (Read 2046 times)

hero member
Activity: 560
Merit: 506
I prefer Zakir over Muhammed when mentioning me!
If you are unfamiliar with console, you can use https://coinb.in/#newMultiSig to create redeemScript.

@HCP: Nice! Keep up the good work! Wink

HCP
legendary
Activity: 2086
Merit: 4314
my engl is not perfect.  I used the addresss where was bitcoin. I kept bitcoin let say from 20.06 and then sent it to exange only on 29.06. The address moved from "receiving" to "used"
address that I have that holds coins is not one of "Change addresses"
Ok... so as Muhammed has suggested, we will start at the beginning and step our way through the process to try and find where the issue is Wink

So, first up... we'll check that your redeem script was created correctly. First of all, you should have found the correct "3" address in Electrum. You say it is now in your "used" section. So you would right click it and select "Public Keys":



That would then give you the popup window that shows the three public keys for your "3" address like this:


Note: they are most likely NOT in the correct order for generating your redeem script! They need to be in "lexicographic" order... this means you order them based on numbers AND characters... starting from the characters on the left.


In my case this results in them being in this order:

02e61b5030d21d2a520e19a22ce7180310d79c48f377a586d926fe38ff6f7df534
02e796ea85ac10b9c12a9b812982844b4b31c71c8a754b74c5213f9b0f7b6f456d
03341434abf31791a735e02ccc2cad2c1ddda85686545639b6f039c2317cd89125


You should have entered something similar to the following in the Electrum Console:
Code:
createmultisig(2,["firstPublicKey","secondPublicKey","thirdPublicKey"])


So using my public keys... I entered this:


Note that the "3" address here is the same as the "3" address that I got the public keys for. If this "3" address is NOT the same, then you have the public keys in the wrong order!


Now we put the redeem script into the Verify section at coinb.in:


Again, note that the "3" address here is the same as the "3" address from Electrum. If this "3" address is NOT the same, then your redeem script is wrong!

If your "3" address is the same as "3" address in Electrum, then everything is OK. Next we'll generate the xprv's to find the private keys for the three "1" addresses that match our redeem script public keys.
hero member
Activity: 560
Merit: 506
I prefer Zakir over Muhammed when mentioning me!
After you enter xPrv in "BIP32 Root Key", don't click "BIP32" in derivation path. By default it will use BIP44 default derivation path and see if addresses you are looking for are generated.

also there are no my addresses

Enter redeemScript you got in http://coinb.in/#verify and check if the address you got is the same as the address in your wallet.
sr. member
Activity: 756
Merit: 250
After you enter xPrv in "BIP32 Root Key", don't click "BIP32" in derivation path. By default it will use BIP44 default derivation path and see if addresses you are looking for are generated.

also there are no my addresses
hero member
Activity: 560
Merit: 506
I prefer Zakir over Muhammed when mentioning me!
After you enter xPrv in "BIP32 Root Key", don't click "BIP32" in derivation path. By default it will use BIP44 default derivation path and see if addresses you are looking for are generated.
sr. member
Activity: 756
Merit: 250
Which address are your coins in? Is it shown in that screenshot? You've checked on a block explorer that this addresses definitely contains your coins? Is it under the "Receiving" section or "Change" section?
Quote

sorry, but I don't know how to check.. I put my addreess (from electrum which had a bitocoin in https://blockexplorer.com/ but I can't understand the info , which block and etc) could you please show me sceen?

You don't have THAT many addresses... but just out of curiousity... I'm wondering if maybe the "3" address that you have that holds your coins is one of your "Change addresses"?? If it is under the "Change" section (don't forget to look in the the "used" section)... you will need to use the Derivation Path: m/1

my engl is not perfect.  I used the addresss where was bitcoin. I kept bitcoin let say from 20.06 and then sent it to exange only on 29.06. The address moved from "receiving" to "used"

address that I have that holds coins is not one of "Change addresses"

HCP
legendary
Activity: 2086
Merit: 4314
In case you missed it.

Btw, HCP, how did you get the key derivation path in step 6?
  -snip-
Actually, I did miss it... that's what you get for looking at messages in the middle of a 12hr shift at 0400 hrs! Tongue

I found the Derivation Path from Google Wink I found a a stackexchange thread regarding BIP32 derivation path for electrum. So, I tested it with the BIP39 page and confirmed that the m/0 path worked for me...

Note that I'm not sure if this is the Derivation Path for standard Electrum HD wallets, or if it is just for the MultiSig "addresses" being generated from a MultiSig Root Key... which in this case, is the 2-of-3 xprv's that we've generated by restoring the 2FA wallet.

the order was

02ff6cf947f8018fee296e198f95192ffd626a71f190xxx - 2
035987151bef91289b4102cd8a0c61bc7aefcd8883xxx -3
025bb930fa3a82d7c7567f08637e75835060a4aac4xxx -1
so you put them into electrum as:
Code:
createmultisig(2, ["025bb930fa3a82d7c7567f08637e75835060a4aac4xxx","02ff6cf947f8018fee296e198f95192ffd626a71f190xxx","035987151bef91289b4102cd8a0c61bc7aefcd8883xxx"])

Quote
then I got address where I had bitcoin and from  where I tooke public keys for the script. I have received 3 address starting from 1 and no one I can find on step 7.
Which address are your coins in? Is it shown in that screenshot? You've checked on a block explorer that this addresses definitely contains your coins? Is it under the "Receiving" section or "Change" section?

Quote
I have huge amont addresses  in my wallet.. http://clip2net.com/s/3LLJQYM
You don't have THAT many addresses... but just out of curiousity... I'm wondering if maybe the "3" address that you have that holds your coins is one of your "Change addresses"?? If it is under the "Change" section (don't forget to look in the the "used" section)... you will need to use the Derivation Path: m/1

hero member
Activity: 560
Merit: 506
I prefer Zakir over Muhammed when mentioning me!
In case you missed it.

Btw, HCP, how did you get the key derivation path in step 6?
  -snip-
sr. member
Activity: 756
Merit: 250
Did you make sure you entered the public keys in the correct order when you were generating the redeem script? did the "3" address that Electrum displayed with the redeem script actually match the "3" address that you are trying to use to claim from?

if you didn't get the order right, your redeem script (and "1" addresses) will be wrong.

How many addresses are in your 2FA wallet?


the order was

02ff6cf947f8018fee296e198f95192ffd626a71f190xxx - 2
035987151bef91289b4102cd8a0c61bc7aefcd8883xxx -3
025bb930fa3a82d7c7567f08637e75835060a4aac4xxx -1

then I got address where I had bitcoin and from  where I tooke public keys for the script. I have received 3 address starting from 1 and no one I can find on step 7.


I have huge amont addresses  in my wallet.. http://clip2net.com/s/3LLJQYM
HCP
legendary
Activity: 2086
Merit: 4314
Did you make sure you entered the public keys in the correct order when you were generating the redeem script? did the "3" address that Electrum displayed with the redeem script actually match the "3" address that you are trying to use to claim from?

if you didn't get the order right, your redeem script (and "1" addresses) will be wrong.

How many addresses are in your 2FA wallet?
sr. member
Activity: 756
Merit: 250
Btw, HCP, how did you get the key derivation path in step 6?

I did till step 6. But on step 7 cann't find  one that matches one of the "1" addresses generated in Step 3...

Try 30 or an increased number in "Show more rows". I haven't done it, but if derivation path m/0 is correct, address you are looking for will be there.

tried 100..but online, did not get ho to use offline

Did you get the address you are looking for?

no, addresses from step 3 I don't see on step 7
hero member
Activity: 560
Merit: 506
I prefer Zakir over Muhammed when mentioning me!
Btw, HCP, how did you get the key derivation path in step 6?

I did till step 6. But on step 7 cann't find  one that matches one of the "1" addresses generated in Step 3...

Try 30 or an increased number in "Show more rows". I haven't done it, but if derivation path m/0 is correct, address you are looking for will be there.

tried 100..but online, did not get ho to use offline

Did you get the address you are looking for?
sr. member
Activity: 756
Merit: 250
Btw, HCP, how did you get the key derivation path in step 6?

I did till step 6. But on step 7 cann't find  one that matches one of the "1" addresses generated in Step 3...

Try 30 or an increased number in "Show more rows". I haven't done it, but if derivation path m/0 is correct, address you are looking for will be there.

tried 100..but online, did not get ho to use offline
hero member
Activity: 560
Merit: 506
I prefer Zakir over Muhammed when mentioning me!
Btw, HCP, how did you get the key derivation path in step 6?

I did till step 6. But on step 7 cann't find  one that matches one of the "1" addresses generated in Step 3...

Try 30 or an increased number in "Show more rows". I haven't done it, but if derivation path m/0 is correct, address you are looking for will be there.
sr. member
Activity: 756
Merit: 250
I did till step 6. But on step 7 cann't find  one that matches one of the "1" addresses generated in Step 3...
hero member
Activity: 560
Merit: 506
I prefer Zakir over Muhammed when mentioning me!
  -snip-
Step 7. Hunt through the list of generated addresses until you find one that matches one of the "1" addresses generated in Step 3:
[ img]https://i.imgur.com/wlF1Mny.png[/img]

Congratulations, you now have the private key for one of your 3 "MultiSig" addresses.

  -snip-

There is only "one" multisig address address and m number of addresses(public key, actually) used to create a multisig address. The private key you get by follow the steps above is private key corresponding to one of the addresses used to create your multisig address.

  -snip-
Personally, I think I prefer the BIP39 website method as it creates only one wallet that has both the private keys for signing the message.

I didn't understand what you mean by this(bolded part). Can you please explain?
HCP
legendary
Activity: 2086
Merit: 4314
Ok... I *think* I might have this all figured out... I can't test it, as I don't have any coins in a MultiSig address, so the Lumens claim form won't let me get to the message signing part. So, this method is 100% UNTESTED!

NOTE: Please consider the risks of potentially "exposing" your xprv's... you should run offline copies of all websites, and run them using non-networked Virtual Machines or air gapped PCs or "Live" distro's if possible. I will not be held accountable for any loss of coins should you choose to follow these instructions!

HCP's extremely complicated 12 Step Method for claiming Lumens from an Electrum 2FA MultiSig Address

Step 1. Before you start, create offline versions of:
https://coinb.in/#verify
https://iancoleman.github.io/bip39/

Step 2. Retrieve your redeem script. This can be achieved following the previous instructions here: https://bitcointalksearch.org/topic/m.19830190

Step 3. Once you have your redeem script, you can identify the P2PKH (aka "1") addresses that you need to sign your message with by using the following site: https://coinb.in/#verify  Again, you should really download an offline copy (link provided at the bottom of the website!)


Step 4.
"Restore" your Electrum 2FA wallet ("File" -> "New/Restore" -> Call it "restored2FA" and click "Next" -> "Wallet with two-factor authentication" -> "I already have a seed" -> [Enter your seed] and click "Next" -> "Disable" -> Don't enter a password and click "Next" WARNING: This creates an unencrypted wallet that has your xprv in PLAINTEXT hence the warnings about doing this OFFLINE!!!

Step 5. Find your "restored2FA" wallet file (%appdata%\Electrum\wallets) and open it in the Text editor of your choice. You should find sections labelled "x1/" and "x2/" that contain your two xprv "rootKeys":


Step 6. Using your offline copy of https://iancoleman.github.io/bip39/  - Put the "x1/" xprv into the "BIP32 Root Key" section (leave mnemonic empty). Select "BIP32" under Derivation Path. Set "Client" to "Custom Derivation" and set the Derivation Path to "m/0":

NOTE: if your original "3" address was a "Change" address (check the address tab in Electrum), you need to use "m/1"



Step 7. Hunt through the list of generated addresses until you find one that matches one of the "1" addresses generated in Step 3 (The PubKey should also match one of the PubKeys used to generate your redeem script in Step 2):


Congratulations, you now have the private key for one of your 3 "MultiSig" addresses.

Step 8.
Repeat Steps 6 and 7 using the "x2/" xprv... you now have 2 of your 3 private keys! Cheesy

Step 9. Import those private keys into a "standard" Electrum wallet ("File" -> "New/Restore" -> "Standard Wallet" -> "Use public or private keys" -> Copy/Paste the private keys and click "Next"... and use them to sign the Stellar/Lumens verification message as required.

Step 10. Make sure you have deleted the unencrypted "restored2FA" wallet. or alternatively, move all your coins out of your 2FA wallet as you should probably consider it compromised.

Step 11. Enjoy your Lumens Wink

(Optional) Step 12. Consider a tip if this actually works! Tongue



As an alternative to using the https://iancoleman.github.io/bip39/ website, you can just create a new Electrum wallet, and import the xprv: "File" -> "New/Restore" -> "Standard Wallet" -> "Use public or private keys" -> Copy/Paste the "x1/" xprv and click "Next". Your wallet should generate the required address. Check the "address" tab, you may need to select "Wallet" -> "Addresses" if it is not visible:


You can then right click this and "Sign/Verify Message"... you will need to then "restore" another wallet using the "x2/" xpriv, and sign the message using the 2nd required address.

Personally, I think I prefer the BIP39 website method as it creates only one wallet that has both the private keys for signing the message.
member
Activity: 83
Merit: 10
hi guys,
I met the same problem, and asked to sign 2 of 3 address form P2SH address.
If I give up the electrum 2FA wallet and restore, could I sign after that?

No, you can't sign messages with multisig address (starting with '3'). There is a way to prove ownership of that address. For that, see post above yours.

Hi Zakir,

Was the way to prove ownership of that address as below?

'Getting 2 sigs using a 2FA wallet would require you to ask TrustedCoin for help or to restore your 2FA wallet using your seed which apparently puts 2 of the 3 keys on your computer... see: http://docs.electrum.org/en/latest/2fa.html'

So that if I restore the 2FA electrum wallet, I would get 2 of 3 keys of '1' address?

No! Restoring 2FA wallet would put two xprv keys* in your computer. To know P2PKH addresses (starting with '1') needed to sign message with and to get their private keys, see https://bitcointalksearch.org/topic/m.19845248.

By the way, please don't post same thing in many threads. Stick to one and post in another only if you didn't get any reply. You need to at least wait a few hours, sometime for even a day.

* 2-of-3 multisig addresses are created on 2FA wallet. Those two keys are what needed to sign a transaction when sending bitcoins.

Noted with thanks, Zakir.
hero member
Activity: 560
Merit: 506
I prefer Zakir over Muhammed when mentioning me!
hi guys,
I met the same problem, and asked to sign 2 of 3 address form P2SH address.
If I give up the electrum 2FA wallet and restore, could I sign after that?

No, you can't sign messages with multisig address (starting with '3'). There is a way to prove ownership of that address. For that, see post above yours.

Hi Zakir,

Was the way to prove ownership of that address as below?

'Getting 2 sigs using a 2FA wallet would require you to ask TrustedCoin for help or to restore your 2FA wallet using your seed which apparently puts 2 of the 3 keys on your computer... see: http://docs.electrum.org/en/latest/2fa.html'

So that if I restore the 2FA electrum wallet, I would get 2 of 3 keys of '1' address?

No! Restoring 2FA wallet would put two xprv keys* in your computer. To know P2PKH addresses (starting with '1') needed to sign message with and to get their private keys, see https://bitcointalksearch.org/topic/m.19845248.

By the way, please don't post same thing in many threads. Stick to one and post in another only if you didn't get any reply. You need to at least wait a few hours, sometime for even a day.

* 2-of-3 multisig addresses are created on 2FA wallet. Those two keys are what needed to sign a transaction when sending bitcoins.
member
Activity: 83
Merit: 10
hi guys,
I met the same problem, and asked to sign 2 of 3 address form P2SH address.
If I give up the electrum 2FA wallet and restore, could I sign after that?

No, you can't sign messages with multisig address (starting with '3'). There is a way to prove ownership of that address. For that, see post above yours.

Hi Zakir,

Was the way to prove ownership of that address as below?

'Getting 2 sigs using a 2FA wallet would require you to ask TrustedCoin for help or to restore your 2FA wallet using your seed which apparently puts 2 of the 3 keys on your computer... see: http://docs.electrum.org/en/latest/2fa.html'

So that if I restore the 2FA electrum wallet, I would get 2 of 3 keys of '1' address?
Pages:
Jump to: