Bitcoin Forum

Other => Beginners & Help => Topic started by: darius2020 on December 24, 2013, 01:13:36 PM



Title: How to implement SHA-256 Javascript app to run block header hash to verify nonce
Post by: darius2020 on December 24, 2013, 01:13:36 PM
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 ?


Title: Re: How to implement SHA-256 Javascript app to run block header hash to verify nonce
Post by: IainKay on December 24, 2013, 01:19:29 PM
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?


Title: Re: How to implement SHA-256 Javascript app to run block header hash to verify nonce
Post by: jarhed on December 24, 2013, 01:23:37 PM
Javascript miners already exist and they're very slow.
You'll orphan your blockchain if mining offline.


Title: Re: How to implement SHA-256 Javascript app to run block header hash to verify nonce
Post by: darius2020 on December 27, 2013, 04:36:49 PM
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.