zkopru
Getting started🔗 Source code
1.0.0
1.0.0
  • What is zkopru?
  • Getting started
    • Install CLI
    • Deposit
    • Transfer
    • Withdraw
    • Configure Coordinator
    • [WIP] Atomic swap
    • [WIP] Migration
  • How it works
    • Burn Auction
    • Transaction
    • Block structure & serialization
    • Account
    • UTXO
    • Encrypted memo field
    • Atomic swap
    • Grove: Merkle trees of zkopru
    • Merged leaves & optimistic rollup
    • Mass deposit
    • Mass migration
    • Instant withdrawal
  • Roadmap
  • RPC API
Powered by GitBook
On this page

Was this helpful?

  1. How it works

Mass migration

PreviousMass depositNextInstant withdrawal

Last updated 4 years ago

Was this helpful?

The basic idea of mass migration is pretty simple. While deposit transactions on the layer-1 contract create a MassDeposit object, "Migration" type outputs of transactions can create a MassMigration that constructs a MassDeposit for its destination network.

A transaction can have UTXO, Migration, or Withdrawal type of outputs. To check more details, see page.

In Zkopru, for the migration, there are source network and destination network. Once a mass migration on the source network is finalized(code ), the on the source network can be executed. The function moves the assets, including Ether, ERC20, and ERC721, while creating a MassDeposit object for the destination network.

Therefore, the destination network should implement . Also, it is recommended to allow migrations only from trusted networks.

The migration standard between rollups is going to be standardized through EIP.

"Transaction"
here
migrateTo function
acceptMigration function