<p>The node public key is not derived using BIP32. It's derived from the <code>hsm_secret</code> using an HKDF. The <code>hsmtool</code> utility can help you derive keys from your <code>hsm_secret</code>.</p>
<p>I described in <a href="https://github.com/ElementsProject/lightning/issues/3687" rel="nofollow noreferrer">this issue</a> how every key managed by Core-Lightning is derived. It was a while ago but i don't think it's changed since.</p>

CC BY-SA 4.0
2024-01-25T14:57:46.950Z
2024-01-25T14:57:46.950Z
Antoine Poinsot
<p>What derivation path does Core-Lightning use to end up at the Node Public Key (and private key), given a mnemonic seed?</p>

<bip32-hd-wallets><core-lightning>
Core-Lightning Derviation Path
Dalit Sairio
# Core-Lightning Derviation Path

(Asked by: username_0 on 2024-01-25)

What derivation path does Core-Lightning use to end up at the Node Public Key (and private key), given a mnemonic seed?

**Tags:** bip32-hd-wallets, core-lightning


---

## 1 answers

### Answer by username_1 on 2024-01-25. Score: 3 | Accepted answer

The node public key is not derived using BIP32. It's derived from the `hsm_secret` using an HKDF. The `hsmtool` utility can help you derive keys from your `hsm_secret`.

I described in [this issue](https://github.com/ElementsProject/lightning/issues/3687) how every key managed by Core-Lightning is derived. It was a while ago but i don't think it's changed since.


---

