<p>Yes, you can sign with that. Hardware wallets don't care about your gap limit, they aren't deriving individual keys when you setup the wallet. Rather they just store the master private key (or the seed used to derive the master private key) and then derive the individual keys needed on-the-fly. So if you tell it to sign with the 999,999th key, by giving it the correct derivation path, it will do so without complaint.</p>

CC BY-SA 4.0
2019-07-16T07:47:42.007Z
So Electrum just passes the derivation path corresponding to the input address to hardware wallet behind the scenes. I get it now, thanks a lot!
Daniil Tolstov
CC BY-SA 4.0
2019-07-15T16:06:50.577Z
2019-07-15T16:06:50.577Z
Ava Chow
<p>Suppose I use TREZOR with Electrum or Bitcoin Core HWI and significantly change the gap limit to, let's say, 100 000 addresses. I then receive BTC to my 999 999-th address and want to send them somewhere else. Will I be able to sign such transaction in TREZOR?</p>

<p>The question is, basically, does changing gap limit in Electrum or getting addresses beyond gap limit in Bitcoin Core HWI "getkeypool" generates extra private keys on TREZOR itself? And is such behaviour the same with all hardware wallets?</p>

<bitcoind><electrum><trezor><hardware-wallet>
Can TREZOR sign transaction with input address beyond gap limit?
Daniil Tolstov
# Can TREZOR sign transaction with input address beyond gap limit?

(Asked by: username_0 on 2019-07-15)

Suppose I use TREZOR with Electrum or Bitcoin Core HWI and significantly change the gap limit to, let's say, 100 000 addresses. I then receive BTC to my 999 999-th address and want to send them somewhere else. Will I be able to sign such transaction in TREZOR?

The question is, basically, does changing gap limit in Electrum or getting addresses beyond gap limit in Bitcoin Core HWI "getkeypool" generates extra private keys on TREZOR itself? And is such behaviour the same with all hardware wallets?

**Tags:** bitcoind, electrum, trezor, hardware-wallet


---

## 1 answers

### Answer by username_1 on 2019-07-15. Score: 2 | Accepted answer

Yes, you can sign with that. Hardware wallets don't care about your gap limit, they aren't deriving individual keys when you setup the wallet. Rather they just store the master private key (or the seed used to derive the master private key) and then derive the individual keys needed on-the-fly. So if you tell it to sign with the 999,999th key, by giving it the correct derivation path, it will do so without complaint.

> **Comments:**
> **username_0**: So Electrum just passes the derivation path corresponding to the input address to hardware wallet behind the scenes. I get it now, thanks a lot!  

---

