Pages:
Author

Topic: SHA256 Compression? (Read 2217 times)

full member
Activity: 139
Merit: 100
March 02, 2015, 01:26:54 PM
#21
I've got a pretty good idea of how the hashing actually woks although I have difficulty wrapping my head around the compression.

From what I've gathered, the data is split into suitable chunks and then hashed. If its less then ideal, it becomes padded although I doubt Bitcoin hashing requires it.

The Avalon data sheets point to a method of sorts for preprocessing where the data is split up outside the chip before being sent to it.

I also remember TheRealSteve telling me that a difference exists between typical SHA256 and the Merkle-Damgard construct...or Merkle Tree, if my vernacular is correct.
hero member
Activity: 686
Merit: 500
FUN > ROI
March 02, 2015, 12:36:41 PM
#20
Tip me a coffee, I think that's fair recompense Wink
( wait, does that tip bot thing even monitor BCT yet? Dangit. )
Maybe when I actually have BTC to start with.
Hah - was firmly tongue-in-cheek, though now I almost wish I could tip you Wink

No, that tip bot thingie is pure spam and only a centralized service - there would be next to no difference if Changetip was used together with PayPal instead of Bitcoin.
See above - don't want to derail the thread with a discussion on tipping systems Smiley
full member
Activity: 139
Merit: 100
March 02, 2015, 11:38:27 AM
#19
The instructions were easy. I had difficulty finding the right PDF. Thank you and sorry for the extra work you had to put in to link it.  Wink
Tip me a coffee, I think that's fair recompense Wink
( wait, does that tip bot thing even monitor BCT yet? Dangit. )

Maybe when I actually have BTC to start with.
legendary
Activity: 2618
Merit: 1007
March 02, 2015, 10:16:35 AM
#18
No, that tip bot thingie is pure spam and only a centralized service - there would be next to no difference if Changetip was used together with PayPal instead of Bitcoin.
hero member
Activity: 686
Merit: 500
FUN > ROI
March 02, 2015, 10:11:55 AM
#17
The instructions were easy. I had difficulty finding the right PDF. Thank you and sorry for the extra work you had to put in to link it.  Wink
Tip me a coffee, I think that's fair recompense Wink
( wait, does that tip bot thing even monitor BCT yet? Dangit. )
full member
Activity: 139
Merit: 100
March 02, 2015, 10:05:34 AM
#16
The instructions were easy. I had difficulty finding the right PDF. Thank you and sorry for the extra work you had to put in to link it.  Wink
hero member
Activity: 686
Merit: 500
FUN > ROI
March 02, 2015, 10:01:55 AM
#15
That looks like real useful piece of information. Is it possible to get that e-mailed please?

Instructions are hard, I guess:
Google → filetype:pdf "design of a high speed ASIC unit"
( you'll want to "View more results" on the last page - unless you get a different result order )
http://www.date-conference.com/proceedings/PAPERS/2004/DATE04/DF_FILES/04D_5.PDF
full member
Activity: 139
Merit: 100
March 02, 2015, 09:54:21 AM
#14
That looks like real useful piece of information. Is it possible to get that e-mailed please?
legendary
Activity: 1628
Merit: 1012
March 01, 2015, 10:43:59 PM
#13
Let me know if this is the one. If it is, I'll email you a copy and take this one down.

hero member
Activity: 686
Merit: 500
FUN > ROI
March 01, 2015, 10:38:34 PM
#12
Google → filetype:pdf "design of a high speed ASIC unit"
( you'll want to "View more results" on the last page - unless you get a different result order )

Or just pay the $31.. if you're designing an ASIC, that should be one of the rather small line items in your expenses Smiley
legendary
Activity: 2618
Merit: 1007
March 01, 2015, 10:09:23 PM
#11
Maybe at university libraries?
sr. member
Activity: 252
Merit: 250
March 01, 2015, 08:11:40 PM
#10
You could start reading Dadda's paper.
"The design of a high speed ASIC unit for the hash function SHA-256 (384, 512)"
 

Great info! Thanks for sharing.

EDIT: Hmm. Probably no place to get this without paywall, right?
hero member
Activity: 555
Merit: 654
March 01, 2015, 05:03:48 PM
#9
You could start reading Dadda's paper.
"The design of a high speed ASIC unit for the hash function SHA-256 (384, 512)"
 
full member
Activity: 139
Merit: 100
March 01, 2015, 10:29:13 AM
#8
Are you trying to design a generic SHA256 ASIC, or a Bitcoin mining ASIC?  There's a fair bit of difference there.

If the latter, I'd suggest looking at some of the public documents for the older FPGA miners, Avalon's chips, the data mining software sends to simple chips (i.e. not miners with their own controller board). etc.
For a quick "ahhh", see: http://crypto.stackexchange.com/questions/1862/how-can-i-calculate-the-sha-256-midstate

Bitcoin mining ASIC. Thanks for the link. I'll look it over  Smiley
sr. member
Activity: 467
Merit: 267
February 28, 2015, 10:22:56 PM
#7
1. In the general case, you add padding.
2. In the bitcoin case, the header has a fixed size. In fact, the nonce is in the 2nd block so you can reuse the state after you have done the first block.
hero member
Activity: 686
Merit: 500
FUN > ROI
February 28, 2015, 10:22:03 PM
#6
Are you trying to design a generic SHA256 ASIC, or a Bitcoin mining ASIC?  There's a fair bit of difference there.

If the latter, I'd suggest looking at some of the public documents for the older FPGA miners, Avalon's chips, the data mining software sends to simple chips (i.e. not miners with their own controller board). etc.
For a quick "ahhh", see: http://crypto.stackexchange.com/questions/1862/how-can-i-calculate-the-sha-256-midstate
hero member
Activity: 672
Merit: 504
a.k.a. gurnec on GitHub
February 28, 2015, 09:59:12 PM
#5
I don't know the first thing about ASIC programming.... but if you're writing software that requires a large iteration count (PBKDF2, etc.) I'd probably take the "easy" way out and just do the first iteration in software, and do the rest with a single hash block and a hard-coded data length in the ASIC (what I lazily do with GPU/OpenCL-based stuff).
legendary
Activity: 1628
Merit: 1012
February 28, 2015, 09:37:04 PM
#4
Thanks. Is it possible to get this moved?

Yep, you can even do it yourself. Look at the bottom left.
full member
Activity: 139
Merit: 100
February 28, 2015, 09:24:18 PM
#3
Thanks. Is it possible to get this moved?
legendary
Activity: 1628
Merit: 1012
February 28, 2015, 09:22:31 PM
#2
You might have more luck in the technical forum.

https://bitcointalk.org/index.php?board=6.0
Pages:
Jump to: