Skip to content

feat: add legacy locks support#24

Merged
varex83 merged 44 commits into
mainfrom
bohdan/legacy-locks
Nov 28, 2025
Merged

feat: add legacy locks support#24
varex83 merged 44 commits into
mainfrom
bohdan/legacy-locks

Conversation

@varex83

@varex83 varex83 commented Nov 6, 2025

Copy link
Copy Markdown
Collaborator

This PR is part of the #16.

It adds support for old legacy versions of cluster lock. It was achieved by creating intermediate structs and custom serialization/deserialization logic for main Lock struct.

This PR should be merged after #23

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.
@github-actions

github-actions Bot commented Nov 6, 2025

Copy link
Copy Markdown
Contributor

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

@varex83 varex83 changed the base branch from main to bohdan/legacy-definitions November 6, 2025 12:20

@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.

What is the difference between Base64<Standard> and EthHex? Are they related at all?

Base automatically changed from bohdan/legacy-definitions to main November 28, 2025 14:17
@varex83

varex83 commented Nov 28, 2025

Copy link
Copy Markdown
Collaborator Author

What is the difference between Base64<Standard> and EthHex? Are they related at all?

The EthHex is just 0x-prefixed hex string, and Base64<Standard> - is base64 encoded string

@varex83 varex83 merged commit ac159a8 into main Nov 28, 2025
6 checks passed
@varex83 varex83 deleted the bohdan/legacy-locks branch November 28, 2025 14:36
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