<p>Wrong cointype. I'm assuming mainnet = 0, and testnet = 1,  although I can't find any documentation on this.</p>
<pre><code>m/1017'/1'/6'/0
</code></pre>
<p>gives the correct identity key.</p>

CC BY-SA 4.0
2020-10-19T13:26:57.813Z
2020-10-19T13:26:57.813Z
abrahamk
<p>Okay. A short summary of the problem: I'm trying to derive the root key from LND from the aezeed, but I can't get it right.</p>
<p>Assume the following seed (aezeed):</p>
<pre><code>ability quality bulb clap quality piano focus ivory trust essence improve book antique analyst double equip reason venue jazz zoo host potato harvest divorce
</code></pre>
<p>For which the following root keys result:</p>
<pre><code>tprv8ZgxMBicQKsPct7CvypLfrMHfanE3cmTwZuy8QTGNgzFZKSqFeXXinsuKvkyMe6DbqdGMu8Xp1fon8E3mgW62RiorqMv6qLV2dqPFX3pETp
xprv9s21ZrQH143K24sgGQxqWCjJMTN1p6jTc1zrFz2otiVmmihkGHBnD3WTQkbKMGhuEQ6VMoWmef61KGgJeUA9DNTDLC9cSUcS7Y5xos3tfBr
</code></pre>
<p>To check if these are correct, we derive the node's payee key (identity pubkey), which is <code>m/1017'/0'/6'/0/0</code></p>
<p>results in <code>03bb9f9f7734ca9da4ec06543d32456384f878303305a72979e7316825e00749ad</code></p>
<p>the problem is; the above seed results in <code>039e625ffe5325224e6273fc5e0afe59f7ec82cb90add45e76f34cfff9efdcac60</code>
(as per LND's getinfo)</p>
<p>Anyone who can spot my mistake?</p>

<seed>
Confused about LND derivation of node's payee pubkeys
abrahamk
# Confused about LND derivation of node's payee pubkeys

(Asked by: username_0 on 2020-10-19)

Okay. A short summary of the problem: I'm trying to derive the root key from LND from the aezeed, but I can't get it right.

Assume the following seed (aezeed):

```
ability quality bulb clap quality piano focus ivory trust essence improve book antique analyst double equip reason venue jazz zoo host potato harvest divorce

```

For which the following root keys result:

```
tprv8ZgxMBicQKsPct7CvypLfrMHfanE3cmTwZuy8QTGNgzFZKSqFeXXinsuKvkyMe6DbqdGMu8Xp1fon8E3mgW62RiorqMv6qLV2dqPFX3pETp
xprv9s21ZrQH143K24sgGQxqWCjJMTN1p6jTc1zrFz2otiVmmihkGHBnD3WTQkbKMGhuEQ6VMoWmef61KGgJeUA9DNTDLC9cSUcS7Y5xos3tfBr

```

To check if these are correct, we derive the node's payee key (identity pubkey), which is `m/1017'/0'/6'/0/0`

results in `03bb9f9f7734ca9da4ec06543d32456384f878303305a72979e7316825e00749ad`

the problem is; the above seed results in `039e625ffe5325224e6273fc5e0afe59f7ec82cb90add45e76f34cfff9efdcac60`
(as per LND's getinfo)

Anyone who can spot my mistake?

**Tags:** seed


---

## 1 answers

### Answer by username_0 on 2020-10-19. Score: 1

Wrong cointype. I'm assuming mainnet = 0, and testnet = 1, although I can't find any documentation on this.

```
m/1017'/1'/6'/0

```

gives the correct identity key.


---

