Bitcoin mining on a calculator? :)
|
05-27-2015, 03:09 PM
Post: #15
|
|||
|
|||
RE: Bitcoin mining on a calculator? :)
(05-27-2015 08:21 AM)Les Bell Wrote:(05-26-2015 06:19 PM)Dave Britten Wrote: Yeah, heavy emphasis on the difference between "theory" and "practice" on this one. Mere details! One need not take first place to finish a marathon. Though it certainly helps with obtaining sponsors. I've (partially) implemented the SHA256 routine on my 48SX by following what he's doing in the "by-hand" video, and it's running 64 rounds in 47.44 s without any really tight optimization. It's not really a complete program, as his video doesn't explain how to obtain the final output, and I didn't bother finding the 64 values of K for each round, so I'm just using the first one over and over, but in terms of pure speed, it's not bad. If there were any practical use to this, I might get all the values of K and figure out some of the other details. If your system has bitwise functions, then you can easily calculate the majority, choose, and parity functions as follows: Maj(a,b,c) = A and B or A and C or B and C Ch(a,b,c) = A and B or not A and C Par(a,b,c) = A xor B xor C No need to waste cycles manually looping and comparing each bit individually. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)