Skip to content

feat(bridge): add multi-signature validator enforcement for cross-chain transactions - #340

Merged
LaGodxy merged 2 commits into
MettaChain:mainfrom
devkryssie:feat/bridge-multisig-validation-203
Apr 28, 2026
Merged

feat(bridge): add multi-signature validator enforcement for cross-chain transactions#340
LaGodxy merged 2 commits into
MettaChain:mainfrom
devkryssie:feat/bridge-multisig-validation-203

Conversation

@devkryssie

Copy link
Copy Markdown
Contributor

Summary

Implements the multi-signature validation requirement for cross-chain bridge transactions as described in issue #203.

Changes

  • Added a validators storage field to PropertyBridge — only accounts in this set may sign bridge requests
  • sign_bridge_request now returns Unauthorized if the caller is not a registered validator
  • execute_bridge re-validates that all collected signatures belong to currently active validators before execution
  • New admin messages: add_validator, remove_validator, get_validators, is_validator
  • Added sign_bridge_request_with_signature for optional ECDSA cryptographic signature verification
  • Extended bridge unit tests to cover threshold enforcement, duplicate-signature rejection, and non-validator rejection

Testing

cargo test --package propchain-tests

All existing tests pass. New tests added in contracts/bridge/src/tests.rs and tests/bridge_tests.rs.

Closes #203

…in transactions

Closes MettaChain#203

- Add  storage field to PropertyBridge contract
- Restrict  to registered validators only
- Re-validate all signers are still active validators at execution time
- Add , , ,  admin messages
- Add ECDSA-based  for cryptographic verification
- Extend bridge tests to cover threshold enforcement and non-validator rejection
@drips-wave

drips-wave Bot commented Apr 23, 2026

Copy link
Copy Markdown

@devkryssie Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@LaGodxy
LaGodxy merged commit 1673140 into MettaChain:main Apr 28, 2026
10 of 11 checks passed
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.

Bridge: Add multi-signature validation

2 participants