Bitcoin Forum
November 15, 2024, 04:28:05 PM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: How to mine Bitcoin, by hand! Keep in mind that i know is nothing practically..  (Read 1441 times)
akipfer (OP)
Sr. Member
****
Offline Offline

Activity: 294
Merit: 250



View Profile WWW
November 05, 2013, 10:55:58 PM
 #1

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 Cheesy )...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 Cheesy

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 Cheesy

BTC 1LDZwmLNULuEKPANry5DTbH5seLKwph8ua         | [WebSite off] coopersite.com.br | Aceitaremos Moedas como pgto | Procurando franqueados!
LTC  LYMQwZbBHK2kdD7SJnxCnn8NcwbiFAmgnV        | [Twitter] https://twitter.com/allankipfer
[M.B.] Rules - [M.B.]-[Mercado Bitcoin] Esta da hora!   | [Facebook] http://www.facebook.com/allan.kipfer.tbo
akipfer (OP)
Sr. Member
****
Offline Offline

Activity: 294
Merit: 250



View Profile WWW
November 05, 2013, 11:22:23 PM
 #2

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 Cheesy )...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 Cheesy

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 Cheesy

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

BTC 1LDZwmLNULuEKPANry5DTbH5seLKwph8ua         | [WebSite off] coopersite.com.br | Aceitaremos Moedas como pgto | Procurando franqueados!
LTC  LYMQwZbBHK2kdD7SJnxCnn8NcwbiFAmgnV        | [Twitter] https://twitter.com/allankipfer
[M.B.] Rules - [M.B.]-[Mercado Bitcoin] Esta da hora!   | [Facebook] http://www.facebook.com/allan.kipfer.tbo
akipfer (OP)
Sr. Member
****
Offline Offline

Activity: 294
Merit: 250



View Profile WWW
November 06, 2013, 04:38:04 PM
 #3

[up]

BTC 1LDZwmLNULuEKPANry5DTbH5seLKwph8ua         | [WebSite off] coopersite.com.br | Aceitaremos Moedas como pgto | Procurando franqueados!
LTC  LYMQwZbBHK2kdD7SJnxCnn8NcwbiFAmgnV        | [Twitter] https://twitter.com/allankipfer
[M.B.] Rules - [M.B.]-[Mercado Bitcoin] Esta da hora!   | [Facebook] http://www.facebook.com/allan.kipfer.tbo
SebastianJu
Legendary
*
Offline Offline

Activity: 2674
Merit: 1083


Legendary Escrow Service - Tip Jar in Profile


View Profile WWW
November 06, 2013, 06:49:03 PM
 #4

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.

Please ALWAYS contact me through bitcointalk pm before sending someone coins.
akipfer (OP)
Sr. Member
****
Offline Offline

Activity: 294
Merit: 250



View Profile WWW
November 06, 2013, 10:06:46 PM
 #5

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...

BTC 1LDZwmLNULuEKPANry5DTbH5seLKwph8ua         | [WebSite off] coopersite.com.br | Aceitaremos Moedas como pgto | Procurando franqueados!
LTC  LYMQwZbBHK2kdD7SJnxCnn8NcwbiFAmgnV        | [Twitter] https://twitter.com/allankipfer
[M.B.] Rules - [M.B.]-[Mercado Bitcoin] Esta da hora!   | [Facebook] http://www.facebook.com/allan.kipfer.tbo
Dabs
Legendary
*
Offline Offline

Activity: 3416
Merit: 1912


The Concierge of Crypto


View Profile
November 07, 2013, 02:22:24 AM
 #6

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.

SebastianJu
Legendary
*
Offline Offline

Activity: 2674
Merit: 1083


Legendary Escrow Service - Tip Jar in Profile


View Profile WWW
November 07, 2013, 09:37:41 PM
 #7

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.

Please ALWAYS contact me through bitcointalk pm before sending someone coins.
Dabs
Legendary
*
Offline Offline

Activity: 3416
Merit: 1912


The Concierge of Crypto


View Profile
November 08, 2013, 08:14:17 AM
 #8

Ok. To try to answer the question: You can NOT mine by hand. You need a shovel.

ineedit
Sr. Member
****
Offline Offline

Activity: 252
Merit: 250


View Profile
November 08, 2013, 09:30:20 AM
 #9

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 Cheesy

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  Smiley

If I have been help then please show your thanks         BTC: 127PRogAVZiV3fEmpJERh9KemK3a3Ffh6G         LTC: LXghFL8mZffpTFkm2nRTesuDrV5DJQP3Js
Useless1d1ot
Member
**
Offline Offline

Activity: 60
Merit: 10


View Profile
November 08, 2013, 02:33:06 PM
 #10

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.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!