Open ChristopherA opened 3 years ago
I'm not sure this use-case shouldn't actually be done with multiple invocations of keytool.
You can derive the fingerprint of any key:
keytool --master-key xprv9s21ZrQH143K3LafD5DiV15sGHLPgjufVQfw2pbYmcQx9oqk68vKWZibByQqrsHV9D5i7CmV5JPpNRUGCco9BGuSpsBaTU5cfsdwMksm6Bt master-key-fingerprint
c0abd02e
You can define the source fingerprint you want:
keytool --master-key-fingerprint c0abd02e full-address-derivation-path
c0abd02e/84h/0h/0h/0/0
Hm, and isn't the output-descriptor node already quite similar to what you want?
keytool --master-key xprv9s21ZrQH143K3LafD5DiV15sGHLPgjufVQfw2pbYmcQx9oqk68vKWZibByQqrsHV9D5i7CmV5JPpNRUGCco9BGuSpsBaTU5cfsdwMksm6Bt output-descriptor
wpkh([c0abd02e/84h/0h/0h]xpub6BmiS84kCKeXuJvpCVEHLG8kyo6EypJ4rDU9cWratSy3qFNpkyL5fkHhYrTNXYoacAqn9VGJpuAFV4iJ6ncCNPXJeHGsosEtEzWW3n45WN3/0/0)
But what I really want for --full-address-derivation-path with 48' is an option,
--add-root-fingerprint
or--add-parent-fingerprint
withaddress-key
andaddress-pub-key
that adds the root or parent fingerprint and path to the front of the result, i.e.[feebfc32/48h/0h/0h/2h]xpubDERVIEDKEY
. Maybe also for other options like --master-keyI think for our purposes (multisig and descriptor centric wallets)
--add-root-fingerprint
could even be a default.