CryptoDrew on Nostr: Most bitcoin wallets are Hierarchical Deterministic wallet that use a big integer ...
Most bitcoin wallets are Hierarchical Deterministic wallet that use a big integer seed to generate a root private key. Then the "Hierarchical" portion comes in by using the root private key to generate a child private key based on a specified index, and so on from that child key.
If the same seed and same index are used, then it will generate the same child private key. This is the "Deterministic" portion.
The derivation path defines the indexes to use for getting the child private key of your account.
A legacy bitcoin HD wallet should have the derivation path of m/44’/0’/0’/0/0. The m/ is the root, then 44' is the next child index and so on. Never mind the difference between the tic and no tic (') for now.
Newer bitcoin HD wallets might be using SegWit or Taproot addresses, which those will respectively have the derivation paths of m/84’/0’/0’/0/0 and m/86’/0’/0’/0/0. Note that they have a different index for the first child.
You can figure out which derivation path the wallet app is using by looking at an address created fresh from that wallet app. A legacy BTC address starts with a "1". SegWit starts with "bc1q". Taproot starts with "bc1p". Compare with your primary address.
Hope this helps!
Published at
2024-01-12 20:05:02Event JSON
{
"id": "3887e819857543119e265bedac0b56b01696a1fa7bb2d06623bdac32b0904547",
"pubkey": "81e80c46b9bd0b7c564f59864527fa5f1cc94ea68a07f286858984a341b0a2e8",
"created_at": 1705089902,
"kind": 1,
"tags": [
[
"e",
"1953a773ef33a23a72278545760be8266c565079fc0d5585563742930506890f",
"",
"root"
],
[
"e",
"59ea9c00b48b5622bd7b953eb316e6bc484ee3c33e1b99b8518192c399269e4d"
],
[
"e",
"35609e997efc60c51eea8d27451130f1fc1eb07051d176a53913ea6437e219c7",
"",
"reply"
],
[
"p",
"9d3a3132661337c0466b744468cdcc0745707f6cf39e2082134d61b048c04c6c"
],
[
"p",
"637a2f1da5d2fc1976c14ec00f8eae4015afe99bb2554f1d537d0086a169dd8f"
]
],
"content": "Most bitcoin wallets are Hierarchical Deterministic wallet that use a big integer seed to generate a root private key. Then the \"Hierarchical\" portion comes in by using the root private key to generate a child private key based on a specified index, and so on from that child key.\n\nIf the same seed and same index are used, then it will generate the same child private key. This is the \"Deterministic\" portion.\n\nThe derivation path defines the indexes to use for getting the child private key of your account.\n\nA legacy bitcoin HD wallet should have the derivation path of m/44’/0’/0’/0/0. The m/ is the root, then 44' is the next child index and so on. Never mind the difference between the tic and no tic (') for now.\n\nNewer bitcoin HD wallets might be using SegWit or Taproot addresses, which those will respectively have the derivation paths of m/84’/0’/0’/0/0 and m/86’/0’/0’/0/0. Note that they have a different index for the first child.\n\nYou can figure out which derivation path the wallet app is using by looking at an address created fresh from that wallet app. A legacy BTC address starts with a \"1\". SegWit starts with \"bc1q\". Taproot starts with \"bc1p\". Compare with your primary address.\n\nHope this helps!",
"sig": "4feb07a1ad56ac4f7c099ec9a68975a055f4fd47b4bb6674c72a5228d241afa77fa411bb4586f61b4d22c8277042d5a691f068636b89ec5e05db4d8a5bcfe991"
}