Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [nonce]

The tag has no usage guidance.

0
votes
1answer
14 views

Block 566687 nonce with extranonce, how to interpret?

This could apply to any block, but I was checking this one out found by Slushpool. I've looked this up in Mastering Bitcoin and here on StackExchange, but the best I can get so far is: the coinbase ...
0
votes
1answer
27 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 ...
1
vote
2answers
95 views

Nonce usage in ECDSA signing algorithm

I'm trying to understand the signing function secp256k1_ecdsa_sig_sign(), and I'm curious about the nonce usage here. static int secp256k1_ecdsa_sig_sign(const secp256k1_ecmult_gen_context *ctx, ...
1
vote
2answers
56 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 ...
1
vote
1answer
17 views

How to read a block nonce in command line?

I need to know how to read a block header in particular its nonce. How can I read a block nonce? what command line is used?
1
vote
1answer
63 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
2answers
46 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?
1
vote
1answer
37 views

Mining a new block

Hypothetically, if you only have one node mining in the network, how much time does it take to solve for the nonce assuming for example the current difficulty?
0
votes
1answer
200 views

How are nonces decided in mining?

I know that when I create a new block in a Bitcoin network, I change the nonce value to generate a block. The question is, do you randomly assign the values you assign to nonces? Or do you start with ...
0
votes
1answer
101 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
vote
3answers
169 views

Why is the probability of finding a winning nonce exactly the same for a new header and a header where you've already tried 1 billion nonces?

I'm referring to this question: When do miners stop waiting for new transactions? More specifically, this statement from the top answer: "suppose you have a block header h1 on which you have ...
1
vote
1answer
138 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 ...
2
votes
1answer
52 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
1answer
54 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":...
2
votes
1answer
100 views

How Do Peers Choose Which Peer To Trust?

So the way I understand how the blockchain works is that each new block uses the previous block's hash, which means if my block[100].hash != someone_elses_block[100].hash that means that either I ...
0
votes
1answer
252 views

Where is the extraNonce in this coinbase transaction here?

https://blockchain.info/tx/c1669dabe1bcadf50c4b712e42da7b3d3152aef53752731b04a4f585dde6f5f2 The coinbase states this: ...
0
votes
1answer
99 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 ...
1
vote
1answer
131 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
1answer
52 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
2answers
833 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
1answer
567 views

How do I get Bitcoin block header data with nonce?

How do I get Bitcoin block header data with nonce? There are tens of so called blockchain explorer websites, tens more offering on-line Bitcoin blockchain parsing. But all I need are historic ...
0
votes
1answer
73 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.
0
votes
2answers
301 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 ...
1
vote
1answer
187 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 ...
4
votes
4answers
1k views

Why search for a nonce linearly (+1) vs searching only even or odd nonces?

As a solo miner, you have the disadvantage of a minuscule hash rate compared to mining pools. Is it not possible to searching for only even nonces? Of course you risk the chance of missing the nonce, ...
0
votes
1answer
619 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.j΀n~OoBրn*e*@ for example. What does it mean? Is it ...
1
vote
1answer
305 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 ...
1
vote
1answer
176 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 ...
0
votes
3answers
295 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 ...
0
votes
2answers
151 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?
3
votes
1answer
209 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 ...
3
votes
1answer
388 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 ...
1
vote
1answer
257 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 ...
0
votes
1answer
673 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 ...
0
votes
1answer
61 views

Is there a way to estimate the number of unfound nonces?

I've heard anecdotally that the ability to find nonces is much harder than it once was. This implied that there was a fixed number of nonces in the Bitcoin system, and a large number of them have been ...
0
votes
1answer
108 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 ...
2
votes
1answer
1k 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 ...
0
votes
1answer
94 views

How to check two hashes are equal using block data and the nonce?

This is my first question on this community (the 100 points were just given to me by the site). The information given is from a block i found looking from the docs api. What am supposed to do with the ...
1
vote
1answer
107 views

Will skipping nonce enchance mining performance given there's more resourceful miner

As most miner program start with 0 nonce and increment from there, given there are many resourceful miners who will also compete for the same desirable nonce: Everyone is mining at [0 ~ LARGE_RANGE] (...
13
votes
1answer
19k views

What is a nonce?

When I see the block info on blockchain, I see that there is a field named "nonce", I could not find any relevant information on web regarding what a nonce is. Please explain what a nonce is what is ...
4
votes
1answer
5k views

Blockchain SHA256 hash and nonce [duplicate]

I have been reading the SHA256 hash creation with a random nonce. So, my understanding is every miner would pull uncommited transactions and would try to create a Hash of the transactions with a ...
1
vote
1answer
176 views

Does 4 byte Nonce enough to proof of work?

Is it always possible to find an hash value of a block, smaller than the current difficulty, just using 4 byte (Nonce) ? How can we be sure about it ?
1
vote
1answer
479 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 ...
3
votes
1answer
658 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 ...
2
votes
1answer
856 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 <&...
1
vote
0answers
227 views

New transaction, merkle tree change, when to decide what to include in new block

As I understand the merkle tree hash is a (semi)unique hash of the combination of the new transactions and the previous blocks hash. I'm assuming this hash changes when a new transaction is added to ...
0
votes
1answer
724 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 ...
2
votes
1answer
371 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, ...
1
vote
2answers
457 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 ...
4
votes
1answer
194 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?