• 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

Musk’s SpaceX Breaks Under Its $135 IPO Value After a 42% Collapse From Its Peak

Musk’s SpaceX Breaks Under Its $135 IPO Value After a 42% Collapse From Its Peak

July 17, 2026
Visa Stablecoin Platform Launches for Banks, Fintechs

Visa Stablecoin Platform Launches for Banks, Fintechs

July 17, 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

Musk’s SpaceX Breaks Under Its $135 IPO Value After a 42% Collapse From Its Peak

Musk’s SpaceX Breaks Under Its $135 IPO Value After a 42% Collapse From Its Peak

by Coininsight
July 17, 2026
0

Key TakeawaysSPCX closed at $131.11 on July 16, down 3.08% and under its $135 IPO worth for the primary time.SpaceX...

Visa Stablecoin Platform Launches for Banks, Fintechs

Visa Stablecoin Platform Launches for Banks, Fintechs

by Coininsight
July 17, 2026
0

Visa unveiled the Visa Stablecoin Platform (VSP), a brand new product that lets banks, fintechs and crypto companies mint, transfer...

smooth fork – Why does BIP-110 require a 55% signaling threshold if its nodes reject non-signaling blocks?

smooth fork – Why does BIP-110 require a 55% signaling threshold if its nodes reject non-signaling blocks?

by Coininsight
July 16, 2026
0

A compulsory signaling interval solely occurs if miners have not already locked within the activation by way of voluntary signaling....

Binance $800K XRP Airdrop: RLUSD Holders Qualify

Binance $800K XRP Airdrop: RLUSD Holders Qualify

by Coininsight
July 16, 2026
0

In main information as we speak, Binance has reportedly launched an $800,000 XRP reward marketing campaign working till August 14,...

Kraken API Accomplice Program Introduces Developer Improve Options

Kraken API Accomplice Program Introduces Developer Improve Options

by Coininsight
July 16, 2026
0

Trusted Editorial content material, reviewed by main trade consultants and seasoned editors. Advert Disclosure Crypto doesn't transfer on one type...

Load More
  • Trending
  • Comments
  • Latest
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
Easy methods to Host a Storj Node – Setup, Earnings & Experiences

Easy methods to Host a Storj Node – Setup, Earnings & Experiences

March 11, 2025
BitHub 77-Bit token airdrop information

BitHub 77-Bit token airdrop information

February 6, 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
Supporting Ethereum’s Shopper Ecosystem | Ethereum Basis Weblog

Supporting Ethereum’s Shopper Ecosystem | Ethereum Basis Weblog

July 17, 2026
Crypto.com Secures $400M Funding From Citadel Securities At $20B Valuation

Crypto.com Secures $400M Funding From Citadel Securities At $20B Valuation

July 17, 2026
XRP att dominera Japans banksystem med 80% antagande

XRP att dominera Japans banksystem med 80% antagande

July 17, 2026
Musk’s SpaceX Breaks Under Its $135 IPO Value After a 42% Collapse From Its Peak

Musk’s SpaceX Breaks Under Its $135 IPO Value After a 42% Collapse From Its Peak

July 17, 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

Supporting Ethereum’s Shopper Ecosystem | Ethereum Basis Weblog

Supporting Ethereum’s Shopper Ecosystem | Ethereum Basis Weblog

July 17, 2026
Crypto.com Secures $400M Funding From Citadel Securities At $20B Valuation

Crypto.com Secures $400M Funding From Citadel Securities At $20B Valuation

July 17, 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