


南末
9.2K posts








Technical Overview of ME's Total Mempool Protection on Bitcoin @MagicEden is pioneering a groundbreaking solution to address the challenges of Replace-By-Fee (RBF) in Bitcoin transactions, particularly for Ordinals and Runes trading. Huge kudos to @summraznboi and the whole BTC engineering team's genius design, by leveraging the power of Tapscript, Schnorr Signer, and Partially Signed Bitcoin Transactions (PSBTs). TLDR: - As a seller, you only need to sign a signature when you list your Ordinals and Runes to join Total Mempool Protection. Your assets sit securely in your wallet and no transaction is needed. - As a buyer, if you buy protected listings with a shield icon, your buy transaction cannot be replaced, because all the signatures are SIGHASH_ALL. 1. The Challenge of RBF Replace-By-Fee (RBF) is a feature in Bitcoin that allows users to replace an unconfirmed transaction with a new version that pays a higher fee. While RBF can be useful for adjusting transaction fees in congested network conditions, it also introduces mempool sniping. The main issue arises when transactions are broadcasted to the mempool but not yet confirmed in a block. During this period, which can last from minutes to over an hour, transactions are susceptible to "sniping," where a buyer's original transaction is replaced by another with a higher fee, potentially causing the buyer to lose out on their intended purchase. 2. Magic Eden's Total Mempool Protection To combat these challenges, we are introducing Total Mempool Protection (TMP), an innovative backend infrastructure that effectively eliminates the possibility of RBF for protected transactions. Key Features of TMP: 1. Universal Protection: Available for all Taproot wallet addresses that have transacted with Ordinals or Runes. 2. Visual Identification: Protected listings are marked with a shield icon for easy recognition. 3. Dual Listing Types: Ordinals and Runes lots will be available as both mempool protected and non-protected listings. 3. Tapscript Innovation The core of Magic Eden's RBF protection lies in its creative use of Tapscript, a scripting language introduced with Taproot. We use taptree to encode an allowlist merkle tree of users, where each leaf script unlocks a specific user. Here's how Magic Eden leverages Tapscript to create a secure and efficient atomic swap mechanism: Magic Eden's approach involves a sophisticated PSBT construction and transaction flow: Seller Listing The seller signs a PSBT that commits to transferring assets using tapscript while simultaneously receiving payment. Buyer Transaction Preparation - First transaction: Consolidates UTXOs to match the required payment. - Second transaction: Submits payment to the seller while transferring the asset. - Third transaction: Transfers the asset to the buyer. TMP transactions never use the "SIGHASH_SINGLE | SIGHASH_ANYONECANPAY" signature type, which is the primary vector for current mempool sniping. Instead, TMP seller listing transactions are "anyone can pay" but with fixed and unchangeable outputs with SIGHASH_ALL. This structure ensures that while the transaction can be completed by anyone (the buyer), the outcomes cannot be altered, effectively preventing RBF attacks. If you want to learn more details about tapscript, here's a detailed explanation: x.com/rexzh0u/status… 4. Conclusion By creatively leveraging Taproot's capabilities, Magic Eden has developed a system that provides robust protection against mempool sniping while maintaining a high degree of trustlessness and efficiency. Trade Ordinals and Runes on magiceden.io, the feature will go live soon.




一🐟双吃,既可以打0号符文,又可以获得GeniiData积分! 在 @GeniiData多地址打 UNCOMMON•GOODS符文(0号符文)教程: 1⃣打开GeniiData官网: geniidata.com/ordinals/home?… 2⃣点击Runes页面,选择 UNCOMMON•GOODS 点击Mint 3⃣选择需要打的张数、选择多少张符文为1组、和接收地址点击“Receive”选择“Multiple”. 注意事项‼️选择 23 张一组的话,每组对应一个地址。 例如:你打115张对应就是23×5,填 5 个地址 注意:输入多地址不能混在一起,直接回车下一行填就行! 4⃣设置gas; 如果需要加速功能就点击开启,设置预付的最高费率. 使用加速功能需知: ▶️加速不收取额外手续费! ▶️如果你不加速,预付的gas会自动退回到地址! ▶️如果加速了,也是加速用了多少,剩下的gas还是自动退回地址! 5⃣选择“Advanced(Jubilee)”设置330;然后点击submit,支付BTC完成. 目前大饼手续费极低,可在2-4聪/字节的时候打 持仓成本会比,前面一个多月打的人低很多.