Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add isValidBIP32PathSegment function #131

Merged
merged 5 commits into from
Jun 19, 2023
Merged

Conversation

Mrtenz
Copy link
Member

@Mrtenz Mrtenz commented Jun 19, 2023

This PR adds a new function, isValidBIP32Path, which can be used to check if a string is a valid BIP-32 path in the form ${number}'. It will check if the index is 0 <= n <= 2**32 - 1.

@Mrtenz Mrtenz requested a review from a team as a code owner June 19, 2023 12:44
@Mrtenz Mrtenz force-pushed the mrtenz/is-valid-bip32-path branch from eb57652 to f7afae2 Compare June 19, 2023 12:56
@Mrtenz Mrtenz changed the title Add isValidBIP32Path function Add isValidBIP32PathSegment function Jun 19, 2023
src/index.ts Outdated Show resolved Hide resolved
src/utils.test.ts Outdated Show resolved Hide resolved
src/utils.ts Outdated Show resolved Hide resolved
src/utils.ts Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants