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

check signatures in CP sync backfill with LC #4858

Merged
merged 1 commit into from
Apr 26, 2023

Conversation

etan-status
Copy link
Contributor

When using trusted node sync with light client (--trusted-block-root), the trust assumption on the server is reduced to solely be responsible for data availability, but not data correctness. This means that we must check block proposer signatures against the downloaded checkpoint, as they are not covered by the block root.

Note that this lowers the backfill speed when using LC based CP sync due to the extra checks, by about 60% for me.

When using trusted node sync with light client (`--trusted-block-root`),
the trust assumption on the server is reduced to solely be responsible
for data availability, but not data correctness. This means that we must
check block proposer signatures against the downloaded checkpoint, as
they are not covered by the block root.

Note that this lowers the backfill speed when using LC based CP sync
due to the extra checks, by about 60% for me.
@github-actions
Copy link

Unit Test Results

         9 files  ±0    1 071 suites  ±0   33m 20s ⏱️ -7s
  3 670 tests ±0    3 391 ✔️ ±0  279 💤 ±0  0 ±0 
15 653 runs  ±0  15 348 ✔️ ±0  305 💤 ±0  0 ±0 

Results for commit 4b210c2. ± Comparison against base commit 1ccb36b.

@etan-status
Copy link
Contributor Author

@arnetheduck suggested to augment this with batch signature verification for a potential 2x speedup, and also update libp2p based backfill with batching accordingly.

@etan-status etan-status merged commit c4e258a into unstable Apr 26, 2023
@etan-status etan-status deleted the dev/etan/cp-proposersig branch April 26, 2023 11:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants