Advisory: PHP library Bitcoin SCI weak key generation

Oct 27 - Oct 27, 2013

  • In 2013, Gavin Andresen, a prominent developer in the Bitcoin community, raised concerns about weak key generation in the Bitcoin SCI library.

He specifically warned developers who use this library to carefully review how their software handles private key creation. While there is no information about other affected libraries, Gavin was able to identify another library besides Bitcoin SCI that had similar issues.The Bitcoin SCI library, which can be found at http://bitfreak.info/index.php?page=tools&t=bitsci, has been flagged for its weak private key creation. The library previously used either the Mersenne Twister PRNG or the GMP library's PRNG directly to generate private keys. Although the most recent version of the library has resolved some of these concerns by updating the createNewMiniKey() function, other functions related to key generation remain unchanged.It is advised that even developers not using the Bitcoin SCI library should review their own key generation functions if they do not directly interface with bitcoind. This caution is necessary because the affected keys generated by Bitcoin SCI have only 32 bits of entropy, making them vulnerable to GPU-based attacks on keys within the lower ranges. The extent of the issue is unknown, as it is unclear how many keys have been created using the weak functions. These concerns highlight the importance of robust key generation practices in ensuring the security of Bitcoin transactions.

Link to Raw Post

Thread Summary (0 replies)

Oct 27 - Oct 27, 2013

Message History

1 messages

Original Post
Oct 27, 2013/22:48 UTC
Bitcoin Logo

TLDR

Join Our Newsletter

We’ll email you summaries of the latest discussions from high signal bitcoin sources, like bitcoin-dev, lightning-dev, and Delving Bitcoin.

Explore all Products

ChatBTC imageBitcoin searchBitcoin TranscriptsSaving SatoshiDecoding BitcoinWarnet
Built with 🧡 by the Bitcoin Dev Project
View our public visitor count

We'd love to hear your feedback on this project.

Give Feedback