Skip to content

Conversation

@mattsse
Copy link
Collaborator

@mattsse mattsse commented Nov 6, 2025

The HeaderBytes type alias using GenericArray<u8, U16> has been replaced with standard Rust arrays [u8; 16]. This simplifies the code and removes unnecessary dependencies.

Changes

  • Removed HeaderBytes type alias from mac.rs
  • Updated MAC::update_header to accept &[u8; 16] instead of &GenericArray<u8, U16>
  • Updated call sites in algorithm.rs to use regular arrays
  • Removed generic-array and typenum dependencies from reth-ecies
  • Removed generic-array from root Cargo.toml (no longer needed by any crate)
  • Added tokio dev-dependencies to fix test compilation

The functionality remains identical, just with simpler types and fewer dependencies.

Remove unnecessary GenericArray dependency from the ECIES implementation.
The HeaderBytes type alias (GenericArray<u8, U16>) has been replaced with
standard Rust arrays ([u8; 16]), simplifying the code and reducing
dependencies.

This change removes the generic-array and typenum dependencies from
reth-ecies while maintaining the same functionality.
@github-project-automation github-project-automation bot moved this to Backlog in Reth Tracker Nov 6, 2025
@mattsse mattsse added C-debt A clean up/refactor of existing code A-networking Related to networking in general labels Nov 6, 2025
@github-project-automation github-project-automation bot moved this from Backlog to In Progress in Reth Tracker Nov 6, 2025
@mattsse mattsse added this pull request to the merge queue Nov 6, 2025
Merged via the queue into main with commit f69c544 Nov 6, 2025
43 checks passed
@mattsse mattsse deleted the mattsse/remove-header-bytes-generic-array branch November 7, 2025 00:00
@github-project-automation github-project-automation bot moved this from In Progress to Done in Reth Tracker Nov 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-networking Related to networking in general C-debt A clean up/refactor of existing code

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants