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

feat(sidecar): Create a delegations file format and load it on startup #290

Closed
Tracked by #209
merklefruit opened this issue Oct 11, 2024 · 0 comments · Fixed by #292
Closed
Tracked by #209

feat(sidecar): Create a delegations file format and load it on startup #290

merklefruit opened this issue Oct 11, 2024 · 0 comments · Fixed by #292
Assignees
Labels
C: bolt-sidecar Component: bolt-sidecar T: feature Type: Feature

Comments

@merklefruit
Copy link
Collaborator

merklefruit commented Oct 11, 2024

We may need to load existing delegations on startup, and there currently isn't a format to do so.
Proposed solution:

A JSON file with the following format: Vec<SignedDelegation> to use our existing types.

[
  {
    "message": {
      "action": 0,
      "validator_pubkey": "0x...",
      "delegatee_pubkey": "0x..."
    },
    "signature": "0x..."
  },
  ...
]

At startup, the sidecar will attempt to load these delegations, and then it will cross-check the delegated pubkeys with the ones available in the provided signer (local, remote or via keystore files).

then the sidecar has all the info necessary to sign constraint messages when needed.

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: feature Type: Feature
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant