-
Notifications
You must be signed in to change notification settings - Fork 20
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
base: main
Are you sure you want to change the base?
Conversation
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hope this command is directly taken from the latest docs - https://docs.obol.tech/docs/int/quickstart/quickstart-alone#step-2-create-the-artifacts-needed-to-run-a-dv-cluster ?
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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
Hey @EridianAlpha |
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 |
@@ -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> |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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> |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added
Hey @EridianAlpha
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. |
No description provided.