• About
  • Privacy Poilicy
  • Disclaimer
  • Contact
CoinInsight
  • Home
  • Bitcoin
  • Ethereum
  • Regulation
  • Market
  • Blockchain
  • Ripple
  • Future of Crypto
  • Crypto Mining
No Result
View All Result
  • Home
  • Bitcoin
  • Ethereum
  • Regulation
  • Market
  • Blockchain
  • Ripple
  • Future of Crypto
  • Crypto Mining
No Result
View All Result
CoinInsight
No Result
View All Result
Home Bitcoin

taproot – how ought to p2tr script timber be formatted/ordered in bitcoinjs-lib

Coininsight by Coininsight
May 21, 2026
in Bitcoin
0
taproot – how ought to p2tr script timber be formatted/ordered in bitcoinjs-lib
189
SHARES
1.5k
VIEWS
Share on FacebookShare on Twitter


i am trying on the p2tr examples within the bitcoinjs-lib repo and lots of of them are structuring the script timber in what seemingly appears arbitrary. take a look at the instance beneath 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?

Related articles

Bitcoin Close to $60,000 Is Simply One Extra Crimson Week Away From Tying 2022 Report

Bitcoin Close to $60,000 Is Simply One Extra Crimson Week Away From Tying 2022 Report

November 30, 2026

The SEC’s “Innovation Exemption” for Tokenized Stocks Explained

November 30, 2026


i am trying on the p2tr examples within the bitcoinjs-lib repo and lots of of them are structuring the script timber in what seemingly appears arbitrary. take a look at the instance beneath 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?

Tags: bitcoinjslibformattedorderedp2trscriptTaproottrees
Share76Tweet47

Related Posts

Bitcoin Close to $60,000 Is Simply One Extra Crimson Week Away From Tying 2022 Report

Bitcoin Close to $60,000 Is Simply One Extra Crimson Week Away From Tying 2022 Report

by Coininsight
November 30, 2026
0

Key TakeawaysBTC posted 8 straight purple weekly closes on Binance from Oct. 5 to Nov. 29, dropping 30.6%.The 2022 streak...

The SEC’s “Innovation Exemption” for Tokenized Stocks Explained

by Coininsight
November 30, 2026
0

Key Takeaways On September 17, 2026, the SEC launched the Innovation Exemption which enables approved Tokenized Securities Venues (TSVs) to...

Binance Brasil Gets Third Central Bank License as FX Broker

by Coininsight
November 29, 2026
0

Binance Brasil has received a foreign exchange broker license from the Central Bank of Brazil, its third authorization from the...

Zodia Custody breach: shopper contact knowledge leaked

Zodia Custody breach: shopper contact knowledge leaked

by Coininsight
November 29, 2026
0

Zodia Custody confirmed on November 26, 2026 that an unauthorized occasion accessed restricted shopper and worker contact data. It follows...

Is The Bitcoin Crash Over?

by Coininsight
November 29, 2026
0

Trusted Editorial content, reviewed by leading industry experts and seasoned editors. Ad Disclosure Key takeaways CoinMarketCap’s Crypto Fear and Greed...

Load More
  • Trending
  • Comments
  • Latest
What’s Actually Going On With Ripple’s Blockchain?

What’s Actually Going On With Ripple’s Blockchain?

January 12, 2026

Grantee Roundup: November 2020 | Ethereum Foundation Blog

September 28, 2026
MetaMask Launches An NFT Reward Program – Right here’s Extra Data..

MetaMask Launches An NFT Reward Program – Right here’s Extra Data..

July 24, 2025
Finest Bitaxe Gamma 601 Overclock Settings & Tuning Information

Finest Bitaxe Gamma 601 Overclock Settings & Tuning Information

November 26, 2025
Kuwait bans Bitcoin mining over power issues and authorized violations

Kuwait bans Bitcoin mining over power issues and authorized violations

2
The Ethereum Basis’s Imaginative and prescient | Ethereum Basis Weblog

The Ethereum Basis’s Imaginative and prescient | Ethereum Basis Weblog

2
Unchained Launches Multi-Million Greenback Bitcoin Legacy Mission

Unchained Launches Multi-Million Greenback Bitcoin Legacy Mission

1
Earnings Preview: Microsoft anticipated to report larger Q3 income, revenue

Earnings Preview: Microsoft anticipated to report larger Q3 income, revenue

1

Eric Weiss Warns AI Is Draining Bitcoin Capital, But Coinbase CEO Brian Armstrong Sees a BTC Rebound Ahead ⋆ ZyCrypto

November 30, 2026

90% of Its HYPE Is Staked

November 30, 2026
Bitcoin Close to $60,000 Is Simply One Extra Crimson Week Away From Tying 2022 Report

Bitcoin Close to $60,000 Is Simply One Extra Crimson Week Away From Tying 2022 Report

November 30, 2026

It’s not too late to start earning a second income in 2026!

November 30, 2026

CoinInight

Welcome to CoinInsight.co.uk – your trusted source for all things cryptocurrency! We are passionate about educating and informing our audience on the rapidly evolving world of digital assets, blockchain technology, and the future of finance.

Categories

  • Bitcoin
  • Blockchain
  • Crypto Mining
  • Ethereum
  • Future of Crypto
  • Market
  • Regulation
  • Ripple

Recent News

Eric Weiss Warns AI Is Draining Bitcoin Capital, But Coinbase CEO Brian Armstrong Sees a BTC Rebound Ahead ⋆ ZyCrypto

November 30, 2026

90% of Its HYPE Is Staked

November 30, 2026
  • About
  • Privacy Poilicy
  • Disclaimer
  • Contact

© 2025- https://coininsight.co.uk/ - All Rights Reserved

No Result
View All Result
  • Home
  • Bitcoin
  • Ethereum
  • Regulation
  • Market
  • Blockchain
  • Ripple
  • Future of Crypto
  • Crypto Mining

© 2025- https://coininsight.co.uk/ - All Rights Reserved

Social Media Auto Publish Powered By : XYZScripts.com
Verified by MonsterInsights