Close Menu
binanceplan.blog
    What's Hot

    White House Adviser Patrick Witt Teases ‘Big Announcement’ at Bitcoin 2026

    April 28, 2026

    Shaping the Future of Finance: A New Age of Effortless Borrowing

    April 28, 2026

    Solana Prepares For The Quantum Era: Foundation Details Step-By-Step Transition

    April 28, 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

    6 Ways to Understand Your Transaction History Better 

    April 28, 2026

    Is Bitcoin Becoming A Strategic Military Asset? US Admiral Hints At Deeper Role

    April 27, 2026

    Strive Expands Bitcoin Treasury With $61.4 Million Purchase, Holdings Reach 14,557 BTC

    April 27, 2026

    Machi Big Brother Opens $86 Million Bitcoin and Ethereum Long After Losing $73 Million Over Six Months

    April 27, 2026
    Add A Comment
    Leave A Reply Cancel Reply

    TOP POSTS

    White House Adviser Patrick Witt Teases ‘Big Announcement’ at Bitcoin 2026

    April 28, 2026

    Shaping the Future of Finance: A New Age of Effortless Borrowing

    April 28, 2026

    Solana Prepares For The Quantum Era: Foundation Details Step-By-Step Transition

    April 28, 2026

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

    April 28, 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

    White House Adviser Patrick Witt Teases ‘Big Announcement’ at Bitcoin 2026

    April 28, 2026

    Shaping the Future of Finance: A New Age of Effortless Borrowing

    April 28, 2026

    Solana Prepares For The Quantum Era: Foundation Details Step-By-Step Transition

    April 28, 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.