Skip to content

feat: add support for cluster definition v1.10.0 #20

Merged
varex83 merged 37 commits into
mainfrom
bohdan/cluster-def-v1_10_0-support
Nov 28, 2025
Merged

feat: add support for cluster definition v1.10.0 #20
varex83 merged 37 commits into
mainfrom
bohdan/cluster-def-v1_10_0-support

Conversation

@varex83

@varex83 varex83 commented Nov 4, 2025

Copy link
Copy Markdown
Collaborator

This PR is part of the #16. It adds support for cluster definition v1.10.0, together with some foundational types. This PR should be merged after #19

varex83 added 30 commits October 8, 2025 15:45
- Added `thiserror` dependency for improved error handling.
- Introduced `blsful` module for TBLS implementation.
- Refactored `tbls` module to utilize new types and error handling.
- Created `tblsconv` module for type conversions between byte slices and cryptographic types.
- Removed the old `herumi` implementation and replaced it with the new `blsful` based implementation.
- Added utility functions for key and signature conversions.
- Updated types and error definitions for better clarity and consistency.
- Reformatted comments for better readability.
- Adjusted spacing and alignment in error messages for consistency.
- Ensured clarity in documentation regarding expected byte lengths for key and signature conversions.
…ignatures

- Updated dependencies in Cargo.toml and Cargo.lock to use the blst library.
- Removed blsful module and its associated code, including type conversions and utility functions.
- Introduced a new blst_impl module for the BLST implementation of threshold BLS signatures.
- Refactored tbls module to utilize the new blst implementation.
- Cleaned up error handling and types to align with the new library.
- Added workspace lints and improved documentation throughout the codebase.
@varex83 varex83 requested a review from emlautarom1 November 4, 2025 13:43
@varex83 varex83 self-assigned this Nov 4, 2025
@varex83 varex83 changed the base branch from main to bohdan/charon-cluster-init November 6, 2025 12:17

@emlautarom1 emlautarom1 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Minor things, LGTM.

Comment thread crates/charon-cluster/src/definition.rs
/// Timestamp is the human-readable timestamp of this definition. Max 32
/// chars. Note that this was added in v1.1.0, so may be empty for older
/// versions.
pub timestamp: DateTime<Utc>,

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Since this field was added later we should make it optional:

Suggested change
pub timestamp: DateTime<Utc>,
pub timestamp: Option<DateTime<Utc>>,

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.

In ssz PR it's made as a raw string + added method to retrieve the timestamp in DateTime<Utc> format. This was done to not edit formatting of the timestamp, since it could affect the ssz hashing.

Comment on lines +1 to +2
// Copyright © 2022-2025 Obol Labs Inc. Licensed under the terms of a Business
// Source License 1.1

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Remove the original Obol license

Base automatically changed from bohdan/charon-cluster-init to main November 27, 2025 11:38

@emlautarom1 emlautarom1 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM but needs to be rebased with main due to charon-crypto diffs.

@github-actions

Copy link
Copy Markdown
Contributor

Coverage (base → head): 88.56% → 86.72% ⬇️ 1.84 pp
Only posts when PR coverage is lower than the base branch's latest push (or freshly computed base).

@varex83 varex83 merged commit d6c82d6 into main Nov 28, 2025
7 checks passed
@varex83 varex83 deleted the bohdan/cluster-def-v1_10_0-support branch November 28, 2025 13:39
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