Kaon
  • INTRODUCTION
    • What is Kaon?
    • Why Kaon?
    • Who Should Use Kaon?
    • Who Should Build On Kaon?
    • How Does it Work?
    • Terminology
  • QUICKSTART
    • Getting Started
    • 5-Minute Setup
    • Hello KAON!
  • CORE CONCEPTS
    • Fundamentals Overview
      • Unifying Bitcoin and Ethereum(EVM)
    • Cross-Chain Interactions
      • Bridge-less Token Transfers
      • Oracle-less Cross-chain Message
      • Cross-Chain Transaction Management
      • Gasless Operating Process
      • Bridge-less ERC cross-chain Transfers
    • BTC Transaction Lifecycle
      • BTC Locking and Mirroring
      • BTC Withdrawal
    • EVM Integrations
      • mirrorBTC and EVM Interactions
      • mirrorBTC Transfer To EVM Chain
      • Restore mirrorBTC From Wrap Process
      • Metamask and other Offchain EVM Wallets Support
    • Consensus Mechanisms
      • Kaon Chain Consensus (dPoS)
      • Cross-Chain BFT Consensus
      • Slashing Incidence Process
    • Key Innovations
  • NETWORK & TOOLS
    • Kaon Testnet
    • Kaon CLI
    • Network and Tools
  • GUIDES & TUTORIALS
    • Creating a Time-Locked Bitcoin Vault
Powered by GitBook
On this page
  1. CORE CONCEPTS
  2. EVM Integrations

Restore mirrorBTC From Wrap Process

PreviousmirrorBTC Transfer To EVM ChainNextMetamask and other Offchain EVM Wallets Support

Last updated 6 months ago

  1. The user initiates the process by sending the ERC20 tokens (which represent the wrapped mirrorBTC) to a designated smart contract on the Kaon chain.

  2. The smart contract recognizes the transaction and identifies the corresponding voucher created during the initial wrapping process. This voucher contains the necessary details to facilitate the restoration.

  3. The voucher undergoes a validation process to ensure its authenticity and to confirm that it matches the ERC20 tokens being unwrapped.

  4. Upon successful validation, the voucher is destroyed. This step is crucial to prevent any double-spending or reuse of the voucher.

  5. The details from the destroyed voucher are used to trigger the creation of mirrorBTC tokens back on the Kaon network.

  6. The Kaon network mints new mirrorBTC tokens equivalent to the amount specified in the destroyed voucher. This step ensures that the user regains their original token value in the form of mirrorBTC.

  7. The newly minted mirrorBTC tokens are sent to the user’s wallet within the Kaon network, completing the restoration process.

It is possible to do the reverse without using Voucher and using only tokens. But this way Kaon pool will assign Bitcoins randomly and only from those who are received from unrecognized sources.