Merlin Protocol
  • ⚒️Welcome to Merlin Protocol
  • 🙌Vision
  • BRC20 ADAPTER
    • 📋Overview
    • ⏳Adapter Process
    • 📖Indexer Oracle
    • 🏬Bitcoin SPV Library
    • 🌎Puzzles and Teleburning Services
  • COMMUNITY
    • ❓FAQ
    • ✈️Roadmap
  • ECOSYSTEM
    • ⚖️Governance
    • 💰Token Economy
    • 🟡MBTC
    • 🤟Algorithmic Stablecoin
Powered by GitBook
On this page
  • Convert BRC-20 to ERC-20
  • Convert ERC-20 to BRC-20
  • Why use puzzles instead of multi-signature?
  1. BRC20 ADAPTER

Adapter Process

PreviousOverviewNextIndexer Oracle

Last updated 1 year ago

Convert BRC-20 to ERC-20

Process:

  1. Users invoke the premint interface of ERC-20 to preprocess the specified inscriptions.

  2. Apply to the Service Oracle for puzzles to be used for inscriptions custody.

  3. Generate a Taproot Script for locking the inscriptions.

  4. Transfer the inscriptions to the Taproot Script.

  5. Submit a mint request to the smart contract to generate the ERC20 tokens.

Convert ERC-20 to BRC-20

Process:

  1. Calculate the teleburn address by the locked inscriptions ID.

  2. Invoke the preburn interface of smart contract.

  3. Send the ERC20 tokens to the teleburn address for burn.

  4. Service Oracle captures the burn event, releasing the corresponding puzzles for the locked inscriptions ID.

  5. Users unlock the inscriptions and transfer it to the target address.

Why use puzzles instead of multi-signature?

The multisignature mechanism can effectively implement the custody and lockup of inscriptions. However, in business operations, the process of transforming BRC-20 to ERC-20 in DeFi interactions leads to a change in token ownership. The unlocking rules of multisignature are fixed and cannot be changed. Choosing the puzzle method for lockup provides more flexibility while ensuring the same level of security as multisignature.

⏳