Repository navigation
[Proposal] Lightweight TypeScript CLI for Automated Ethereum Bridge Epoch Synchronization #2267
kakavaanen
started this conversation in
Protocol Improvements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Motivation
Currently, submitting epoch updates to the Ethereum BridgeContract requires using the
submit-epoch-public.jsscript located inproposals/ethereum-bridge-contact/.This process has several bottlenecks:
/epoch_dataand/signing_history), manually copy-paste the Base64 keys, and pass them as CLI arguments.Proposed Solution
I propose building a lightweight, standalone TypeScript CLI (
@gonka/bridge-sync) that automates the entire process without any Hardhat dependencies.The tool will:
ethersand@noble/curvesto handle all ABI interactions and EIP-2537 BLS conversions natively.group_public_keyand thefinal_signaturefrom the signing history.latest + 1, submitting the transaction, and waiting for confirmation, repeating until the bridge is fully synced.Proof of Concept
I have already built and tested the core logic locally. It successfully:
0x972a7a92d92796a98801a8818bcf91f1648f2f68).@noble/curves.0x969731f6...) required bysubmitGroupKey.Deliverable
A public npm package and CLI script (
npx gonka-bridge-sync --rpc <url> --key <pk>) that vastly improves the operational experience for bridge maintainers and validators.I am looking for feedback from the community and Hosts before opening a PR.
All reactions