Skip to content

Return normal hash as bare txid for coinbase#73

Merged
galpHub merged 1 commit intoDiviProject:Developmentfrom
domob1812:fix-bare-txid
Mar 15, 2021
Merged

Return normal hash as bare txid for coinbase#73
galpHub merged 1 commit intoDiviProject:Developmentfrom
domob1812:fix-bare-txid

Conversation

@domob1812
Copy link
Copy Markdown

For coinbase transactions, we have to return the normal txid as the "bare" hash. For them, there is not a real signature that could be malleated anyway, but instead the scriptSig is needed to make sure each coinbase transaction has a different hash from any others.

In practice, this has no relevance, since no new coinbase transactions from PoW are created anyway after the future mainnet fork activation of segwit light. But for regtests it is needed (and in general required to make sure all is correct).

For coinbase transactions, we have to return the normal txid as the
"bare" hash.  For them, there is not a real signature that could be
malleated anyway, but instead the scriptSig is needed to make sure
each coinbase transaction has a different hash from any others.

In practice, this has no relevance, since no new coinbase transactions
from PoW are created anyway after the future mainnet fork activation of
segwit light.  But for regtests it is needed (and in general required to
make sure all is correct).
@domob1812 domob1812 mentioned this pull request Mar 15, 2021
@galpHub galpHub merged commit 0b14d5a into DiviProject:Development Mar 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants