Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Already on GitHub? Sign in to your account
Documentation clarification: Guide - Transactions #1161
Comments
|
I don't know whether that factored into Nakamoto's thinking when he created P2PKH transactions, however this is a real security benefit even though it doesn't come into play in all possible scenarios. |
dirkmc
commented
Dec 15, 2015
|
Further down in the explanation it says Bob’s signature script will contain the following two pieces of data:
... So if the public key is exposed at this step then there would be no security-related reason for hashing it in the earlier step, no? |
|
@dirkmc assuming addresses aren't being reused, the key isn't revealed until a transaction spending the output is broadcast. At that point. the hypothetical attacker with their ECDSA-breaking scheme is racing against the time it takes to confirm the transaction. |
dirkmc commentedDec 14, 2015
In https://github.com/bitcoin-dot-org/bitcoin.org/blob/master/_includes/devdoc/guide_transactions.md it says:
This pubkey hash can also be reliably repeated later, so it also does not need to be stored. The hash shortens and obfuscates the public key, making manual transcription easier and providing security against unanticipated problems which might allow reconstruction of private keys from public key data at some later point.
Is the part about providing security against unanticipated problems really a reason for hashing the public key?