Close Menu
binanceplan.blog
    What's Hot

    S&P Global Outlines Rating Framework for Tokenised Money Market Funds

    July 11, 2026

    Fortune MT5 Reaches Page 2 on the MQL5 Marketplace Popular Ranking – Analytics & Forecasts – 10 July 2026

    July 11, 2026

    Stories from Bangkok: Devcon SEA Scholars Program

    July 11, 2026
    Facebook X (Twitter) Instagram
    binanceplan.blog
    • Home
    • Binance
    • Cryptocurrency
      • Altcoin
      • Litecoin
      • Bitcoin
    • Crowdfunding
    • Crypto Mining
    • Ethereum
    • Fintech
    • Forex
      • Mompreneur
      • Venture Capital
    binanceplan.blog
    Home»Bitcoin»taproot – how should p2tr script trees be formatted/ordered in bitcoinjs-lib
    Bitcoin

    taproot – how should p2tr script trees be formatted/ordered in bitcoinjs-lib

    币安计划官方By 币安计划官方May 22, 2026No Comments1 Min Read
    Facebook Twitter Pinterest LinkedIn Tumblr Email
    taproot – how should p2tr script trees be formatted/ordered in bitcoinjs-lib
    Share
    Facebook Twitter LinkedIn Pinterest Email


    i’m looking at the p2tr examples in the bitcoinjs-lib repo and many of them are structuring the script trees in what seemingly seems arbitrary. check out the example below taken from this file on line 248:

    const scriptTree: Taptree = [
          [
            {
              output: bitcoin.script.fromASM(
                '50929b74c1a04954b78b4b6035e97a5e078a5a0f28ec96d547bfee9ace803ac0 OP_CHECKSIG',
              ),
            },
            [
              {
                output: bitcoin.script.fromASM(
                  '50929b74c1a04954b78b4b6035e97a5e078a5a0f28ec96d547bfee9ace803ac1 OP_CHECKSIG',
                ),
              },
              {
                output: bitcoin.script.fromASM(
                  '2258b1c3160be0864a541854eec9164a572f094f7562628281a8073bb89173a7 OP_CHECKSIG',
                ),
              },
            ],
          ],
          [
            {
              output: bitcoin.script.fromASM(
                '50929b74c1a04954b78b4b6035e97a5e078a5a0f28ec96d547bfee9ace803ac2 OP_CHECKSIG',
              ),
            },
            [
              {
                output: bitcoin.script.fromASM(
                  '50929b74c1a04954b78b4b6035e97a5e078a5a0f28ec96d547bfee9ace803ac3 OP_CHECKSIG',
                ),
              },
              [
                {
                  output: bitcoin.script.fromASM(
                    '50929b74c1a04954b78b4b6035e97a5e078a5a0f28ec96d547bfee9ace803ac4 OP_CHECKSIG',
                  ),
                },
                {
                  output: leafScript,
                },
              ],
            ],
          ],
        ];
    

    like how do i make sense of this?



    Source link

    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email

    Related Posts

    BIP-110 and Bitcoin’s High Bar for Consensus Change

    July 11, 2026

    transactions – Is this dummy-padded Ordinals atomic-swap PSBT construction correct and safe?

    July 10, 2026

    Wirex Powers BingX’s First Visa Debit Card

    July 10, 2026

    Tether’s $25 Million Telecom Bet Extends Its Push Beyond Stablecoins

    July 10, 2026
    Add A Comment
    Leave A Reply Cancel Reply

    TOP POSTS

    S&P Global Outlines Rating Framework for Tokenised Money Market Funds

    July 11, 2026

    Fortune MT5 Reaches Page 2 on the MQL5 Marketplace Popular Ranking – Analytics & Forecasts – 10 July 2026

    July 11, 2026

    Stories from Bangkok: Devcon SEA Scholars Program

    July 11, 2026

    Why Bitfinex Is Warning Investors About the Yen Carry Trade

    July 11, 2026

    Subscribe to Updates

    Get the latest creative news from Binanceplan about Altcoin, Binance and Bitcoin.

    Please enable JavaScript in your browser to complete this form.
    Loading

    Welcome to BinancePlan.blog — your trusted source for learning, strategies, and insights in the world of cryptocurrency, with a strong focus on Binance and digital asset growth.At BinancePlan, our mission is simple: to make crypto easy, understandable, and profitable for everyone — whether you’re a complete beginner or an experienced trader.

    Top Insights

    S&P Global Outlines Rating Framework for Tokenised Money Market Funds

    July 11, 2026

    Fortune MT5 Reaches Page 2 on the MQL5 Marketplace Popular Ranking – Analytics & Forecasts – 10 July 2026

    July 11, 2026

    Stories from Bangkok: Devcon SEA Scholars Program

    July 11, 2026
    Get Informed

    Subscribe to Updates

    Get the latest creative news from Binanceplan about Altcoin, Binance and Bitcoin.

    Please enable JavaScript in your browser to complete this form.
    Loading
    • About Us
    • Contact Us
    • Disclaimer
    • Privacy Policy
    • Terms and Conditions
    Copyright© 2026 Binanceplan All Rights Reserved.

    Type above and press Enter to search. Press Esc to cancel.