Closed sergeyboyko0791 closed 1 year ago
Currently, BIP44 purpose is hardcoded at the Bip44DerivationPath. Perhaps it's worth to add a type like
type BipDerivationPath = Bip32Child<BipPurposeValue, // `purpose` Bip32Child<HardenedValue, // `coin_type` Bip32Child<HardenedValue, // `account_id` Bip32Child<Bip44ChainValue, // `chain` Bip32Child<NonHardenedValue, // `address_id` Bip44Tail>>>>>;
where the BipPurposeValue is either 44 or 49 etc.
BipPurposeValue
Ref: https://github.com/bitcoin/bips/blob/master/bip-0049.mediawiki
This was fixed as part of this PR https://github.com/KomodoPlatform/komodo-defi-framework/pull/1512
Currently, BIP44 purpose is hardcoded at the Bip44DerivationPath. Perhaps it's worth to add a type like
where the
BipPurposeValue
is either 44 or 49 etc.Ref: https://github.com/bitcoin/bips/blob/master/bip-0049.mediawiki