Wie bereits erwähnt, verwendet LND einen Aezeed Mnemonic, der nicht BIP-39 kompatibel ist. In der weiteren Ableitung LND-intern sieht es für mich allerdings so aus, als ob es BIP-32-kompatibel weitergeht. Die „Aezeed-Ableitung“ liefert also zunächst einen nicht BIP-39-kompatiblen BIP32 Root Key, um im Iancoleman-Slang zu bleiben, danach geht es aber anscheinend mit üblicher BIP-32-Ableitung weiter.
Diese Annahme von mir basiert auf den Output von lncli wallet accounts list
, bei meiner wenig genutzten Lightning-Node z.B.:
{
"accounts": [
{
"name": "default",
"address_type": "HYBRID_NESTED_WITNESS_PUBKEY_HASH",
"extended_public_key": "ypub...redacted...",
"master_key_fingerprint": null,
"derivation_path": "m/49'/0'/0'",
"external_key_count": 0,
"internal_key_count": 0,
"watch_only": false
},
{
"name": "default",
"address_type": "WITNESS_PUBKEY_HASH",
"extended_public_key": "zpub...redacted...",
"master_key_fingerprint": null,
"derivation_path": "m/84'/0'/0'",
"external_key_count": 5,
"internal_key_count": 6,
"watch_only": false
},
{
"name": "default",
"address_type": "WITNESS_PUBKEY_HASH",
"extended_public_key": "xpub...redacted...",
"master_key_fingerprint": null,
"derivation_path": "m/1017'/0'/0'",
"external_key_count": 6,
"internal_key_count": 0,
"watch_only": false
},
{
"name": "act:1",
"address_type": "WITNESS_PUBKEY_HASH",
"extended_public_key": "xpub...redacted...",
"master_key_fingerprint": null,
"derivation_path": "m/1017'/0'/1'",
"external_key_count": 6,
"internal_key_count": 0,
"watch_only": false
},
{
"name": "act:2",
"address_type": "WITNESS_PUBKEY_HASH",
"extended_public_key": "xpub...redacted...",
"master_key_fingerprint": null,
"derivation_path": "m/1017'/0'/2'",
"external_key_count": 6,
"internal_key_count": 0,
"watch_only": false
},
{
"name": "act:3",
"address_type": "WITNESS_PUBKEY_HASH",
"extended_public_key": "xpub...redacted...",
"master_key_fingerprint": null,
"derivation_path": "m/1017'/0'/3'",
"external_key_count": 6,
"internal_key_count": 0,
"watch_only": false
},
{
"name": "act:4",
"address_type": "WITNESS_PUBKEY_HASH",
"extended_public_key": "xpub...redacted...",
"master_key_fingerprint": null,
"derivation_path": "m/1017'/0'/4'",
"external_key_count": 6,
"internal_key_count": 0,
"watch_only": false
},
{
"name": "act:5",
"address_type": "WITNESS_PUBKEY_HASH",
"extended_public_key": "xpub...redacted...",
"master_key_fingerprint": null,
"derivation_path": "m/1017'/0'/5'",
"external_key_count": 7,
"internal_key_count": 0,
"watch_only": false
},
{
"name": "act:6",
"address_type": "WITNESS_PUBKEY_HASH",
"extended_public_key": "xpub...redacted...",
"master_key_fingerprint": null,
"derivation_path": "m/1017'/0'/6'",
"external_key_count": 0,
"internal_key_count": 0,
"watch_only": false
},
{
"name": "act:7",
"address_type": "WITNESS_PUBKEY_HASH",
"extended_public_key": "xpub...redacted...",
"master_key_fingerprint": null,
"derivation_path": "m/1017'/0'/7'",
"external_key_count": 0,
"internal_key_count": 0,
"watch_only": false
},
{
"name": "act:8",
"address_type": "WITNESS_PUBKEY_HASH",
"extended_public_key": "xpub...redacted...",
"master_key_fingerprint": null,
"derivation_path": "m/1017'/0'/8'",
"external_key_count": 0,
"internal_key_count": 0,
"watch_only": false
},
...,
{
"name": "act:255",
"address_type": "WITNESS_PUBKEY_HASH",
"extended_public_key": "xpub...redacted...",
"master_key_fingerprint": null,
"derivation_path": "m/1017'/0'/255'",
"external_key_count": 0,
"internal_key_count": 0,
"watch_only": false
}
]
}
Was die ganzen Accounts 1…255 mit Purpose 1017’, also mit Derivation Path m/1017'/0'/1'...255'
darstellen sollen, habe ich noch nicht herausgefunden.
Aus der Hüfte geschossen, aber noch nicht experimentell belegt, würde ich mich doch dazu versteigen, daß es mit dem Account Extended Public Key, im JSON-Output die Keys "extended_public_key"
, möglich sein könnte, die LND-Wallet zumindest watch-only in eine normale BIP-39-kompatible Bitcoin-Wallet zu importieren. Weitere Verifizierung noch nötig, ob meine These auch hält.