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

Fix: Key splitting command #112

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

EridianAlpha
Copy link

No description provided.

README.md Outdated
@@ -122,7 +122,7 @@ mkdir split_keys
# E.g., keystore-0.json keystore-0.txt

# Split these keystores into "n" (--nodes) key shares with "t" (--threshold) as threshold for a distributed validator
docker run --rm -v $(pwd):/opt/charon obolnetwork/charon:v0.14.0 create cluster --split-existing-keys --split-keys-dir=/opt/charon/split_keys --threshold 4 --nodes 6
docker run --rm -v $(pwd):/opt/charon obolnetwork/charon:v0.14.0 create cluster --name="mycluster" --withdrawal-addresses="0x000000000000000000000000000000000000dead" --fee-recipient-addresses="0x000000000000000000000000000000000000dead" --split-existing-keys --split-keys-dir=/opt/charon/split_keys --threshold 4 --nodes 6
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't think we should use 0xdead addresses, rather specify that the user should provide a proper address.

WITHDRAWAL_ADDR=<put your withdrawal here>
FEE_RECIPIENT_ADDR=<...>
docker run --rm -v $(pwd):/opt/charon obolnetwork/charon:v0.14.0 create cluster --name="mycluster" --withdrawal-addresses="${WITHDRAWAL_ADDR}" --fee-recipient-addresses="${FEE_RECIPIENT_ADDR}" --split-existing-keys --split-keys-dir=/opt/charon/split_keys --threshold 4 --nodes 6

README.md Outdated
@@ -122,7 +122,7 @@ mkdir split_keys
# E.g., keystore-0.json keystore-0.txt

# Split these keystores into "n" (--nodes) key shares with "t" (--threshold) as threshold for a distributed validator
docker run --rm -v $(pwd):/opt/charon obolnetwork/charon:v0.14.0 create cluster --split-existing-keys --split-keys-dir=/opt/charon/split_keys --threshold 4 --nodes 6
docker run --rm -v $(pwd):/opt/charon obolnetwork/charon:v0.14.0 create cluster --name="mycluster" --withdrawal-addresses="0x000000000000000000000000000000000000dead" --fee-recipient-addresses="0x000000000000000000000000000000000000dead" --split-existing-keys --split-keys-dir=/opt/charon/split_keys --threshold 4 --nodes 6
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't think we should use 0xdead addresses, rather specify that the user should provide a proper address.

WITHDRAWAL_ADDR=<put your withdrawal here>
FEE_RECIPIENT_ADDR=<...>
docker run --rm -v $(pwd):/opt/charon obolnetwork/charon:v0.14.0 create cluster --name="mycluster" --withdrawal-addresses="${WITHDRAWAL_ADDR}" --fee-recipient-addresses="${FEE_RECIPIENT_ADDR}" --split-existing-keys --split-keys-dir=/opt/charon/split_keys --threshold 4 --nodes 6

@dB2510
Copy link
Collaborator

dB2510 commented Mar 14, 2023

Hey @EridianAlpha
I have raised a PR on obol-docs: ObolNetwork/obol-docs#153
Can you make the suggested change in this PR same as the one I made in the above PR? I see this PR is from your fork.

@EridianAlpha
Copy link
Author

Hey @dB2510, I've updated this PR with the variable addresses to match the updated docs.

Would it be worth also adding a variable for the --name flag? Or would that be too many variables?

@@ -45,8 +45,11 @@ Ensure you have [docker](https://docs.docker.com/engine/install/) and [git](http
1. Create the artifacts needed to run a testnet distributed validator cluster

```sh
# Enter required validator addresses
WITHDRAWAL_ADDR=<ENTER YOUR WITHDRAWAL ADDRESS HERE>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you please add FEE_RECIPIENT_ADDR and --name to this section?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added

@@ -90,7 +93,10 @@ in the future. Read more about our client support [here](https://github.com/Obol
Create some testnet private keys for a six node distributed validator cluster with the command:

```sh
docker run --rm -v "$(pwd):/opt/charon" ghcr.io/obolnetwork/charon:v0.14.0 create cluster --withdrawal-address="0x000000000000000000000000000000000000dead" --nodes 6 --threshold 5
# Enter required validator addresses
WITHDRAWAL_ADDR=<ENTER YOUR WITHDRAWAL ADDRESS HERE>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you please add FEE_RECIPIENT_ADDR and --name to this section too?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added

@dB2510
Copy link
Collaborator

dB2510 commented Mar 14, 2023

Hey @EridianAlpha

Would it be worth also adding a variable for the --name flag? Or would that be too many variables?

I think we are fine without --name. It is not as critical as address flags. Also we cannot omit --name flag as it is a required flag.

@dB2510 dB2510 requested a review from corverroos March 14, 2023 16:50
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.

4 participants