Close Menu
  • Home
  • Altcoin
  • Bitcoin
  • Crypto
  • Forex
  • Online Money
What's Hot

Forget Bitcoin’s Old Cycle—A New Institutional Era Has Begun: Cathie Wood

December 11, 2025

Feel Like Giving Up Trading? Here’s How to Fix That… » Learn To Trade The Market

December 11, 2025

22-Year-Old Pleads Guilty In $263 Million Crypto Scheme

December 10, 2025
Facebook X (Twitter) Instagram
  • Altcoin
  • Bitcoin
  • Crypto
  • Forex
  • Online Money
Facebook X (Twitter) Instagram
Cointelegraphe
  • Home
  • Altcoin
  • Bitcoin
  • Crypto
  • Forex
  • Online Money
Cointelegraphe
Home»Bitcoin»Why did Satoshi put nBits in the coinbase scriptSig?
Why did Satoshi put nBits in the coinbase scriptSig?
Bitcoin

Why did Satoshi put nBits in the coinbase scriptSig?

adminBy adminNovember 8, 2025No Comments1 Min Read
Share
Facebook Twitter LinkedIn Pinterest Email


While discussing a recent Bitcoin Core pull request [0] it was pointed out that in the original Bitcoin code, or more accurately the first commit on Github, the miner produces a coinbase scriptSig as follows:

CTransaction txNew; 
txNew.vin.resize(1); 
txNew.vin[0].prevout.SetNull(); 
txNew.vin[0].scriptSig << nBits << ++bnExtraNonce; 
txNew.vout.resize(1); 
txNew.vout[0].scriptPubKey << key.GetPubKey() << OP_CHECKSIG;

What could have been the reason of adding nBits? It’s already in the header.

Yes, it ensures compliance with the minimum coinbase length rule, but he could have picked a different rule:

if (vin[0].scriptSig.size() < 2 || vin[0].scriptSig.size() > 100) 
         return error("CTransaction::CheckTransaction() : coinbase script size"); 

Maybe Satoshi had some other purpose in mind with this field, or perhaps a different header design that didn’t include nBits?

[0] https://github.com/bitcoin/bitcoin/pull/32420#issuecomment-3476735672



Source link

coinbase nBits put satoshi scriptSig
Share. Facebook Twitter Pinterest LinkedIn Tumblr Email
admin
  • Website

Related Posts

Forget Bitcoin’s Old Cycle—A New Institutional Era Has Begun: Cathie Wood

December 11, 2025

22-Year-Old Pleads Guilty In $263 Million Crypto Scheme

December 10, 2025

Saylor Says MSTR Will Not Issue Preferred Equity in Japan, Giving Metaplanet a 12 Month Head Start

December 9, 2025

Win 3 bitcoins this holiday season

December 8, 2025
Add A Comment
Leave A Reply Cancel Reply

Top Insights

Forget Bitcoin’s Old Cycle—A New Institutional Era Has Begun: Cathie Wood

December 11, 2025

Feel Like Giving Up Trading? Here’s How to Fix That… » Learn To Trade The Market

December 11, 2025

22-Year-Old Pleads Guilty In $263 Million Crypto Scheme

December 10, 2025

Fine Fractal Channel MT4 Indicator

December 10, 2025
ads

Subscribe to Updates

Get the latest creative news from Cointelegraphe about Crypto, bItcoin and Altcoin.

About Us
About Us

At CoinTelegraphe, we are dedicated to bringing you the latest and most insightful news, analysis, and updates from the dynamic world of cryptocurrency. Our mission is to provide our readers with accurate, timely, and comprehensive information to help them navigate the complexities of the crypto market.

Facebook X (Twitter) Instagram Pinterest YouTube
Top Insights

Forget Bitcoin’s Old Cycle—A New Institutional Era Has Begun: Cathie Wood

December 11, 2025

Feel Like Giving Up Trading? Here’s How to Fix That… » Learn To Trade The Market

December 11, 2025

22-Year-Old Pleads Guilty In $263 Million Crypto Scheme

December 10, 2025
Get Informed

Subscribe to Updates

Get the latest creative news from Cointelegraphe about Crypto, bItcoin and Altcoin.

Please enable JavaScript in your browser to complete this form.
Loading
  • About us
  • Contact Us
  • Shop
  • Privacy Policy
  • Terms and Conditions
Copyright 2024 Cointelegraphe Design By Horaam Sultan.

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