Bitcoin Forum

Bitcoin => Mining support => Topic started by: akipfer on November 05, 2013, 10:55:58 PM



Title: How to mine Bitcoin, by hand! Keep in mind that i know is nothing practically..
Post by: akipfer on November 05, 2013, 10:55:58 PM
How to mine Bitcoin, by hand! Keep in mind that i know is nothing practically, i wanna know how so i can make my own simple app to mine...
i'll start with PHP, simple PHP miner, i see that if i write down on console 'getwork' i got this

--------------------------------------------------------------------------------------------------------------------------
getwork

{
"midstate" : "f7d06d8bd7e590a5c4eba518d065c44aaf0748669cbbfe1c5d23cff355ae72dd",
"data" : "0000000191b7545aae5c31a35972d1f866a53ca84113c982fdeaee238f9d6f6ce83ea4a80ee2b16 3c5e082bfbf8c3594e068346fb9491d80ad7c175b773b862c85cf11a3527976511d0106ce000000 0000000080000000000000000000000000000000000000000000000000000000000000000000000 0000000000080020000",
"hash1" : "0000000000000000000000000000000000000000000000000000000000000000000000800000000 0000000000000000000000000000000000000000000010000",
"target" : "0000000000000000000000000000000000000000000000000000ce0601000000",
"algorithm" : "scrypt:1024,1,1"
}

--------------------------------------------------------------------------------------------------------------------------
so what math can i do by hand to do that, i know that by the time i finish it by own hand, some one already have done that(1zillion times faster with any card...or CPU :D )...keep in mind that i wanan learn, that only why i'm asking....
i don't know THATTTTT much of programming, i know some basics and little advanced stuff on PHP, so i'll start from there, even that PHP can't do so much work...is nothing compared to openCL or CUDA....
i'll try that later...on other stuffs....

Please, don't come here and say "ThAT's crazy talk", "u're insane dude", "or holly shit", or anything like that...

I wanna do my own miner :D

PLus, any help is a help, so Thax in advance for it!
i may start with CPU, since is more hard to crash the system...i hate when i have to rebook my PC :D


Title: Re: How to mine Bitcoin, by hand! Keep in mind that i know is nothing practically..
Post by: akipfer on November 05, 2013, 11:22:23 PM
How to mine Bitcoin, by hand! Keep in mind that i know is nothing practically, i wanna know how so i can make my own simple app to mine...
i'll start with PHP, simple PHP miner, i see that if i write down on console 'getwork' i got this

--------------------------------------------------------------------------------------------------------------------------
getwork

{
"midstate" : "f7d06d8bd7e590a5c4eba518d065c44aaf0748669cbbfe1c5d23cff355ae72dd",
"data" : "0000000191b7545aae5c31a35972d1f866a53ca84113c982fdeaee238f9d6f6ce83ea4a80ee2b16 3c5e082bfbf8c3594e068346fb9491d80ad7c175b773b862c85cf11a3527976511d0106ce000000 0000000080000000000000000000000000000000000000000000000000000000000000000000000 0000000000080020000",
"hash1" : "0000000000000000000000000000000000000000000000000000000000000000000000800000000 0000000000000000000000000000000000000000000010000",
"target" : "0000000000000000000000000000000000000000000000000000ce0601000000",
"algorithm" : "scrypt:1024,1,1"
}

--------------------------------------------------------------------------------------------------------------------------
so what math can i do by hand to do that, i know that by the time i finish it by own hand, some one already have done that(1zillion times faster with any card...or CPU :D )...keep in mind that i wanan learn, that only why i'm asking....
i don't know THATTTTT much of programming, i know some basics and little advanced stuff on PHP, so i'll start from there, even that PHP can't do so much work...is nothing compared to openCL or CUDA....
i'll try that later...on other stuffs....

Please, don't come here and say "ThAT's crazy talk", "u're insane dude", "or holly shit", or anything like that...

I wanna do my own miner :D

PLus, any help is a help, so Thax in advance for it!
i may start with CPU, since is more hard to crash the system...i hate when i have to rebook my PC :D

Anyone? Any help, link, video or info it's a big help already...i'm Googling btw


Title: Re: How to mine Bitcoin, by hand! Keep in mind that i know is nothing practically..
Post by: akipfer on November 06, 2013, 04:38:04 PM
[up]


Title: Re: How to mine Bitcoin, by hand! Keep in mind that i know is nothing practically..
Post by: SebastianJu on November 06, 2013, 06:49:03 PM
You dont await to calculate something like that by hand dont you?

The best bet you have is to check out all the code examples in the wild and find out the workflow from that.


Title: Re: How to mine Bitcoin, by hand! Keep in mind that i know is nothing practically..
Post by: akipfer on November 06, 2013, 10:06:46 PM
You dont await to calculate something like that by hand dont you?

The best bet you have is to check out all the code examples in the wild and find out the workflow from that.

if i can do it by hand, i can apply that to any app...
even if by hand is hard and take like 10 minutes or even more...


Title: Re: How to mine Bitcoin, by hand! Keep in mind that i know is nothing practically..
Post by: Dabs on November 07, 2013, 02:22:24 AM
The built in CPU miner in the bitcoin-qt client works, although I don't think it is updated. There is also source code for all the other miner software out there.


Title: Re: How to mine Bitcoin, by hand! Keep in mind that i know is nothing practically..
Post by: SebastianJu on November 07, 2013, 09:37:41 PM
You dont await to calculate something like that by hand dont you?

The best bet you have is to check out all the code examples in the wild and find out the workflow from that.

if i can do it by hand, i can apply that to any app...
even if by hand is hard and take like 10 minutes or even more...

I think i know what you mean but i once tried to build up a hashing algo in a small language. I believe Purebasic. But i gave up at the end since i didnt understood it fully even with sourcecodes and all. And i dont think im a bad coder.
Again... the best bet for you is checking out the examples. There should be a language you understand.


Title: Re: How to mine Bitcoin, by hand! Keep in mind that i know is nothing practically..
Post by: Dabs on November 08, 2013, 08:14:17 AM
Ok. To try to answer the question: You can NOT mine by hand. You need a shovel.


Title: Re: How to mine Bitcoin, by hand! Keep in mind that i know is nothing practically..
Post by: ineedit on November 08, 2013, 09:30:20 AM
How to mine Bitcoin, by hand! Keep in mind that i know is nothing practically, i wanna know how so i can make my own simple app to mine...
....
PLus, any help is a help, so Thax in advance for it!
i may start with CPU, since is more hard to crash the system...i hate when i have to rebook my PC :D

If you really want to do it then it will take you about a month with a simple calculator and quick fingers. Oh, and as you have chosen scrypt as your algorithm I take it you know you are mining LTC rather than BTC you will also need a couple of reams of paper to handle the Salsa 20,80 and the intermediary storage of 1024 strings of 128 bytes before you can begin the second set of SHA256 rounds.

The easiest way is to look at a copy of scrypt.c from the cgminer source and follow the scrypt_regenhash function logic using the pure data from your example into the work->data parameter but skipping the initial big endian conversion be32enc_vect.

It works out to be 
     16 SHA256 calculations for the SHA rounds before the Salsa, allow a day for each.
     1024 x 4 Salsa 20,80 run against the 128 byte strings storing the intermediary output of each, allow a couple of weeks
     11 SHA256 calculations for the SHA rounds before the Salsa, allow a day for each.
All you have to do then is compare the result against the target to see if it meets the difficulty

Have fun  :)


Title: Re: How to mine Bitcoin, by hand! Keep in mind that i know is nothing practically..
Post by: Useless1d1ot on November 08, 2013, 02:33:06 PM
Ok. To try to answer the question: You can NOT mine by hand. You need a shovel.

I experienced this last time I tried to mine by hand.

Word for thought:
If you read the source code, you should see the algorithms and patterns. You have what you perceive as abstract but in reality the exact blueprints for the process. I'd love to have the easy answer too, but what has stopped me from learning too much about the under the hood components to BTC is that I haven't desired to take the time to decipher "what is really happening".

Honestly, you have the best answer before you, just not the easy one.