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

HD path on > 10000000000 not working, keeps hanging #17

Open
user3470 opened this issue Jul 12, 2021 · 2 comments
Open

HD path on > 10000000000 not working, keeps hanging #17

user3470 opened this issue Jul 12, 2021 · 2 comments

Comments

@user3470
Copy link

Deriving path on index greater than 10000000000, package get stuck

@user3470
Copy link
Author

this.derive(m/44'/148'/${index}');

if index is >= 10000000000 it fails any idea why. Please help!

@chatch
Copy link
Owner

chatch commented Jul 15, 2021

@user3470 I just tried this and get an out of range error:

> wallet.derive(`m/44'/148'/10000000000'`)
Uncaught:
RangeError [ERR_OUT_OF_RANGE]: The value of "value" is out of range. It must be >= 0 and <= 4294967295. Received 12_147_483_648
    at checkInt (internal/buffer.js:69:11)
    at writeU_Int32BE (internal/buffer.js:799:3)
    at Buffer.writeUInt32BE (internal/buffer.js:812:10)

What context are you running this in and what version of nodejs? I'm using node 14.16.1 and running in a repl ...

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

No branches or pull requests

3 participants
@chatch @user3470 and others