-
Notifications
You must be signed in to change notification settings - Fork 115
Open
Labels
agglayerPRs or issues related to AggLayer bridging integrationPRs or issues related to AggLayer bridging integration
Milestone
Description
The goal of this issue is to track the required follow up issues after #2188 is merged.
Required for immediate Gateway integration
- 1. Create high level helper functions for converting Solidity types into Miden Rust types. Related to Add conversion function for EVM address type (20 bytes) to
AccountId#2229 - 2. Clean up inputs for
create_claim_note() - 3. Create a Gateway operator account that creates
CLAIMnotes
Personally I don't think 3 is needed, we can just use a BasicWallet account with NoAuth for the account that creates CLAIM notes.
Not required for Gateway integration, but required for production bridge flow
- 1. Implement
getLeaf()in MASM: ImplementgetLeafValue()in MASM #2220 - 2. Implement U256 ->
Feltscaling down procedure (per spec/comment): Convert asset amounts between Miden and Ethereum #2011 (comment) - 3. Implement
_verifyLeaf()in MASM and tie it intommr_frontier_keccakwhich @Fumuran is working on: Keccak-based MMR frontier (agglayer::collections::mmr_frontier_keccak) #2105 - 4.
build_note_tagin MASM: feat: implementbuild_note_tag_for_local_accountin masm #2235 (Blocked until feat: RefactorNoteTagto contain an arbitraryu32#2219 is merged) - 5. Refactor & clean up
batch_pipe_double_wordscontext: Add AgglayerCLAIMnote & bridging in functionality #2188 (comment) - 6. Add storage slot to agglayer faucet to store
originTokenAddresscontext: Add AgglayerCLAIMnote & bridging in functionality #2188 (comment) - 7. Post-proof validation: verify leaf data (destinationNetwork for Miden, destinationAddress via faucet registry), compute GER = keccak(mainnetExitRoot || rollupExitRoot), and ensure the GER is stored in the bridge (temporary map of valid GERs) context: Add Agglayer
CLAIMnote & bridging in functionality #2188 (comment) - 8. Refactor
ClaimNoteParamscontext: Add AgglayerCLAIMnote & bridging in functionality #2188 (comment) - 9. Replace agglayer branch
felts_to_bytes32&bytes32_to_feltswithpacked_u32_elements_to_bytesandbytes_to_packed_u32_elementscontext: Add AgglayerCLAIMnote & bridging in functionality #2188 (comment)
For 3, this is the Solidity _verifyLeaf() implementation: https://github.com/agglayer/agglayer-contracts/blob/e468f9b0967334403069aa650d9f1164b1731ebb/contracts/v2/PolygonZkEVMBridgeV2.sol#L908
@bobbinth @mmagician - is there anything else needed to add to this list for immediate Gateway integration?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
agglayerPRs or issues related to AggLayer bridging integrationPRs or issues related to AggLayer bridging integration