Close Menu
binanceplan.blog
    What's Hot

    Vitalik’s smaller Ethereum Foundation tests ETH holders’ demand for execution

    May 25, 2026

    Prometheum says tokenized securities need Wall Street distribution to scale

    May 25, 2026

    How to Trade Like A Hedge Fund Manager » Learn To Trade The Market

    May 25, 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

    Prometheum says tokenized securities need Wall Street distribution to scale

    May 25, 2026

    BTC Monthly Open In Focus After $584 Million Longs Liquidations

    May 25, 2026

    multi signature – with multisig wallet on sparrow, is there a way to keep wallet balance/wallet-config private from collaborating signers

    May 25, 2026

    Bitcoin Price Could Fall To $72.5K Before Next Rebound — Here’s Why

    May 24, 2026
    Add A Comment
    Leave A Reply Cancel Reply

    TOP POSTS

    Vitalik’s smaller Ethereum Foundation tests ETH holders’ demand for execution

    May 25, 2026

    Prometheum says tokenized securities need Wall Street distribution to scale

    May 25, 2026

    How to Trade Like A Hedge Fund Manager » Learn To Trade The Market

    May 25, 2026

    Bitcoin Rally Faces Fresh Test As Demand Metric Hits 2026 Low

    May 25, 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

    Vitalik’s smaller Ethereum Foundation tests ETH holders’ demand for execution

    May 25, 2026

    Prometheum says tokenized securities need Wall Street distribution to scale

    May 25, 2026

    How to Trade Like A Hedge Fund Manager » Learn To Trade The Market

    May 25, 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.