An Analysis and Breakdown of SHA Hashing in Bitcoin
By: Jeremy Gabalski
Cryptocurrency - Spring 2015
SHA-2 Analysis
SHA256 Use in Bitcoin (Review)
SHA256 Basics
SHA256 Variations
** SHA256 and SHA512 use different values in the XOR and bit-shift operations
Algorithm Prep: Constant Explanation
�6a09e667 bb67ae85 3c6ef372 a54ff53a 510e527f 9b05688c 1f83d9ab 5be0cd19
Algorithm Prep: Input Manipulation
-SHA256 takes in input strings 512 bits long. The preprocessing stage ensures the string length is a multiple of 512
-Each SHA round draws a value from the ‘word table’�
The Round
A B C D E F G H
Examine bit position for all three. Output the majority of the bit values at each position
Take A and rotate it right by 2, 13, and 22 bits. Sum these new values and take that sum modulo 2
For every place, examine the E bit. If 1, take the corresponding F bit, else, take the corresponding G bit
Rotate the bits of E to the right by 6,11, and 25 bits. Sum these new values.
K(i)
+
W(i)
How Good is SHA256?
Pre-Image Attack | Collision Attack |
|
|
How Good is SHA256- Continued
Technology and Energy Analysis
ASIC Chips - Application Specific Integrated Circuit
CPU→ GPU → FPGA → ASIC→ ???
Technological developments developed solely based on how quickly each version of hardware could calculate a SHA256 hash
What Makes These Chips Better?
The King of the Castle (For Now)
Effects and Consequences of ASIC
Pre- 2013
2013 - 2015
2013 - The Year of the ASIC
You Want Moore? Technical Considerations
ASICS - Fundamental Considerations
**In order to realistically speculate, you need to factor in energy costs, hashing equipment price, hash/s limits, and bitcoin’s macro level of popularity
Future Speculations
-SHA256, is algorithmically strong (For now).
- **Bitcoin will continue to grow in mainstream popularity (as the pool grows so can the difficulty)
- Number of hashes each person is willing to pay for and contribute effects the difficulty, not simply that person’s interest.
**You can always include more chips into a single unit to increase hashing power. The energy cost will remain a linear multiple of each individual chips power draw. Efficiency per chis is more important
How Small Can Asic’s Get?
Collective data mapping hashing power per unit of energy (hashes/Kw) to the release date of the hardware model, is difficult to find.
Most models currently include 28nm process nodes. 22 and 20 nm nodes have been mentioned and experimented with, but have yet to be implemented mainstream
These chips with smaller nodes may bring another round of hashing increase, but manufacturing these smaller transistors is much more expensive and eats into profitability margins. For now, the 28nm nodes will remain the benchmark for realistically profitable bitcoin hardware.
Thank You!
Sources
http://gizmodo.com/mining-bitcoin-with-pencil-and-paper-1640353309
http://web.cs.ucdavis.edu/~rogaway/papers/relates.pdf
http://www.coindesk.com/bitcoin-mining-can-longer-ignore-moores-law/
http://www.topbitcoinmininghardware.com/the-sp300-yukon-review-by-spondoolies-mining-enhanced/
http://www.coindesk.com/data/bitcoin-mining-difficulty-time/
https://www.dom.com/library/domcom/pdfs/virginia-power/rates/residential-rates/schedule-1.pdf
https://bitcointalk.org/index.php?topic=85758.20
https://bitcointalk.org/index.php?topic=283950.0