How to derive BTC m44 addresses from xpub? I checked Swan's Address Derivation Library https://github.com/swan-bitcoin/xpub-tool.
I try to get m44 address, but I got m84. Why? Do you know is it any parameter to force return m44? I tried to pass path: &quot;m/44'/0'/0'/0&quot;, but it did not help.
Do you have any idea?
addressFromXPub(&quot;xpub6C5oXscLYZwgq2DB42TFC32QcoPa1MeCWUNPZSjydunniCM77TRcBfFnjScJeToVXS5RBDr53Ls5RXvDHujmFSL4Fqc9kkpsMjU1vg68xv7&quot;
  );

export const addressFromXPub = (key) =&gt; {
  console.log(
    addressesFromExtPubKey({
      extPubKey: key,
      network: &quot;mainnet&quot;,
      addressCount: 3,
    })
  );
};

[
    {path: &quot;m/84'/0'/0'/0/0&quot;, address: &quot;bc1qfgnqm6g46ys0h9gh606m76wemka2rrttrac90x&quot;
    },
    {path: &quot;m/84'/0'/0'/0/1&quot;, address: &quot;bc1qnvzdj2m4wsrcrtl30j5c304qa77v4h2s8ajp0r&quot;
    },
    {path: &quot;m/84'/0'/0'/0/2&quot;, address: &quot;bc1qjf5u77e6clwkxgf7a0shw7zq2nhqr4vjys7an0&quot;
    }
]
The following key:
xpub6C5oXscLYZwgq2DB42TFC32QcoPa1MeCWUNPZSjydunniCM77TRcBfFnjScJeToVXS5RBDr53Ls5RXvDHujmFSL4Fqc9kkpsMjU1vg68xv7

Corresponds to a level 3 public key w/index of 0x00000080 which is 0h/0'. In the context you've described it probably corresponds to &quot;m/?/?/0'&quot;. This key's parent's fingerprint is 0x3ab9169c, so you'd need to provide the parent's full fingerprint to confirm the original derivation path.
Although m44 &amp; m84 have the same master/root key, they have completely different level 1 keys, which would change all lower nodes. In short you can only derive m/... full paths from root keys, not child keys, which you've provided.
Edit: The key you've provided is probably meant for deriving receive &amp; change addresses of a certain address type.