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: sync committee proof server #100

Merged
merged 4 commits into from
Jul 17, 2024
Merged

Conversation

tchataigner
Copy link
Contributor

@tchataigner tchataigner commented Jul 16, 2024

This PR introduces the implementation of the proof server for processing an update. Currently the client only has an initialization method that fetches the latest checkpoint and execute the latest updates over it to sync it to the latest chain.

The proof server can be run with:

  SHARD_BATCH_SIZE=0 RUSTFLAGS="-C target-cpu=native -C opt-level=3" cargo +nightly-2024-05-31 run --release --bin server_primary -- -a <NETWORK_ADDESS> --snd-addr <SECONDARY_SERVER_ADDRESS>

Note: Secondary server address is useless for now, any address can be set.

Changelog

  • Introduces ProofServerClient that is part of the higher structure Client. This structure is used to make request to the proof server, both for generating and verifying proofs.
  • A Request enum that is used to pass a request payload to the proof server
  • The implementation of the server_primary, responsible for generating and verifying proofs about updates.
  • Custom serde methods for the types involved in the workflow so that they can be transferred over TCP
  • Rust docs + MdBook docs

Related issues

Closes #66
Opened #99

docs: rust doc + recompile program

feat: compile program

feat: proper count for signers

feat: remove setup logger

feat: committee change proof server
@tchataigner tchataigner marked this pull request as ready for review July 16, 2024 10:29
@tchataigner tchataigner requested review from huitseeker and wwared July 16, 2024 10:29
wwared
wwared previously approved these changes Jul 16, 2024
ethereum/docs/src/run/setup_proof_server.md Outdated Show resolved Hide resolved
wwared
wwared previously approved these changes Jul 16, 2024
Copy link
Contributor

@wwared wwared left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few other places in the docs with tokio_unstable still below

ethereum/docs/src/run/setup_proof_server.md Outdated Show resolved Hide resolved
ethereum/docs/src/run/setup_proof_server.md Outdated Show resolved Hide resolved
ethereum/docs/src/run/setup_proof_server.md Outdated Show resolved Hide resolved
@tchataigner tchataigner requested a review from wwared July 17, 2024 06:52
@tchataigner
Copy link
Contributor Author

A few other places in the docs with tokio_unstable still below

Thanks, sorry for this 🙏

@tchataigner tchataigner merged commit 6e656f3 into dev Jul 17, 2024
6 checks passed
@tchataigner tchataigner deleted the feature/proof-server-committee branch July 17, 2024 14:25
tchataigner added a commit that referenced this pull request Jul 30, 2024
* feat: sync committee proof server

docs: rust doc + recompile program

feat: compile program

feat: proper count for signers

feat: remove setup logger

feat: committee change proof server

* docs: fix necessary RUSTFLAGS

* Update ethereum/docs/src/run/setup_proof_server.md

Co-authored-by: wwared <[email protected]>

* refactor: integrate review

Co-authored-by: wwared <[email protected]>

---------

Co-authored-by: wwared <[email protected]>
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.

Integrate the next sync committee proof in the Proof Server
2 participants