• 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
SUI staking is now dwell on Kraken – earn as much as 3%

SUI staking is now dwell on Kraken – earn as much as 3%

July 7, 2025
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
Bitcoin Worth Wobbles — Is A Sharp Draw back Transfer On The Horizon?

Bitcoin Worth Wobbles — Is A Sharp Draw back Transfer On The Horizon?

October 16, 2025
Yuga Labs Picks OpenSea As Its Official NFT Market

Yuga Labs Picks OpenSea As Its Official NFT Market

October 15, 2025
$7K Ethereum by 2026? Analyst Explains the Bullish Case

$7K Ethereum by 2026? Analyst Explains the Bullish Case

October 15, 2025
Are miners now web accumulators? Marathon provides 400 BTC after the crash

Are miners now web accumulators? Marathon provides 400 BTC after the crash

October 15, 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

  • Bitcoin Worth Wobbles — Is A Sharp Draw back Transfer On The Horizon?
  • Yuga Labs Picks OpenSea As Its Official NFT Market
  • $7K Ethereum by 2026? Analyst Explains the Bullish Case
  • 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.