mirrorBTC and EVM Interactions
Last updated
Last updated
It is crucial to understand the unique properties of mirrorBTC (mBTC), it is basically dual-record token, where BRC standard token part keep transaction records for specific tokens, while ERC metadata facilitates interaction with EVM smart contracts.\
The user sends mirrorBTC to a designated smart contract.
The transaction first enters the BRC20 section, where the mirrorBTC verifies its data and balance.
After verification, the transaction transitions to the EVM state.
Predefined ERC token metadata is injected at this stage.
The EVM state executes its standard methods, which are masked calls to the BRC/EVM processor that actually handles the responses.
This forms EVM state updates, including updates to the EVM store and the transactions Merkle Tree.
After verification by the BRC/ERC processor, the state updates produce UTXO sub-transactions, which are submitted to the mempool (essentially, they are appended to the end of the block during its composition).
Once the block is verified and accepted locally, it is spread across the entire blockchain network using an inventory system.