Questions tagged [nonce]
should be used for questions related to the nonce used in bitcoin block
127 questions
3
votes
2
answers
3k
views
How do nonce and difficulty relate?
Good morning,
I'm reading about Blockchain technology but I have a couple of questions about the nonce that I cannot find the answers for. I'm hoping someone here will be able to answer them.
i) ...
0
votes
0
answers
596
views
Process for finding nonce
Assume we have a transaction in hex (tx_hex) and we want to find a nonce such that
SHA-256(SHA-256(nonce|| tx_hex)) = new_transaction_id ('||' denotes concatenation)
first bits consist of 32 zeros. ...
6
votes
3
answers
2k
views
Does every nonce really have an equal chance of winning?
I set out to test the claim: "Every nonce has an equal chance of winning."
Time Evolution
So, I plotted, with gnuplot, the nonce values vs. hashes for all the valid blocks in the blockchain:(Also, ...
1
vote
1
answer
121
views
Discrepancy Between Nonce for Single Block
I'm looking at nonce data from blockchain.info for block #1 ( https://blockchain.info/block/00000000839a8e6886ab5951d76f411475428afc90947ee320161bbf18eb6048 ) and it shows a nonce value of 2573394689 ...
2
votes
2
answers
925
views
Why is the nonce bruteforced from 0 to n while mining?
bitcoin noob here.
I was wondering why is the nonce increased from 0 to n while searching for a blockhash?
Why not start at some other integer > 0 for example?
My background is in ethereum-dev, so ...
2
votes
1
answer
601
views
What is the largest golden nonce found?
With all the stats and metrics out there I was surprised I could not find this out. Has anyone ever determined the highest nonce in a block?
1
vote
1
answer
3k
views
Why is it important that the hash algorithm is puzzle friendly?
I don't understand "PUZZLE FRIENDLY". Here the definition I read:
A hash function h is puzzle friendly if for every possible N-bit
output value y, if K is chosen from a distribution with high ...
3
votes
1
answer
2k
views
Why check for multiple nonces despite finding a golden nonce?
I'm still new at trying to understand the entire idea surrounding the mining process.
I read the following:
When mining, you are given a set of data to perform hashes on. As you
noted, this is done ...
0
votes
0
answers
101
views
How do I compute a private key, if I have two messages signed using the same nonce? [duplicate]
If I sign two messages with the same private key and nonce, it compromises security, making it possible to calculate the private key.
I'm implementing a system (outside of bitcoin) where a message, ...
1
vote
1
answer
322
views
How nonce and diffuculty work?
I struggle to understand one concept behind mining. It would be really great if someone could clarify some things.
This is an extract from blockgeeks:
From a technical point of view, mining process ...
0
votes
1
answer
996
views
What is the Coin Base Text of a bitcoin block?
On the site https://coin.dance/blocks#blockDetails, there is a column Coin Base Text with values like Mined by AntPoolk9 Z4,b or *3Zc/BTC.COM/mm.jn~OoBրn*e*@ for example. What does it mean? Is it ...
0
votes
2
answers
490
views
Understanding the Hash Function
Can someone please explain in detail the components of the final hash that determines the winner of the block?
My understanding is that the miners are taking
The Merkle Root,
The time stamp,
The ...
4
votes
1
answer
946
views
What if is there is no solution to a block?
Please let me know if I understand something wrong.
Let's say I want to create a new block and verify previous transactions. To do this, I need to:
Choose which transactions I want to include in my ...
0
votes
1
answer
223
views
Get input address using VIN txid?
I have written following script to get Vin address from Vin txids.
#!/usr/bin/python
# -*- coding: utf-8 -*-
import requests,json
url="http://asd:asdf@localhost:2332"
payload={}
payload = {"jsonrpc":...
0
votes
1
answer
1k
views
Where is the extraNonce in this coinbase transaction here?
https://blockchain.info/tx/c1669dabe1bcadf50c4b712e42da7b3d3152aef53752731b04a4f585dde6f5f2
The coinbase states this:
...
2
votes
1
answer
413
views
nTime rolling is just an optimization for large/fast pools, correct?
Need to confirm my understanding of nTime rolling...
It's used to give the miner more options to mine without needing to request more work from the pool, by incrementing the timestamp. However, given ...
0
votes
1
answer
1k
views
Steal proof-of-work answer from a miner [duplicate]
Is it possible to steal proof-of-work answer from a miner who has insecure machine? Consider a miner who has insecure machine found correct answer of proof-of-work and an adversary steals this it and ...
2
votes
1
answer
304
views
Who decides what the next, correct Nonce is?
As I understand finding the correct Nonce is the basis when hashing transactions for Proof of Work.
How and where is this decided in the ecosystem what the next Nonce is?
In my limited understanding ...
1
vote
1
answer
411
views
How is the ExtraNonce calculated in Bitcoin Core
The Extra nonce for the genesis block in bitcoin core is 0x010445, how was this value calculated?
-1
votes
2
answers
551
views
Bitcoin (and other crypto-coins) nonce loop
I recently started to pay attention to what's going on at crypto-markets and, being developer for a long time, decided to take a look at the software we have out there in public access.
So I have a ...
1
vote
1
answer
592
views
Guessing nonce - nonce pools/domains [duplicate]
Blockchain miners calculate the hash of (block data + nonce value). They actually guess (are looking for) nonce in order to get hash staring with a defined number zeroes. (The number of required ...
2
votes
1
answer
948
views
When do miners stop waiting for new transactions?
I know my question might sound familiar to the question as follow:
When does a miner decide to stop collecting transactions and start calculating hashes to try to win?
But actually, the reply marked ...
0
votes
3
answers
409
views
What happens if everyone discovers much faster way of solving hash function problem (mining)?
The question is not about how bitcoin mining works, but rather how bitcoin system adapts to progress in ability to tackle proof-of-work problems.
Suppose that proof-of-work problems used for bitcoin ...
4
votes
2
answers
14k
views
What is the relationship between hash rate and accepted shares?
Specifically this question is about Litecoin, but I suspect the answer would apply to both.
Say you have a rig mining at 700Kh/s (LTC). It seems that you get, more or less, a one or a few accepted ...
1
vote
1
answer
517
views
How does a miner know which nonce to start with ?
Pretty straightforward question :
When a miner is trying to find a 18-leading-zeros hash, does it always start with a nonce at zero ? I suppose it doesn't, because other miners in the world may have ...
18
votes
3
answers
2k
views
Looking for nonces of even numbers
Each one of bitcoin and its derived crypto-currencies has a nonce value in the block, no matter what the algorithm is. Every miner tries to search for a luck nonce which can make the hash value ...
1
vote
1
answer
267
views
How finding a working nonce says anyting about the validity of an initial transaction
I am by no means an expert, nor a cryptographer, but I would be interested in knowning a little bit more than what happens at the end of the following chain of events.
What happens at the end of the ...
1
vote
4
answers
2k
views
What value should nonce be when mining bitcoin ?
When the miner program start, the value of nonce is zero or a random number? Which of them is better?
1
vote
2
answers
196
views
Is the nonce in Bitcoin the answer to the puzzle from the previous block?
If, in Bitcoin, the nonce is included in the header of the proposed block, is it the answer to the puzzle from the previous block?
4
votes
1
answer
334
views
Mining Process - Transactions Selection
I started reading about Bitcoin a few weeks ago. Reading most the information and watching videos on the web, I though I understood about the mining process. However, I was shocked when I realized ...
0
votes
1
answer
329
views
What's an example of an ExtraNonce2 value that would be considered invalid?
I've been learning about mining as part of a pool and using the Stratum protocol to submit completed work back to a pool -- https://en.bitcoin.it/wiki/Stratum_mining_protocol . There is this ...
3
votes
1
answer
1k
views
Why change the nonce instead of just rehashing?
Why do miners increase the nonce to compute a block hash rather than just generating a random block hash? It seems to me that both approaches would have the same likeliness of finding a result that ...
2
votes
1
answer
2k
views
How is the extra nonce formatted?
I'm trying to understand how a block is put together. From here, I know that the extra nonce used to be in the format:
pblock->vtx[0].vin[0].scriptSig = CScript() << pblock->nTime <&...
3
votes
1
answer
1k
views
Given a block, is there a list of all hashes for all possible 2^32 nonce values?
I am working in a computational research lab, and we're taking a look at Bitcoin. I'm trying to develop a simulation of Bitcoin mining for a nonexistent computer architecture.
I want to simulate the ...
0
votes
1
answer
947
views
What prevents a miner from faking nonce hash
What exactly prevents a miner from presenting a random nonce hash of the block with enough zeroes at the start to get chosen?
How is the new hash verified by the other nodes? Since as I understand ...
1
vote
1
answer
224
views
Finding nonce resulting in more zeros than the target
This might be a wrong question(I am new to understanding bitcoin details). But I want to ask this:
What happens if one node finds nonce value that results in way more leading zeros than expected by ...
1
vote
1
answer
867
views
Can two different nonces and different blocks produce the same hash?
Say, I want to erase the record of a transaction by changing a block. Can I go back to that block and find a new block and nonce combination that makes the same hash?
Is it a case that finding such ...
1
vote
2
answers
670
views
Reason behind hashing the nonce in prevBlockHash?
I understand the role that the nonce plays in the block header for calculating a hash for a valid proof of work.
But what I ask is: Do we consider the nonce in the prevBlockHash calculation of the ...
2
votes
1
answer
596
views
How is the mempool incorporated in the calculation of the block hash?
So I've been reading about how the nonce is calculated. There is one part that I don't get. So there is a mempool, and each node (or mining node) takes a part (or the whole part) of that mempool, ...
0
votes
1
answer
106
views
bitcoin's PoW, real time of creating one block
i learn that bitcoin is created every 10 minutes and if block is created faster than 10 minutes, Difficulty will increase.
and study deeper, mining process is finding nonce that start 0 to increase 1 ...
4
votes
1
answer
436
views
Maximum # of hashes for finding a block?
Since nonce is a 32 bit number, the maximum value of nonce can only be 4,294,967,296. So, if a miner doesn't find the target hash within this number, what happens?
0
votes
2
answers
239
views
Where is the nonce incremented in Bitcoin source code?
Where is the nonce incremented in Bitcoin source code?
I found where the extra nonce is incremented, but not the regular nonce?
1
vote
1
answer
496
views
Explain this comment on nNonce from the bitcoin miner.cpp source?
This comment is in the 0.9.3 miner.cpp bitcoin source, right above the ScanHash_CryptoPP definition.
//
// ScanHash scans nonces looking for a hash with at least some zero bits.
// It operates on ...
0
votes
1
answer
124
views
Can "Digital Signature of the Block by the Miner" be used in place of "Nonce"?
As it is understood that arriving nonce is very resource intensive, whether "Digital Signature of the Block by the Miner" can be considered in place of "Nonce"? Its Shortcomings, if not suitable.
3
votes
2
answers
413
views
Are blocks sent only after finding nonce?
One of the concerns with increasing the block size is that it may get orphaned more often due to network latency in sending the big block. Why can't miners send the block without the nonce as soon as ...
2
votes
1
answer
537
views
Has the nonce used in mining been sized?
In the mining process, everytime a block has to be confirmed, a certain hash with an incremental nonce is generated: If the nonce is a 32 bit number it can assume a value between 0 and 2^32 - 1. It ...
3
votes
1
answer
2k
views
What values are hashed in the SHA-256 algorithm, and what would be the next iteration until a possible header is found?
I've been doing a lot of reading on mining and software related to mining but I can't quite get my head wrapped around the specific nature of what is being hashed together. So far I feel like the ...
2
votes
2
answers
1k
views
Does the nonce have to be a number?
Since we're just trying to produce a specific hash output, couldn't the nonce also include letters or otherwise random bits?
1
vote
2
answers
2k
views
Determining a Block's Extranonce Value
How do I determine a block's extranonce value? I know they are in the coinbase transaction, but where? How do I decode the part that is the extranonce?
9
votes
4
answers
397
views
How cooperative or competitive is the mining process?
As each miner works out which nonces it has tried, does it notify the network so that energy isn't wasted on re-processing the same thing by each node? Or is it totally competitive with everyone for ...