Author

Topic: Can't sign a message with bitcoin core (Read 357 times)

legendary
Activity: 2870
Merit: 7490
Crypto Swap Exchange
June 07, 2022, 06:26:59 AM
#26
I don't have/use any of that stuff! I might very well be in a dead end here! Not sure yet, regarding my situation!
What's stopping you from doing this?
put Electrum on a USB-stick (or CDR), and install it on your offline node. Import privkey and sign offline.

This offline node is in fact a virtual machine. And the problem is that I created this VM as a qcow2 image and created LVMs inside it, which apparently is redundant and seems that using LVM with a qcow2 image is losing all properties that qcow2 image provides (I am not sure which properties or features, I was just been told that).

And on top of that, these LVMs are LUKS encrypted, of course, so, I'm having issues to be able to mount this qcow2 image, decrypt the volumes and be able to access them with the VM off.

Rather than mess with your qcow2 image, why don't you create another image or mount directory which contain Electrum? If the guest has SPICE protocol, you could simply use Folder sharing feature[1].

[1] https://www.spice-space.org/spice-user-manual.html
hero member
Activity: 1274
Merit: 681
I rather die on my feet than to live on my knees
July 12, 2022, 08:20:31 AM
#25
I almost forget about this thread as I solved the problem.
I made things simpler and probably a bit more secure (removing complexity might mean being more secure)

At this point, my secure vault, which I consider air gapped (explain why later), is the following:

Create Luks encrypted container
Mount this container somewhere in my laptop
Installed Debian (GUI) on it, with encrypted partitions (also with Luks)
Installed all needed software, updates, etc
Moved all sensitive information from old VM to this new VM while host machine (my laptop) is offline. This is why I consider it air gapped. I turn off wifi while the VM is being used and PKs are in plain text, even if it's only for a second!
Removed network interface (and never add it again).
Whenever I need/want to update the software in the VM, I have 2 choices:
1 - create new VM and install latest versions and updates
2 - update packages and software knowing that this forces me to re-add network interface (not likely to happen in my case)
legendary
Activity: 3290
Merit: 16489
Thick-Skinned Gang Leader and Golden Feather 2021
June 06, 2022, 04:20:59 PM
#24
This offline node is in fact a virtual machine.
If the host OS is online, it's not air-gapped and I wouldn't call it a a cold wallet.

Quote
And the problem is that I created this VM as a qcow2 image and created LVMs inside it, which apparently is redundant and seems that using LVM with a qcow2 image is losing all properties that qcow2 image provides (I am not sure which properties or features, I was just been told that).

And on top of that, these LVMs are LUKS encrypted, of course, so, I'm having issues to be able to mount this qcow2 image, decrypt the volumes and be able to access them with the VM off.
I'm not familiar with qcow2, but it sounds like a good opportunity to start over from scratch. Or just get another VM and do the Electrum signing in there. Or use the "Shared Folders" feature (in VirtualBox) to copy Electrum from the host OS.
legendary
Activity: 2212
Merit: 7064
June 06, 2022, 04:17:16 PM
#23
I don't have/use any of that stuff! I might very well be in a dead end here! Not sure yet, regarding my situation!
It's easy and cheap to buy or make your own DIY trezor hardware wallet, but I am not 100% sure it would work in your situation.
Last suggestion I have is to try using some alternative desktop wallets instead of Bitcoin Core, and you don't have many options to choose, but they are all open source.
It appears that Specter wallet is supporting signing a message from bech32 addresses, and I am not sure about Sparrow wallet, so you need to check that for yourself.

1. Specter desktop wallet:
https://specter.solutions/desktop/
https://docs.specter.solutions/desktop/sign-message/

2. Sparrow wallet:
https://sparrowwallet.com/

And on top of that, these LVMs are LUKS encrypted, of course, so, I'm having issues to be able to mount this qcow2 image, decrypt the volumes and be able to access them with the VM off.
I guess that's what you get when you complicate things to much Wink
hero member
Activity: 1274
Merit: 681
I rather die on my feet than to live on my knees
June 06, 2022, 04:05:57 PM
#22
I don't have/use any of that stuff! I might very well be in a dead end here! Not sure yet, regarding my situation!
What's stopping you from doing this?
put Electrum on a USB-stick (or CDR), and install it on your offline node. Import privkey and sign offline.

This offline node is in fact a virtual machine. And the problem is that I created this VM as a qcow2 image and created LVMs inside it, which apparently is redundant and seems that using LVM with a qcow2 image is losing all properties that qcow2 image provides (I am not sure which properties or features, I was just been told that).

And on top of that, these LVMs are LUKS encrypted, of course, so, I'm having issues to be able to mount this qcow2 image, decrypt the volumes and be able to access them with the VM off.
legendary
Activity: 3290
Merit: 16489
Thick-Skinned Gang Leader and Golden Feather 2021
June 06, 2022, 01:35:04 AM
#21
I don't have/use any of that stuff! I might very well be in a dead end here! Not sure yet, regarding my situation!
What's stopping you from doing this?
put Electrum on a USB-stick (or CDR), and install it on your offline node. Import privkey and sign offline.
hero member
Activity: 1274
Merit: 681
I rather die on my feet than to live on my knees
June 05, 2022, 03:43:27 PM
#20
I don't know if you could try connecting your bitcoin node with Trezor Suite app (if you own a Trezor hardware wallet) and sign a message with their app instead of using Bitcoin core.
They recently added this option and I think they are supporting Bech32 address types, but I didn't test this myself so I can't confirm.
Here are all the pages I found with instructions for that:
https://wiki.trezor.io/Full-node_wallet
https://wiki.trezor.io/User_manual:Signing_and_verifying_messages



I don't have/use any of that stuff! I might very well be in a dead end here! Not sure yet, regarding my situation!
legendary
Activity: 2212
Merit: 7064
June 05, 2022, 11:49:43 AM
#19
I don't know if you could try connecting your bitcoin node with Trezor Suite app (if you own a Trezor hardware wallet) and sign a message with their app instead of using Bitcoin core.
They recently added this option and I think they are supporting Bech32 address types, but I didn't test this myself so I can't confirm.
Here are all the pages I found with instructions for that:
https://wiki.trezor.io/Full-node_wallet
https://wiki.trezor.io/User_manual:Signing_and_verifying_messages

hero member
Activity: 1274
Merit: 681
I rather die on my feet than to live on my knees
June 04, 2022, 11:20:22 AM
#18
Well, I don't want to get into processes that I don't know very well and as of now, I'm facing other problems.
I'm not being able to transfer Electrum binaries to my offline vm. I have to wait for some help becauseI'm getting some errors, but not going to discuss them here, I guess. This is now Linux related, not Bitcoin itself or Electrum.
When I'm able to send Electrum binaries to the offline machine, I'll see if I have the needed dependencies to run the binary and sign the message! :p

One problem never comes alone! xD
And I don't want to use samba because that makes me to use network devices in the vm and I don't want!
Gimme some time to see if I can solve the problem of trnasferring Electrum to the offline vm and then I'll give some feedback here!

Can you please message me to give me your experience on the "Socks5() connect to xxxx.onion:xxxx failed: host unreachable" problem and the tor permissions problem you faced in earlier threads? I don't get an answer out of the threads and I can't find an answer anywhere else.
 
Thanks

Just create a thread and describe your own problem. People will help you as I'm not focused on that now! I have this problem to fix. I may be able to help after I fix my issue, ok? Sorry, man!
newbie
Activity: 2
Merit: 0
June 04, 2022, 11:11:18 AM
#17
Well, I don't want to get into processes that I don't know very well and as of now, I'm facing other problems.
I'm not being able to transfer Electrum binaries to my offline vm. I have to wait for some help becauseI'm getting some errors, but not going to discuss them here, I guess. This is now Linux related, not Bitcoin itself or Electrum.
When I'm able to send Electrum binaries to the offline machine, I'll see if I have the needed dependencies to run the binary and sign the message! :p

One problem never comes alone! xD
And I don't want to use samba because that makes me to use network devices in the vm and I don't want!
Gimme some time to see if I can solve the problem of trnasferring Electrum to the offline vm and then I'll give some feedback here!

Can you please message me to give me your experience on the "Socks5() connect to xxxx.onion:xxxx failed: host unreachable" problem and the tor permissions problem you faced in earlier threads? I don't get an answer out of the threads and I can't find an answer anywhere else.
 
Thanks
hero member
Activity: 1274
Merit: 681
I rather die on my feet than to live on my knees
June 04, 2022, 10:53:25 AM
#16
Well, I don't want to get into processes that I don't know very well and as of now, I'm facing other problems.
I'm not being able to transfer Electrum binaries to my offline vm. I have to wait for some help becauseI'm getting some errors, but not going to discuss them here, I guess. This is now Linux related, not Bitcoin itself or Electrum.
When I'm able to send Electrum binaries to the offline machine, I'll see if I have the needed dependencies to run the binary and sign the message! :p

One problem never comes alone! xD
And I don't want to use samba because that makes me to use network devices in the vm and I don't want!
Gimme some time to see if I can solve the problem of trnasferring Electrum to the offline vm and then I'll give some feedback here!
legendary
Activity: 3500
Merit: 6320
Crypto Swap Exchange
June 04, 2022, 07:14:38 AM
#15
If they can't use electrum to verify the address the other way to do it is to use another app and then import the private key into your core wallet.
It is a lot more convoluted but it can be done and not the best but it can be done. What I wound up doing when I had to do it.

1) Old wiped android phone with no wi-fi or cell access install coinomi though USB
2) generate new wallet and recovery phrase, get address and write down phrase
3) iancoleman on an offline PC to get private key and import into core
4) Sign with coinomi save as text document on phone move file though USB (or copy by hand, like I'm not going to make a mistake by hand)

Not as secure, a lot more cumbersome but I got it done.

-Dave
legendary
Activity: 2618
Merit: 6452
Self-proclaimed Genius
June 03, 2022, 09:47:22 PM
#14
Take note that they wont be able to verify your message with other software.
They'll have to specifically use Electrum, so include it to your email/chat or the signed message itself.
What you mean? They, who? The message is given to me to sign. I'm not sure I can change it!
Then just include a note saying "verify using Electrum" together with the signed message.

"They" are the ones who'll receive your signed message, if they try to verify your message using Bitcoin Core or other tool, it will fail to verify.
At the moment, only Electrum can verify messages signed with Native SegWit address via Electrum (with exceptions to a few tools).
newbie
Activity: 2
Merit: 0
June 03, 2022, 05:34:15 PM
#13
Hi, I don't want to disturb your thread, but can you please message me darkv0rt3x. I have some same problems as you about earlier posts of you (tor configuration in bitcoin core). I want to ask you how you solved those problems and therefore I want to message you, but your account is closed for "newbies", so they advised me to "post in their relevant thread to remind them to enable this setting".

Can you please message me so I can ask my question? (I will delete this message after that to avoid cluttering the post).


Thanks
hero member
Activity: 1274
Merit: 681
I rather die on my feet than to live on my knees
June 03, 2022, 03:59:39 PM
#12
Well, thing is that I didn't want to expose the priv key to the internet. I create these addresses in offline nodes so that the priv keys never "sees" the internet!
If I don't have another way, I'll do that, and then, I will create a fresh new address in my offline node and transfer the Bitcoin there!

For now, there is no other way but you can still use Electrum on an offline PC without the internet or transfer the portable Electrum through a USB flash drive and open it from your offline PC/Node. Since you said you never connect it to the internet it is safe to simply import the private key to Electrum and make a signed message.

Or if you think or feel after doing that address is not safe anymore then you can generate a new address with Bitcoin core and then transfer all of your funds to that address.

I'll do that!

Well, thing is that I didn't want to expose the priv key to the internet. I create these addresses in offline nodes so that the priv keys never "sees" the internet!
If I don't have another way, I'll do that, and then, I will create a fresh new address in my offline node and transfer the Bitcoin there!

For now, there is no other way but you can still use Electrum on an offline PC without the internet or transfer the portable Electrum through a USB flash drive and open it from your offline PC/Node. Since you said you never connect it to the internet it is safe to simply import the private key to Electrum and make a signed message.

Or if you think or feel after doing that address is not safe anymore then you can generate a new address with Bitcoin core and then transfer all of your funds to that address.

yeah, I'm going for Electrum for now!

This may not be necessary, but just saying. If you can not sign a message with Bitcoin Core using natiive segwit address, you can use Electrum using Tor to generate address and sign message from there. That do not affect your privacy unless you want to use the address for sending and receiving bitcoin.

There's little risk to privacy if you import a single private key into a new Electrum wallet and connect to a public server.  Since there are no other keys associated with the master public key, there are no other addresses to associate with the one that's being imported.

There will be no internet connection whatsoever!

-snip-
If I don't have another way, I'll do that, and then, I will create a fresh new address in my offline node and transfer the Bitcoin there!
Take note that they wont be able to verify your message with other software.
They'll have to specifically use Electrum, so include it to your email/chat or the signed message itself.

What you mean? They, who? The message is given to me to sign. I'm not sure I can change it!

The app I'm buying from is asking me to sign a message so that it can confirm I'm actually the owner of that address!
I haven't seen that before. Is that an AML thing?

You can do this offline
~
Use Tor.
No need for Tor on an air-gapped system.

Well, thing is that I didn't want to expose the priv key to the internet. I create these addresses in offline nodes so that the priv keys never "sees" the internet!
That makes it even easier: put Electrum on a USB-stick (or CDR), and install it on your offline node. Import privkey and sign offline.

A different approach: pay from a legacy address Smiley It's weird that Bitcoin Core still can't sign a message from a Segwit address, while it made Segwit the default. That basically removed functionality.

Yeah, I'll do that!
legendary
Activity: 3290
Merit: 16489
Thick-Skinned Gang Leader and Golden Feather 2021
June 03, 2022, 01:59:33 AM
#11
The app I'm buying from is asking me to sign a message so that it can confirm I'm actually the owner of that address!
I haven't seen that before. Is that an AML thing?

You can do this offline
~
Use Tor.
No need for Tor on an air-gapped system.

Well, thing is that I didn't want to expose the priv key to the internet. I create these addresses in offline nodes so that the priv keys never "sees" the internet!
That makes it even easier: put Electrum on a USB-stick (or CDR), and install it on your offline node. Import privkey and sign offline.

A different approach: pay from a legacy address Smiley It's weird that Bitcoin Core still can't sign a message from a Segwit address, while it made Segwit the default. That basically removed functionality.
legendary
Activity: 2618
Merit: 6452
Self-proclaimed Genius
June 02, 2022, 10:31:03 PM
#10
-snip-
If I don't have another way, I'll do that, and then, I will create a fresh new address in my offline node and transfer the Bitcoin there!
Take note that they wont be able to verify your message with other software.
They'll have to specifically use Electrum, so include it to your email/chat or the signed message itself.
copper member
Activity: 2338
Merit: 4543
Join the world-leading crypto sportsbook NOW!
June 02, 2022, 08:25:55 PM
#9
This may not be necessary, but just saying. If you can not sign a message with Bitcoin Core using natiive segwit address, you can use Electrum using Tor to generate address and sign message from there. That do not affect your privacy unless you want to use the address for sending and receiving bitcoin.

There's little risk to privacy if you import a single private key into a new Electrum wallet and connect to a public server.  Since there are no other keys associated with the master public key, there are no other addresses to associate with the one that's being imported.
legendary
Activity: 3472
Merit: 3217
Playbet.io - Crypto Casino and Sportsbook
June 02, 2022, 05:18:44 PM
#8
Well, thing is that I didn't want to expose the priv key to the internet. I create these addresses in offline nodes so that the priv keys never "sees" the internet!
If I don't have another way, I'll do that, and then, I will create a fresh new address in my offline node and transfer the Bitcoin there!

For now, there is no other way but you can still use Electrum on an offline PC without the internet or transfer the portable Electrum through a USB flash drive and open it from your offline PC/Node. Since you said you never connect it to the internet it is safe to simply import the private key to Electrum and make a signed message.

Or if you think or feel after doing that address is not safe anymore then you can generate a new address with Bitcoin core and then transfer all of your funds to that address.
legendary
Activity: 1512
Merit: 4795
Leading Crypto Sports Betting & Casino Platform
June 02, 2022, 04:20:28 PM
#7
Well, thing is that I didn't want to expose the priv key to the internet. I create these addresses in offline nodes so that the priv keys never "sees" the internet!
If I don't have another way, I'll do that, and then, I will create a fresh new address in my offline node and transfer the Bitcoin there!
If you use cold wallet with Bitcoin Core, like hardware wallet. The Electrum wallet can be on a perfectly airgapped device if setup properly. It should not even sychronize with the blockchain.
hero member
Activity: 1274
Merit: 681
I rather die on my feet than to live on my knees
June 02, 2022, 04:11:55 PM
#6
That is the case. Receive Bitcoin. The app I'm buying from is asking me to sign a message so that it can confirm I'm actually the owner of that address!
This is just my opinion, I think you can also wait for the opinion of others.

You can do this offline, not make the Electrum wallet sychronize with the blockchain:
If you are able to the export/see the  private key (child private key, not master private key), of the address you use for purchase, you can import it on Electrum, sign a message with the address on Electrum. Use Tor.

After you have successfully done that and successfully make the purchase, you can delete the Electrum wallet.

Well, thing is that I didn't want to expose the priv key to the internet. I create these addresses in offline nodes so that the priv keys never "sees" the internet!
If I don't have another way, I'll do that, and then, I will create a fresh new address in my offline node and transfer the Bitcoin there!
legendary
Activity: 1512
Merit: 4795
Leading Crypto Sports Betting & Casino Platform
June 02, 2022, 04:04:15 PM
#5
That is the case. Receive Bitcoin. The app I'm buying from is asking me to sign a message so that it can confirm I'm actually the owner of that address!
This is just my opinion, I think you can also wait for the opinion of others.

You can do this offline, not make the Electrum wallet sychronize with the blockchain:
If you are able to export the private key (child private key, not master private key), of the address you use for purchase, you can import it on Electrum, sign a message with the address on Electrum.

After you have successfully done that and successfully make the purchase, you can delete the Electrum wallet.
hero member
Activity: 1274
Merit: 681
I rather die on my feet than to live on my knees
June 02, 2022, 03:51:01 PM
#4
This may not be necessary, but just saying. If you can not sign a message with Bitcoin Core using natiive segwit address, you can use Electrum using Tor to generate address and sign message from there. That do not affect your privacy unless you want to use the address for sending and receiving bitcoin.

That is the case. Receive Bitcoin. The app I'm buying from is asking me to sign a message so that it can confirm I'm actually the owner of that address!
legendary
Activity: 1512
Merit: 4795
Leading Crypto Sports Betting & Casino Platform
June 02, 2022, 03:41:31 PM
#3
This may not be necessary, but just saying. If you can not sign a message with Bitcoin Core using natiive segwit address, you can use Electrum using Tor to generate address and sign message from there. That do not affect your privacy unless you want to use the address for sending and receiving bitcoin.
legendary
Activity: 3290
Merit: 16489
Thick-Skinned Gang Leader and Golden Feather 2021
June 02, 2022, 03:18:49 PM
#2
So, why am I getting this error message??
As far as I know, Bitcoin Core can't sign messages from Bech32 addresses.
hero member
Activity: 1274
Merit: 681
I rather die on my feet than to live on my knees
June 02, 2022, 03:11:05 PM
#1
Hello.

I'm trying to sign a message with the node that created an address but I'm getting the error message saying:
Code:
$ bitcoin-cli signmessage "bc1.......................8x" "I confirm to be the sole owner of the (BTC) address used for b.....4-e...-45.....-b.....-dc..........."
error code: -3
error message:
Address does not refer to key

If I unlock the wallet and dump the priv key, it dumps it, which I think it means the address was created with this node for sure or at least that this node has the priv key.

So, why am I getting this error message??
Jump to: