PDA

View Full Version : [C] [BFGminer bitcoin] Aiuto nel trovare dove scrivere il mio codice, nel progetto.


Bounty_
08-01-2014, 07:32
BFGminer bitcoin miner è sviluppato quì :
https://github.com/luke-jr/bfgminer

Vorrei scrivemi del mio codice C per cercare il nonce con sha256.

Ho caricato il progetto con "Code::Blocks IDE (http://www.codeblocks.org/)"
ho cercato nei file : sha256, sha2 e, nonce
quì di seguito ci sono i risultati della ricerca
che sono una bella selva di file, può darsi che in mezzo
ci siano anche quelli per architetture che non mi interessano:
FPGA, router_OpenWRT, ecc ...
a mè interessa il codice per CPU_a_64bit_(come tutti i processori moderni) e per GPU
Su quali file devo operare ? :confused: :mc:
Chiedo aiuto almeno a sfrondare le 2 liste, tramite colpo d'occhio sul nome del file,
o anche andando a vedere il file i fili li trovate quì :
https://github.com/luke-jr/bfgminer

------ Questi file hanno "sha2" all'interno ------------

/driver-cpu.h
/sha2.c
/sha2.h
/libblkmaker/base58.c
/libblkmaker/private.h
/x86_32/Makefile.am
/x86_32/Makefile.in
/x86_32/sha256_xmm.asm
/x86_64/Makefile.am
/x86_64/Makefile.in
/x86_64/sha256_xmm_amd64.asm

-----Questi file hanno sia "sha2" che "nonce" all'interno --------

/api.c
/diablo130302.cl

/driver-cpu.c

/findnonce.c
/Makefile.am
/Makefile.in
/miner.c
/miner.h
/scrypt130511.cl
/scrypt.c
/sha256_4way.c

/sha256_cryptopp.c
/sha256_generic.c
/sha256_sse2_amd64.c
/sha256_sse2_i386.c
/sha256_sse4_amd64.c

/util.c
/libblkmaker/blkmaker.c
/libblkmaker/blkmaker.h
/libblkmaker/example.c
/x86_64/sha256_sse4_amd64.asm

--------------------------------------------

Non ho scritto il compilatore perchè sono ben prima: nella fase di capire
il codice altrui

Grazie in anticipo

Ciao

Bounty_
09-01-2014, 03:31
Porto su.

Nessuno ?

Aiuto :mc: :mc: :mc:

grazie

--------------------Aggiunta-------------------------------

Intanto se ho ben capito mi posso risparmiare di guardare

/sha256_altivec_4way.c
http://en.wikipedia.org/wiki/AltiVec

ed anche

/sha256_via.c
http://www.via.com.tw/en/initiatives/padlock/what_and_how.jsp

e pure

/driver-bitforce.c
https://en.bitcoin.it/wiki/Mining_hardware_comparison

/driver-ztex.c
http://www.ztex.de/


in
/miner.c
ho trovato scritto:
Override sha256 kernel to use (diablo, poclbm, phatk or diakgcn)
Boh??? :wtf:

in
scrypt130511.cl
ho trovato scritto:
This file was originally written by Colin Percival as part of the Tarsnap online backup system.
http://en.wikipedia.org/wiki/Tarsnap
Boh??? :wtf:

in
scrypt.c
ho trovato scritto:
This file was originally written by Colin Percival as part of the Tarsnap online backup system.
Compute PBKDF2(passwd, salt, c, dkLen) using HMAC-SHA256 as the PRF, and
Boh??? :wtf:

bancodeipugni
09-01-2014, 11:40
chiedilo direttamente a loro scusa :D

Bounty_
10-01-2014, 03:46
https://bitcointalk.org/index.php?topic=168174.new

Questo è quello che mi ha risposto il fondatore del progetto Luke-Jr
https://bitcointalk.org/index.php?action=profile;u=3318
quando gliel'ho chiesto in messaggio privato.


Re: Question on BFGMiner development
« Sent to: Question_is on: January 08, 2014, 02:50:23 AM »
Reply with quoteQuote ReplyReply Remove this messageDelete
Quote from: Question_is on January 08, 2014, 02:09:05 AM
Hi , excuse me if I speak stright to the founder of BFGMiner project.
Please, if it doesn't bother you too much, I have a question here:
https://bitcointalk.org/index.php?topic=168174.msg4377946
that should be easy for you.
If it is not, I'll wait till a developer could bother to answer me.

Best regards and Happy new Year :)
My feeling was that it should be fairly obvious to anyone capable of modifying it.
There are different files for different CPU/GPU algorithms.
Probably would want to add a new file for your new algorithm.

:mc: :mc: