Bitcoin Forum
July 16, 2024, 01:38:30 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1]
1  Bitcoin / Electrum / Re: Offline TX signing with hardened address on: July 18, 2023, 09:46:47 PM

If it's for importing private keys there is a thread here on the forum that you can bookmark check this link below you can also read this guide How to import the private key into Electrum.

- https://bitcointalk.org/index.php?topic=5096376.msg51114438#msg51114438
Yes that's the kind of thing I was looking for, thank you!

This will never work in Electrum since the derivation path that you can edit only applies up to the BIP39's account index.
Any additional derivation paths will work regardless despite being non-standard.

Whatever the derivation path that you've set,
Electrum will follow it up with internal/external index (for receiving and change path), then the "address_index";
both are hardcoded to be unhardened.
Kinda annoying, my understanding from an old paper by Vitalik is that hardened addresses are far more secure due to a trivially easy attack on the whole HD wallet if one child private key is compromised.

Is actually the same kind of address that Electrum creates (except with xx instead of the xx', which is unnecessary because you already have 3x hardening in the root).
I originally decided to do things the hard way and generate addresses externally because I wanted a lot more control over the seed generation process than Electrum allows. Good info though, thanks
2  Bitcoin / Electrum / Re: Offline TX signing with hardened address on: July 17, 2023, 10:47:48 PM
Wow that was it, thank you so much. Totally forgot about that and not even sure where I read it the first time.

Do you happen to have a good source to point me towards re Electrum or Bitcoin keys in general to avoid making dumb mistakes like this in the future?

Thanks again
3  Bitcoin / Electrum / Offline TX signing with hardened address on: July 17, 2023, 08:43:24 PM
Hi all, wondering if anyone knows how to get Electrum address generation & transaction signing to work with hardened addresses. I actually got it to work a few months ago, so I know it's possible. Just messing something up now. Here's the setup:

BIP39 seed used with Ian Coleman's tool to generate a number of hardened child addresses (m/84'/0'/0'/0/xx').
Online device (Windows, Electrum 4.4.5) with watch-only wallet generated from a hardened child receive address.
Offline device (Linux, Electrum 4.0.9) with wallet generated from a corresponding hardened child private key.
Transaction generated on watch-only wallet, then transferred via QR code to and from offline device for signing.

I am pretty sure this method of using a wallet with single imported child addresses is what I used previously. But now it breaks down when trying to generate the public child address from the private child key on the offline device. The public address generated is completely wrong; it starts with 1 rather than bc1, so not even BIP84. So of course when I go to try to sign the imported transaction, the sign button is greyed out.

It seems like Electrum auto-updated to a newer version on the Windows device since I got it working previously, but that shouldn't matter since the receive address generation on the offline device is the problem. I did try rolling back to 4.3.3 on the online device, but then the offline device generated an error when trying to import the transaction QR code.

I did also try to generate the whole HD wallet from seed phrase, blowing past the BIP39 warning Electrum gives, but the resultant generated addresses are also incorrect. At least these ones I recognize - they are just the unhardened addresses associated with the seed. I messed around with the derivation pathway, such as by pasting the pathway from Ian Coleman's tool, but that just made the addresses unrecognizable.
Also tried generating from account extended private key, but got the same unhardened addresses.

Any ideas?? Electrum documentation doesn't mention hardened addresses at all.
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!