Skip to content

feat: implement cluster/helpers#272

Merged
emlautarom1 merged 39 commits into
mainfrom
emlautarom1/cluster-helpers
Mar 12, 2026
Merged

feat: implement cluster/helpers#272
emlautarom1 merged 39 commits into
mainfrom
emlautarom1/cluster-helpers

Conversation

@emlautarom1
Copy link
Copy Markdown
Collaborator

Closes #246


Ended up requiring a bit more code than I initially expected due to the test_cluster module. This helped find some issues in existing code though.

Copilot AI review requested due to automatic review settings March 5, 2026 17:17
Comment on lines +399 to +402
timestamp: chrono::Local::now()
.with_nanosecond(0)
.expect("nanoseconds = 0")
.to_rfc3339(),
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

This is required to match the Go implementation: requires TZ and explicitly set nanoseconds to 0, otherwise the string gets too long and SSZ serialization fails (exceeds 32 byte limit)

let mut priv_shares: Vec<pluto_crypto::types::PrivateKey> = Vec::new();

for i in 0..n {
let share_priv_key = *shares.get(&i).unwrap(); // NOTE: Pluto implementation does not use 1-based indexing for shares
Copy link
Copy Markdown
Collaborator Author

@emlautarom1 emlautarom1 Mar 5, 2026

Choose a reason for hiding this comment

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

This is also a tricky point that caused me some issues while debugging: the shares produced by blst.threshold_split_insecure are NOT indexed from 1 unlike the Go implementation.

cc. @varex83

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@emlautarom1 emlautarom1 requested a review from Copilot March 5, 2026 20:14
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 20 out of 21 changed files in this pull request and generated 6 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

Comment thread crates/testutil/src/random.rs Outdated
Comment thread crates/cluster/src/test_cluster.rs Outdated
Comment thread crates/cluster/src/helpers.rs Outdated
Comment thread crates/cluster/src/definition.rs
Comment thread crates/eth2util/src/registration.rs
Comment thread crates/cluster/src/helpers.rs Outdated
- Fixes issues with streaming responses
Copilot AI review requested due to automatic review settings March 10, 2026 11:41
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 20 out of 21 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

Comment thread crates/cluster/src/test_cluster.rs
@emlautarom1 emlautarom1 force-pushed the emlautarom1/cluster-helpers branch from 2808a91 to 0ada038 Compare March 10, 2026 12:00
Copilot AI review requested due to automatic review settings March 10, 2026 12:02
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 20 out of 21 changed files in this pull request and generated 2 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

Comment thread crates/eth2util/src/network.rs
Comment thread crates/cluster/src/test_cluster.rs
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 20 out of 21 changed files in this pull request and generated 2 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

Comment thread crates/cluster/Cargo.toml Outdated
Comment thread crates/cluster/src/test_cluster.rs Outdated
- Slight deviation from the original code but better for debugging
Comment thread crates/cluster/src/test_cluster.rs Outdated
Comment thread crates/cluster/src/test_cluster.rs Outdated
Comment thread crates/cluster/src/test_cluster.rs Outdated
Comment thread crates/cluster/src/test_cluster.rs Outdated
Comment thread crates/testutil/src/random.rs Outdated
Comment thread crates/cluster/src/helpers.rs Outdated
Copy link
Copy Markdown
Collaborator

@varex83 varex83 left a comment

Choose a reason for hiding this comment

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

LGTM

Copilot AI review requested due to automatic review settings March 12, 2026 14:26
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 20 out of 21 changed files in this pull request and generated 2 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

Comment thread crates/cluster/src/test_cluster.rs
Comment thread crates/cluster/src/helpers.rs
@emlautarom1 emlautarom1 merged commit b6e9008 into main Mar 12, 2026
13 checks passed
@emlautarom1 emlautarom1 deleted the emlautarom1/cluster-helpers branch March 12, 2026 17:08
Comment thread crates/cluster/src/helpers.rs
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.

Implement cluster/helpers

5 participants