Skip to content

Commit

Permalink
Batch presigned exit message review feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
mksh committed Oct 30, 2024
1 parent fe65100 commit f9faa79
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,22 @@ then `--mnemonic` and `--validator-seed-index` may be omitted like follows
```


### Command to generate batch of presigned exit messages exit message

Sometimes it may be desirable to generate batch of presigned exit messages for the
validators created from the same mnemonic.

```
./target/debug/eth-staking-smith batch-presigned-exit-message --chain=mainnet --mnemonic='ski interest capable knee usual ugly duty exercise tattoo subway delay upper bid forget say' --epoch 305658 --seed-beacon-mapping='0:100,2:200'
```

Instead of taking single `--validator-seed-index` and `--validator-beacon-index` pair of parameter,
it takes comma-separated mapping of validator seed index to validator beacon index in `--seed-beacon-mapping`
parameter. Keys and values in mapping should be separated by colon, so mapping of `0:100,2:200`
will read as follows

- validator with seed index `0` with given mnemonic has index `100` on beacon chain
- validator with seed index `1` has beacon index `200`

### Command to send VoluntaryExitMessage request to Beacon node

Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/batch_presigned_exit_message.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ Command sequence to verify signature:
"epoch": "305658",
"validator_index": "200"
},
"signature": "0x8db88aabdd8f03cebba47cf3df7dd5e06ab9a49f57fc209a00cb73c5ecdea192b6ab0c5965ad8e7b6b63b9d397be3df40ea84150f2ed13ca9e0ba382c24f583ca921ff0364f18e51444838992d628623598c7c12122ff46d
"signature": "0x8db88aabdd8f03cebba47cf3df7dd5e06ab9a49f57fc209a00cb73c5ecdea192b6ab0c5965ad8e7b6b63b9d397be3df40ea84150f2ed13ca9e0ba382c24f583ca921ff0364f18e51444838992d628623598c7c12122ff46da795c000ae15dd65"
}
cat offline-preparation.json
Expand Down

0 comments on commit f9faa79

Please sign in to comment.