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

Add support for Packet Delay (on connection) #48

Open
ethanfrey opened this issue Feb 17, 2021 · 0 comments
Open

Add support for Packet Delay (on connection) #48

ethanfrey opened this issue Feb 17, 2021 · 0 comments
Labels
Library Functionality in the core library
Milestone

Comments

@ethanfrey
Copy link
Contributor

This one is tricky. We need to allow the option when creating a connection, and read the option when using an existing connection.

If delay=0, then the general behavior we have everywhere works.

If delay > 0, then we must do the following to relay packets.

  • SendPacket available at height H on chain A
  • Submit A header of H+1 on chain B (to prove H)
  • Store proof of packet pointing to this header (H+1)
  • Wait delay seconds after update client
  • Submit the SendPacket proof pointing to header (H+1), not a newer header

This means there is a delay between updating a client and being able to use that client header to prove anything. As a potential protection against byzantine networks.

@ethanfrey ethanfrey added this to the v2 milestone Feb 17, 2021
@ethanfrey ethanfrey added the Library Functionality in the core library label Feb 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Library Functionality in the core library
Projects
None yet
Development

No branches or pull requests

1 participant