feat: init structure of charon-cluster#19
Merged
Conversation
…and SignedDataSet
…ry_from implementation
…erialization/deserialization tests
…Eth/charon-rs into bohdan/add-core-types
- 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.
…anizing workspace lints
…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.
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR initializes the structure of the charon-cluster crate, establishing the foundational module organization and implementing threshold BLS signature support using the BLST library for Herumi compatibility.
Key Changes:
- Implemented threshold BLS signatures (TBLS) in
charon-cryptowith BLST library - Added cluster manifest protobuf definitions and module structure
- Reorganized dependencies and added cryptographic tooling
Reviewed Changes
Copilot reviewed 83 out of 84 changed files in this pull request and generated 9 comments.
Show a summary per file
| File | Description |
|---|---|
crates/charon-crypto/src/types.rs |
Defines error types, constants, and type aliases for cryptographic operations |
crates/charon-crypto/src/tbls.rs |
Declares the TBLS trait interface for threshold BLS signature operations |
crates/charon-crypto/src/blst_impl.rs |
Implements TBLS trait using BLST library with Herumi compatibility |
crates/charon-crypto/src/lib.rs |
Reorganizes module structure to export crypto functionality |
crates/charon-cluster/src/lib.rs |
Establishes module structure for cluster management |
crates/charon-cluster/src/manifestpb/* |
Adds protobuf definitions and generated code for cluster manifests |
crates/charon-cluster/build.rs |
Implements protobuf compilation build script |
Cargo.toml |
Adds workspace dependencies for cryptography and protobuf support |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
emlautarom1
approved these changes
Nov 6, 2025
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Contributor
|
Coverage (base → head): |
Collaborator
Author
|
Closes #32 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR initializes structure of charon-cluster, since this module is big, it will be implemented in several PRs.
Part of #16