Bitcoin Forum
July 29, 2024, 12:03:16 AM *
News: Help 1Dq create 15th anniversary forum artwork.
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: How to implement SHA-256 Javascript app to run block header hash to verify nonce  (Read 769 times)
darius2020 (OP)
Member
**
Offline Offline

Activity: 72
Merit: 10


View Profile
December 24, 2013, 01:13:36 PM
 #1

Hi,

Could you help me implement Javascript block hash application ?

I have SHA-256 Javascript app and plan to use it for off-line bitcoin mining.

I am sure someone did it before ( bitcoin mining in Javascript)
so I could learn if my SHA-256 algorithm works properly.

Any idea about Bitcoin mining in Javascript ?
IainKay
Newbie
*
Offline Offline

Activity: 49
Merit: 0


View Profile
December 24, 2013, 01:19:29 PM
 #2

Hi Darius,

Unfortunately I'm not nearly knowledgable enough in JavaScript to advise you there.

I am intrigued though... What is this "off-line bitcoin mining" that you speak of?

How would the blocks be confirmed?
jarhed
Sr. Member
****
Offline Offline

Activity: 672
Merit: 254


View Profile
December 24, 2013, 01:23:37 PM
 #3

Javascript miners already exist and they're very slow.
You'll orphan your blockchain if mining offline.
darius2020 (OP)
Member
**
Offline Offline

Activity: 72
Merit: 10


View Profile
December 27, 2013, 04:36:49 PM
 #4

Javascript miners already exist and they're very slow.
You'll orphan your blockchain if mining offline.

I exactly need slow Javascript Bitcoin miner's script
since I would like to watch if nonce is reset by Bitcoin node while looping.

Need to start in off-line mode ( input data from successfully hashed block of transaction)
to verify JS script and implemented sha256 script work smoothly not generating any bug.

Some declare nonce is reset at radom to generate extraNonce
but failed to access official documentation on nonce and extraNonce generated
if nonce range overflows and block hashing is still unsuccessfull ( hash is still above the preset target)

I would like to watch extraNonce charts generated locally
since with Bitcoin nodes supporting 1Th/s cloud miners,
a node can distribute, generate an already hashed block, since hashing is done real-time,
much faster than Bitcoin node lags.

So, in theory, a 1Th/s Bitcoin node can act as the fastest Bitcoin miner, releasing already hashed blocks
to specific hash addresses.

Let me know your opinion.
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!