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

Handle offline nodes in beaver triple generation gracefully #439

Closed
Tracked by #326
ChaoticTempest opened this issue Jan 27, 2024 · 1 comment
Closed
Tracked by #326

Handle offline nodes in beaver triple generation gracefully #439

ChaoticTempest opened this issue Jan 27, 2024 · 1 comment
Assignees
Labels
Emerging Tech Emerging Tech flying formation at Pagoda Near BOS NEAR BOS team at Pagoda

Comments

@ChaoticTempest
Copy link
Member

Currently, if a node were to ever go offline, they would not be able to participate in beaver triple generation. The set of participants is hardcoded in triple generation to always include a node even if offline. The protocol will never complete if even one node in the group of participants does not respond. So if one were to go offline, we would halt the whole signature generation pipeline.

To remedy this, online nodes should handle these cases:

  1. Check to see if a node is online or not, then include them in the participating set of the beaver triple protocol.
  2. Restart triple generation with new set of participants if a participant has been offline for too long.
  3. The messages sent needs to include the participating set of online nodes, or have each node evaluate there own set of online nodes. The latter requires reaching a consensus, but is lighter on sending messages across the wire.

We probably want to store this timeout somewhere in the contract, à la genesis config in nearcore. We don't have to worry about the case when there is less than threshold nodes participating, since presignature and signature generation take arbitrary triples. So the nodes that are online can still stockpile up triples if they so wish to.

@ChaoticTempest ChaoticTempest added Near BOS NEAR BOS team at Pagoda Emerging Tech Emerging Tech flying formation at Pagoda labels Jan 27, 2024
@ChaoticTempest ChaoticTempest self-assigned this Jan 27, 2024
@volovyks
Copy link
Collaborator

Blocked on #405

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Emerging Tech Emerging Tech flying formation at Pagoda Near BOS NEAR BOS team at Pagoda
Projects
Status: Done
Development

No branches or pull requests

2 participants