Advisory: PHP library Bitcoin SCI weak key generation [combined summary]



Individual post summaries: Click here to read the original discussion on the bitcoin-dev mailing list

Published on: 2013-10-27T22:48:04+00:00


Summary:

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.


Updated on: 2023-08-01T06:20:29.799333+00:00