parseDerivationPath
parseDerivationPath(
path
):DerivationPathComponents
Defined in: packages/iso-filecoin/src/utils.js:167
Parse a derivation path into its components
Parameters
Section titled “Parameters”Parameter | Type | Description |
---|---|---|
path | string | The derivation path to parse |
Returns
Section titled “Returns”An object containing the derivation path components
https://github.com/bitcoin/bips/blob/master/bip-0044.mediawiki#path-levels
Example
Section titled “Example”import { parseDerivationPath } from 'iso-filecoin/utils'
const components = parseDerivationPath("m/44'/461'/0'/0/0")// {// purpose: 44,// coinType: 461,// account: 0,// change: 0,// addressIndex: 0// }