Class to help with bip32 paths.
• new Bip32Path(initialPath?
)
Create a new instance of Bip32Path.
Name | Type | Description |
---|---|---|
initialPath? |
string |
Initial path to create. |
▸ Static
fromPath(bip32Path
): Bip32Path
Construct a new path by cloning an existing one.
Name | Type | Description |
---|---|---|
bip32Path |
Bip32Path |
The path to clone. |
A new instance of Bip32Path.
▸ toString(): string
Converts the path to a string.
string
The path as a string.
▸ push(index
): void
Push a new index on to the path.
Name | Type | Description |
---|---|---|
index |
number |
The index to add to the path. |
void
▸ pushHardened(index
): void
Push a new hardened index on to the path.
Name | Type | Description |
---|---|---|
index |
number |
The index to add to the path. |
void
▸ pop(): void
Pop an index from the path.
void
▸ numberSegments(): number
[]
Get the segments.
number
[]
The segments as numbers.