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

Usage of ValidatorIndex inside Bolt Sidecar #57

Closed
merklefruit opened this issue Jun 4, 2024 · 1 comment
Closed

Usage of ValidatorIndex inside Bolt Sidecar #57

merklefruit opened this issue Jun 4, 2024 · 1 comment
Assignees
Labels
C: bolt-sidecar Component: bolt-sidecar T: chore Type: Chore
Milestone

Comments

@merklefruit
Copy link
Collaborator

Our current API definitions for constraints contain the validatorIndex of the validator that is opted-in to Bolt and has signed that specific preconfirmation request.

This means that we have to deal with this when generating the constraints, which happens inside Bolt sidecar.
Right now, this value is set to 0 always here: https://github.com/chainbound/bolt/pull/53/files#diff-709413e7867c3101338b843ff608b31b209deb676433b25160302d6819deafffR124

This issue is to keep track of this dangling data point and to brainstorm solutions. Some questions:

  • should bolt sidecar work with >1 validators connected? if so, how do we figure out which validator to sign commitments with
  • are there DDoS attacks that benefit from knowing the validatorIndex bound to some bolt sidecar?
@merklefruit merklefruit added C: bolt-sidecar Component: bolt-sidecar T: chore Type: Chore labels Jun 4, 2024
@mempirate mempirate added this to the v0.2 milestone Jun 24, 2024
@merklefruit
Copy link
Collaborator Author

An acceptable solution for now will be to specify validator indexes via the CLI.

we should add a validator_index cli parameter that can be a comma-delimited array of numbers (e.g. called via --validator-index 2,3,4,5,9) or an array to indicate contiguous indexes (e.g. --validator-index [2,9].

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C: bolt-sidecar Component: bolt-sidecar T: chore Type: Chore
Projects
None yet
Development

No branches or pull requests

3 participants