Close Menu

    Subscribe to Updates

    Get the latest creative news from FooBar about art, design and business.

    What's Hot

    Aixbt agent upgraded for sharper signals and whale tracking

    August 1, 2025

    Ripple billionaires’ RLUSD captures less than 0.04% of stablecoin market

    August 1, 2025

    How Taproot Upgrade Improves Bitcoin Privacy and Scalability?

    August 1, 2025
    Facebook X (Twitter) Instagram
    Ai Crypto TimesAi Crypto Times
    • Altcoins
      • Bitcoin
      • Coinbase
      • Litecoin
    • Blockchain
    • Crypto
    • Ethereum
    • Lithosphere News Releases
    X (Twitter) Instagram YouTube LinkedIn
    Ai Crypto TimesAi Crypto Times
    Home » Why Not Just Use X? An Instructive Example from Bitcoin

    Why Not Just Use X? An Instructive Example from Bitcoin

    Michael JohnsonBy Michael JohnsonJuly 31, 2025No Comments4 Mins Read
    Facebook Twitter Pinterest LinkedIn Tumblr Reddit Telegram Email
    Share
    Facebook Twitter LinkedIn Pinterest Email


    Bitcoin developer Gregory Maxwell writes the following on Reddit:

    There is a design flaw in the Bitcoin protocol where its possible for a third party to take a valid transaction of yours and mutate it in a way which leaves it valid and functionally identical but with a different transaction ID. This greatly complicates writing correct wallet software, and it can be used abusively to invalidate long chains of unconfirmed transactions that depend on the non-mutant transaction (since transactions refer to each other by txid).

    This issue arises from several sources, one of them being OpenSSL’s willingness to accept and make sense of signatures with invalid encodings. A normal ECDSA signature encodes two large integers, the encoding isn’t constant length— if there are leading zeros you are supposed to drop them.

    It’s easy to write software that assumes the signature will be a constant length and then leave extra leading zeros in them.

    This is a very interesting cautionary tale, and is particularly important because situations like these are part of the reason why we have made certain design decisions in our development philosophy. Specifically, the issue is this: many people continue to bring up the point that we are in many places unnecessarily reinventing the wheel, creating our own serialization format, RLP, instead of using the existing protobuf and we’re building an application-specific scripting language instead of “just using Lua”. This is a very valid concern; not-invented-here syndrome is a commonly-used pejorative, so doing such in-house development does require justification.

    And the cautionary tale I quoted above provides precisely the perfect example of the justification that I will provide. External technologies, whether protobuf, Lua or OpenSSL, are very good, and have years of development behind them, but in many cases they were never designed with the perfect consensus, determinism and cryptographic integrity in mind that cryptocurrencies require. The OpenSSL situation above is the perfect example; aside from cryptocurrencies, there really is no other situations where the fact that you can take a valid signature and turn it into another valid signature with a different hash is a significant problem, and yet here it’s fatal. One of our core principles in Ethereum is simplicity; the protocol should be as simple as possible, and the protocol should not contain any black boxes. Every single feature of every single sub-protocol should be precisely 100% documented on the whitepaper or wiki, and implemented using that as a specification (ie. test-driven development). Doing this for an existing software package is arguably almost as hard as building an entirely new package from scratch; in fact, it may even be harder, since existing software packages often have more complexity than they need to in order to be feature-complete, whereas our alternatives do not – read the protobuf spec and compare it to the RLP spec to understand what I mean.

    Note that the above principle has its limits. For example, we are certainly not foolish enough to start inventing our own hash algorithms, instead using the universally acclaimed and well-vetted SHA3, and for signatures we’re using the same old secp256k1 as Bitcoin, although we’re using RLP to store the v,r,s triple (the v is an extra two bits for public key recovery purposes) instead of the OpenSSL buffer protocol. These kinds of situations are the ones where “just using X” is precisely the right thing to do, because X has a clean and well-understood interface and there are no subtle differences between different implementations. The SHA3 of the empty string is c5d2460186…a470 in C++, in Python, and in Javascript; there’s no debate about it. In between these two extremes, it’s basically a matter of finding the right balance.



    Source link

    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email
    Michael Johnson

    Related Posts

    Bootstrapping A Decentralized Autonomous Corporation: Part I

    August 1, 2025

    Bootstrapping An Autonomous Decentralized Corporation, Part 2: Interacting With the World

    July 31, 2025

    Bootstrapping a Decentralized Autonomous Corporation, Part 3: Identity Corp

    July 31, 2025
    Leave A Reply Cancel Reply

    Don't Miss

    Aixbt agent upgraded for sharper signals and whale tracking

    Crypto August 1, 2025

    The AIXBT agent on the Virtual Protocol platform has launched its major Indigo upgrade to…

    Ripple billionaires’ RLUSD captures less than 0.04% of stablecoin market

    August 1, 2025

    How Taproot Upgrade Improves Bitcoin Privacy and Scalability?

    August 1, 2025

    INJ price targets $12.20 support in bullish setup before a potential 100% breakout rally

    August 1, 2025
    Stay In Touch
    • Facebook
    • Twitter
    • Pinterest
    • Instagram
    • YouTube
    • Vimeo
    Our Picks

    AGII Improves System Coordination for AI-Native Blockchain Environments

    August 1, 2025

    Imagen Network Brings RLUSD Payments Into Decentralized Applications to Improve Creator Accessibility

    July 31, 2025

    AGII Expands Smart Infrastructure Layers to Support Predictive Scaling

    July 30, 2025

    Imagen Network Expands Decentralized Infrastructure by Incorporating XRP for Fast Peer Transactions

    July 30, 2025

    Subscribe to Updates

    Get the latest creative news from SmartMag about art & design.

    Demo
    • Popular
    • Recent
    • Top Reviews

    Cronos Defies Crypto Market Downtick on Friday As Asset Manager Canary Capital Files for CRO ETF

    June 2, 2025

    Colle AI Unifies Multichain Design for Frictionless NFT Experience Creation

    June 3, 2025

    Ethereum retests $2,500 as companies bet big on ETH

    June 4, 2025

    Aixbt agent upgraded for sharper signals and whale tracking

    August 1, 2025

    Ripple billionaires’ RLUSD captures less than 0.04% of stablecoin market

    August 1, 2025

    How Taproot Upgrade Improves Bitcoin Privacy and Scalability?

    August 1, 2025
    Latest Galleries
    [latest_gallery cat="all" number="5" type="slider"]
    Latest Reviews
    Demo
    Top Posts

    AGII Improves System Coordination for AI-Native Blockchain Environments

    August 1, 20250 Views

    Imagen Network Brings RLUSD Payments Into Decentralized Applications to Improve Creator Accessibility

    July 31, 20250 Views

    AGII Expands Smart Infrastructure Layers to Support Predictive Scaling

    July 30, 20250 Views

    Imagen Network Expands Decentralized Infrastructure by Incorporating XRP for Fast Peer Transactions

    July 30, 20250 Views
    Don't Miss

    Aixbt agent upgraded for sharper signals and whale tracking

    Crypto August 1, 2025

    The AIXBT agent on the Virtual Protocol platform has launched its major Indigo upgrade to…

    Ripple billionaires’ RLUSD captures less than 0.04% of stablecoin market

    August 1, 2025

    How Taproot Upgrade Improves Bitcoin Privacy and Scalability?

    August 1, 2025

    INJ price targets $12.20 support in bullish setup before a potential 100% breakout rally

    August 1, 2025
    Stay In Touch
    • Facebook
    • Twitter
    • Pinterest
    • Instagram
    • YouTube
    • Vimeo

    Subscribe to Updates

    Get the latest creative news from SmartMag about art & design.

    Demo
    Top Posts

    ProfitFarmers Review – Is it Legit? July 2025

    July 7, 20251 Views

    Aixbt agent upgraded for sharper signals and whale tracking

    August 1, 20250 Views

    Ripple billionaires’ RLUSD captures less than 0.04% of stablecoin market

    August 1, 20250 Views

    How Taproot Upgrade Improves Bitcoin Privacy and Scalability?

    August 1, 20250 Views
    Don't Miss

    Aixbt agent upgraded for sharper signals and whale tracking

    Crypto August 1, 2025

    The AIXBT agent on the Virtual Protocol platform has launched its major Indigo upgrade to…

    Ripple billionaires’ RLUSD captures less than 0.04% of stablecoin market

    August 1, 2025

    How Taproot Upgrade Improves Bitcoin Privacy and Scalability?

    August 1, 2025

    INJ price targets $12.20 support in bullish setup before a potential 100% breakout rally

    August 1, 2025
    Stay In Touch
    • Facebook
    • Twitter
    • Pinterest
    • Instagram
    • YouTube
    • Vimeo

    Subscribe to Updates

    Get the latest creative news from SmartMag about art & design.

    X (Twitter) Instagram YouTube LinkedIn
    Our Picks

    Aixbt agent upgraded for sharper signals and whale tracking

    August 1, 2025

    Ripple billionaires’ RLUSD captures less than 0.04% of stablecoin market

    August 1, 2025

    How Taproot Upgrade Improves Bitcoin Privacy and Scalability?

    August 1, 2025
    Recent Posts
    • Aixbt agent upgraded for sharper signals and whale tracking
    • Ripple billionaires’ RLUSD captures less than 0.04% of stablecoin market
    • How Taproot Upgrade Improves Bitcoin Privacy and Scalability?
    • INJ price targets $12.20 support in bullish setup before a potential 100% breakout rally
    • Tether is ready to move to El Salvador
    © 2025 - 2026

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