• Home
  • About Us
  • disclaimer
  • Privacy Policy
  • Terms and Conditions
  • Contact Us
Crypto News
  • Home
  • Crypto News
  • Team Portofolio (Premium)
  • Member Login
No Result
View All Result
  • Home
  • Crypto News
  • Team Portofolio (Premium)
  • Member Login
No Result
View All Result
Crypto News
No Result
View All Result
Home Crypto News

Which is the hash-preimage of a 2-input transaction?

Cryptoadmin by Cryptoadmin
September 26, 2024
in Crypto News
0
BEST CRYPTO RECOVERY FIRM 2024
189
SHARES
1.5k
VIEWS
Share on FacebookShare on Twitter


When verifying a transaction, the Bitcoin node rebuilds the hash-preimage of it from the transaction that has acquired.

With one-input transaction, it’s straightforward to construct the hash-preimage of it:

  1. Change the scriptSig to the scriptPubKey the place the funds are being spent from.
  2. Change the sigHash placement.

The results of the steps above is double hashed, then is verified with the general public key and the “r” and “s” worth of the signature.

However with a two-inputs transaction, which is the whole course of?
To confirm every enter, does the hash-preimage embody the opposite enter?

Thanks upfront, it will be useful if an instance is supplied.

[Context]

I wrote the next code that verifies utilizing ECDSA math a one-input and one-output transaction, each P2PKH: https://github.com/SalvaZaraes/bitcoin-digital-signatures-article/blob/fundamental/verify-p2pkh-tx.py

Now I having issues with constructing the hash-preimage of a two-input transaction, that is the explanation behind asking the higher questions.

Tags: 2inputhashpreimageTransaction
Share76Tweet47
  • Trending
  • Comments
  • Latest
USDG Rewards: Earn as much as 4%+ APR in USDG on Kraken

USDG Rewards: Earn as much as 4%+ APR in USDG on Kraken

April 10, 2025
How Essential is Jito Solana MEV Bot Growth for the Cryptocurrency Ecosystem?

How Essential is Jito Solana MEV Bot Growth for the Cryptocurrency Ecosystem?

July 31, 2024
PURA Cost Processing | CoinPayments

PURA Cost Processing | CoinPayments

May 13, 2024
The Sandbox Basic Evaluation – Metaverse Crypto Gaming Platform

The Sandbox Basic Evaluation – Metaverse Crypto Gaming Platform

March 2, 2024
Ethiopia to begin mining Bitcoin by means of new information mining partnership

Ethiopia to begin mining Bitcoin by means of new information mining partnership

0
Be part of HitBTC official social media channels !

Be part of HitBTC official social media channels !

0
Bitwise launching spot bitcoin ETF (BITB) – CryptoNinjas

Bitwise launching spot bitcoin ETF (BITB) – CryptoNinjas

0
DeFi Masterclass. Decentralized Finance (DeFi) is an… | by Rohas Nagpal | Blockchain Weblog

DeFi Masterclass. Decentralized Finance (DeFi) is an… | by Rohas Nagpal | Blockchain Weblog

0
A Round Financial system And The 4 Archetypes Of Bitcoiners

A Round Financial system And The 4 Archetypes Of Bitcoiners

September 15, 2025
Inexperienced Blockchain: Can Sustainable Tech Clear up Power Considerations?

Inexperienced Blockchain: Can Sustainable Tech Clear up Power Considerations?

September 14, 2025
XION is obtainable for buying and selling!

XION is obtainable for buying and selling!

September 14, 2025
Gemini Soars 14% On Nasdaq Debut To Hit $3.8B Valuation

Gemini Soars 14% On Nasdaq Debut To Hit $3.8B Valuation

September 13, 2025

About Us

Welcome to Blog.cryptostudy.net The goal of Blog.cryptostudy.net is to give you the absolute best news sources for any topic! Our topics are carefully curated and constantly updated as we know the web moves fast so we try to as well.

Recent Posts

  • A Round Financial system And The 4 Archetypes Of Bitcoiners
  • Inexperienced Blockchain: Can Sustainable Tech Clear up Power Considerations?
  • XION is obtainable for buying and selling!
  • Home
  • About Us
  • disclaimer
  • Privacy Policy
  • Terms and Conditions
  • Contact Us

Copyright © 2024 Blog.cryptostudy.net | All Rights Reserved.

No Result
View All Result
  • Home
  • Crypto News
  • Team Portofolio (Premium)
  • Member Login

Copyright © 2024 Blog.cryptostudy.net | All Rights Reserved.