Close Menu
binanceplan.blog
    What's Hot

    Speculation on dogecoin is back to October 2025 levels. The price is down 70%

    August 13, 2026

    Trade the S&P 500 with our money using Kraken Prop

    August 13, 2026

    Empery Digital Sells 1,635 Bitcoin As Treasury Buffer Shrinks

    August 13, 2026
    Facebook X (Twitter) Instagram
    binanceplan.blog
    • Home
    • Binance
    • Cryptocurrency
      • Altcoin
      • Litecoin
      • Bitcoin
    • Crowdfunding
    • Crypto Mining
    • Ethereum
    • Fintech
    • Forex
      • Mompreneur
      • Venture Capital
    binanceplan.blog
    Home»Bitcoin»script – Does SHA-256d’s fixed second-hash padding create measurable internal structure beyond random oracle behavior?
    Bitcoin

    script – Does SHA-256d’s fixed second-hash padding create measurable internal structure beyond random oracle behavior?

    币安计划官方By 币安计划官方April 28, 2026No Comments2 Mins Read
    Facebook Twitter Pinterest LinkedIn Tumblr Email
    script – Does SHA-256d’s fixed second-hash padding create measurable internal structure beyond random oracle behavior?
    Share
    Facebook Twitter LinkedIn Pinterest Email


    Bitcoin security never depended on resistance to length-extension because preimages are public anyway, and common belief is that the double was used just for defense-in-depth.

    I don’t think Bitcoin ever uses hashes in a way that would suffer from length extensions, but I guess Satoshi went with the safe choice of preventing it everywhere.

    To avoid this property, Ferguson and Schneier suggested using SHA256d = SHA256(SHA256(x)) which avoids length-extension attacks. This construction has some minor weaknesses (not relevant to bitcoin), so I wouldn’t recommend it for new protocols, and would use HMAC with constant key, or truncated SHA512 instead.


    The paper’s discovery is interesting in that it moves SHA256d further away from a random oracle which has implications for secondary on-chain uses (e.g. in smart contracts or as 32-byte P2SH wrapper).

    Interestingly, Bitcoin developers didn’t think that securing against length-extension matters so they went with plain SHA256 for SegWit P2WSH address hashes.

    Later, Bitcoin Cash developers chose SHA256d for P2SH32, thus maintaining consistency with the rest of the protocol, and unlinkability between never-spent-from addresses.

    This discovery you present somewhat weakens unlinkability property of SHA256d hashes. Readers might be interested in some older related work, that has already shown a weakness against an exotic use-case (Dodis et al., 2013):

    We exhibit a cryptographic setting, called mutual proofs of work, in which the highlighted structure of H2 can be exploited. In mutual proofs of work, two parties prove to each other that they have computed some asserted amount of computational effort. This task is inspired by, and similar to, client puzzles [20, 21, 27, 28, 40] and puzzle auctions [42]. We give a protocol for mutual proofs of work whose computational task is computing hash chains. This protocol is secure when using a random oracle, but when using instead H2 an attacker can cheat by abusing the structural properties discussed above.



    Source link

    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email

    Related Posts

    Trade the S&P 500 with our money using Kraken Prop

    August 13, 2026

    Change Log: Version 1.136 – Bitfinex blog

    August 13, 2026

    BlackRock Cuts IBIT In-Kind Conversion Minimum To $1M

    August 12, 2026

    Regulators To Push Pro-Crypto Initiatives Following Clarity Act Delay

    August 12, 2026
    Add A Comment
    Leave A Reply Cancel Reply

    TOP POSTS

    Speculation on dogecoin is back to October 2025 levels. The price is down 70%

    August 13, 2026

    Trade the S&P 500 with our money using Kraken Prop

    August 13, 2026

    Empery Digital Sells 1,635 Bitcoin As Treasury Buffer Shrinks

    August 13, 2026

    How To Place Stop Losses Like a Pro Trader » Learn To Trade The Market

    August 13, 2026

    Subscribe to Updates

    Get the latest creative news from Binanceplan about Altcoin, Binance and Bitcoin.

    Please enable JavaScript in your browser to complete this form.
    Loading

    Welcome to BinancePlan.blog — your trusted source for learning, strategies, and insights in the world of cryptocurrency, with a strong focus on Binance and digital asset growth.At BinancePlan, our mission is simple: to make crypto easy, understandable, and profitable for everyone — whether you’re a complete beginner or an experienced trader.

    Top Insights

    Speculation on dogecoin is back to October 2025 levels. The price is down 70%

    August 13, 2026

    Trade the S&P 500 with our money using Kraken Prop

    August 13, 2026

    Empery Digital Sells 1,635 Bitcoin As Treasury Buffer Shrinks

    August 13, 2026
    Get Informed

    Subscribe to Updates

    Get the latest creative news from Binanceplan about Altcoin, Binance and Bitcoin.

    Please enable JavaScript in your browser to complete this form.
    Loading
    • About Us
    • Contact Us
    • Disclaimer
    • Privacy Policy
    • Terms and Conditions
    Copyright© 2026 Binanceplan All Rights Reserved.

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