Skip to content
This repository was archived by the owner on Nov 19, 2025. It is now read-only.

Update dependencies for alloy 1.0.30 and bn254 compatibility#64

Closed
RonTuretzky wants to merge 1 commit into
devfrom
update-bn254-dependencies
Closed

Update dependencies for alloy 1.0.30 and bn254 compatibility#64
RonTuretzky wants to merge 1 commit into
devfrom
update-bn254-dependencies

Conversation

@RonTuretzky
Copy link
Copy Markdown
Contributor

Summary

Updates dependencies to be compatible with alloy 1.0.30 and the updated bn254 library. This PR addresses the runtime "Wrong Public Key: InvalidData" errors that occur when the router (updated) tries to communicate with nodes (not updated) due to bn254 version mismatch.

Changes

Dependency Updates

  • alloy: 0.12.6 → 1.0.30
  • alloy-primitives: 0.8.25 → 1.4.1
  • alloy-network: 0.5.4 → 1.0.30
  • commonware packages: 0.0.56 → 0.0.62
  • eigen-crypto-bls: 0.5.0 → 2.0.0
  • eigen-crypto-bn254: 0.5.0 → 2.0.0
  • eigen-logging: 0.1.3 → 1.0.0
  • bn254: Updated to feat/update-dependencies branch
  • commonware-eigenlayer: Updated to feat/update-dependencies branch
  • commonware-avs-router: Point to feat/update-dependencies branch

Status

⚠️ Work in Progress - This PR updates the dependency versions but the contract bindings still need to be fully regenerated for alloy 1.0+ API compatibility.

Remaining Work

  • Regenerate BLSSignatureChecker contract binding for alloy 1.0+
  • Fix any remaining compilation errors after binding regeneration
  • Test runtime compatibility with updated router

Context

This update is required to maintain compatibility with the router PR: OpacityLabs/opacity-commonware-avs-router#40

The bn254 library changes affect how BLS keys are serialized/deserialized, causing "Wrong Public Key: InvalidData" panics when mismatched versions try to communicate.

Testing

Once bindings are regenerated and compilation succeeds:

  • Local integration test with updated router
  • Verify BLS key compatibility
  • CI/CD passes

- Update alloy from 0.12.6 to 1.0.30
- Update alloy-primitives from 0.8.25 to 1.4.1
- Update commonware packages from 0.0.56 to 0.0.62
- Update eigen-crypto-bls from 0.5.0 to 2.0.0
- Update eigen-crypto-bn254 from 0.5.0 to 2.0.0
- Update eigen-logging from 0.1.3 to 1.0.0
- Update bn254 to feat/update-dependencies branch
- Update commonware-eigenlayer to feat/update-dependencies branch
- Point commonware-avs-router to feat/update-dependencies branch

Note: Contract bindings need to be regenerated for alloy 1.0+ API.
BLSSignatureChecker binding requires manual regeneration.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant