Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
close shttps://github.com/0xPolygon/devtools/issues/182
The topics below are applied to
polycli wallet
command.--addresses
from10
to1
--addresses
is1
, the derivation path is the same as provided by--path
--addresses
is greater than1
, it will use the value provided by--path
to provide sequential derivation paths starting from the provided one, extended to at least five parts and evolving one by one using the last part as the start index, see examples below.Examples:
--addresses
1 and:m/44'/60'/0
, generates:m/44'/60'/0
m/44'/60'/1'/0
, generates:m/44'/60'/1'/0
m/44'/60'/2'/0/3
, generates:m/44'/60'/2'/0/3
m/44'/60'/3'/0/7/9
, generates:m/44'/60'/3'/0/7/9
--addresses
3 and:m/44'/60'/0
, generates:m/44'/60'/0'/0/0
,m/44'/60'/0'/0/1
,m/44'/60'/0'/0/2
m/44'/60'/1'/0
, generates:m/44'/60'/1'/0/0
,m/44'/60'/1'/0/1
,m/44'/60'/1'/0/2
m/44'/60'/2'/0/3
, generates:m/44'/60'/2'/0/3
,m/44'/60'/2'/0/4
,m/44'/60'/2'/0/5
m/44'/60'/3'/0/7/9
, generates:m/44'/60'/3'/0/7/9
,m/44'/60'/3'/0/7/10
,m/44'/60'/3'/0/7/11
For more examples, please check the test
TestDerivationPath
filehdwallet/hdwallet_test.go
more details about
derivation path
: