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 a Tool to Split a Series of Mnemonic Keys into Distinct Wallets #8651

Merged
merged 5 commits into from
Mar 30, 2021

Conversation

prestonvanloon
Copy link
Member

@prestonvanloon prestonvanloon commented Mar 23, 2021

What type of PR is this?

Other

What does this PR do? Why is it needed?

This is a tool I used to split several mnemonic phrases into several wallets. It was useful in the genesis of prater and may be useful in the future.

Which issues(s) does this PR fix?

N/A

Other notes for review

This is useful for creating custom allocations of keys across containers running in a cloud environment, such as for public testnets. An example of why you would use this tool is as follows. Let's say we have 1 mnemonic contained inside of a file. Then, we want to generate 10 keys from the mnemonic, and we want to spread them across 5 different wallets, each containing two keys. Then, you would run the tool as follows:

./main -mnemonics-file=/path/to/file.txt -keys-per-mnemonic=10 -num-wallets=5

@rauljordan rauljordan marked this pull request as ready for review March 30, 2021 18:21
@rauljordan rauljordan requested a review from a team as a code owner March 30, 2021 18:21
@rauljordan rauljordan changed the title Add a tool to split a series of mnemonic keys into distinct wallets Add a Tool to Split a Series of Mnemonic Keys into Distinct Wallets Mar 30, 2021
@prylabs-bulldozer prylabs-bulldozer bot merged commit 28e4a3b into develop Mar 30, 2021
@delete-merged-branch delete-merged-branch bot deleted the testnet-keysplit branch March 30, 2021 20:38
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.

3 participants