Questions tagged [nonce]
should be used for questions related to the nonce used in bitcoin block
127 questions
1
vote
0
answers
30
views
Bitcoin to Ethereum atomic swap with PTLCs
According to this, it wouldn't be possible to use PTLCs to swap to Ethereum:
Cross-chain atomic swaps based on adaptor signatures, or at least semi-scriptless adaptor signature schemes designed for ...
2
votes
1
answer
247
views
Is my k nonce being re-used here?
I'm using bitcoin core 28.0 on Debian Bookworm. I enter the following into bash:
./bitcoin-cli signmessage "p2pkh-address-here" "abc123"
... and I get the signature output in the ...
1
vote
1
answer
51
views
What are the size constraints for extranonce2?
I am curious about the size constraints for extranonce2. Is its size effectively unlimited, or are there specific limits or practical considerations imposed on it?
Could someone clarify if there are ...
2
votes
1
answer
102
views
Where exactly is the mining code in Bitcoin Core?
I've been looking for months for the real mining code in the Bitcoin Core source code for the function/s that implement the incrementing of the nonce and hashing blocks for mining and never found ...
0
votes
0
answers
86
views
nonce search algorithm [duplicate]
I have a question about the nonce search algorithm.
Let's say I have a s9 miner and my competitor has a more powerful s19. We both check nonces from 0 sequentially, so I will check nonces that my ...
0
votes
1
answer
74
views
Continuation question about nonce randomness and verification of the randomness by signing parties
Original: Can a signer recover their own signature's nonce `k`?
Note that under normal circumstances it is infeasible to randomly generate the same nonce, so either a non-random nonce has to have ...
1
vote
1
answer
601
views
Can a signer recover their own signature's nonce `k`?
I am proofreading a blog post about nonce reuse. One point that comes up is whether someone could recover another person's private key if the other user reuses the same nonce. In that context, it was ...
1
vote
1
answer
286
views
Question about transaction verification relating to the ECDSA "nonce"
Context about the ECDSA nonce: Questions about generating a random number for ECDSA
Are these nonce values public or private? I understand that they are generated to be different every transaction and ...
1
vote
1
answer
259
views
Anti-exfil protocol can't be verified on multiple hardware wallets
Regarding the nonce side channel attacks detailed in posts like this one by Blockstream. Which references this mailing list by Pieter Wuille. The idea is to add another layer of protection against a ...
1
vote
1
answer
204
views
What is a pair of nonces?
From https://www.sps.ed.ac.uk/sites/default/files/pictures/ekja03/Mining25.pdf page 10:
The bitcoin system is therefore designed to ensure that it takes around ten minutes on average before any miner ...
0
votes
2
answers
82
views
How is crypto Mining actually validating the block?
As far as I understand in crypto-mining you are trying to find the nonce such that the hash starts with some amount of zero's. I do not understand how this nonce is used to actually validate anything.
0
votes
4
answers
1k
views
Finding Hash with 11 leading zeroes
For an exercise, I'm trying to find a sha256 hash with 11 leading zeroes.
For this reason, I wrote a Python script that basically tries all intergers from 1 to N and brute forces the hash. Now my N is ...
2
votes
1
answer
858
views
Can the difference be determined between two nonces k1, k2, having a linear relationship if the nonce and private key are unknown, i.e., k2 - k1 = n?
My question is related to weak signature vulnerability testing where a hypothetical attacker does not know the values of the nonce or private key itself, but can determine that the nonce 'k1' is ...
1
vote
3
answers
325
views
Why is a nonce enough to be 64 bits?
As far as I can understand the resulting hash should start with difficulty number of zeroes before a block can be mined. That is: H(HashOfPreviosBlock + nonce) < target but why is a 64 bit number ...
0
votes
1
answer
105
views
Is the winning hash the same as the nonce?
Is the miner is trying to solve the nonce or a winning hash?
"The SHA-256 hash of a block's header must be lower than or equal to the current target for the block to be accepted by the network.&...
1
vote
1
answer
669
views
If a lot of miners start at nonce 0, how are there no ties?
I understand what happens with ties (in the long term, the longest chain wins), however, if a majority of miners start with a nonce of zero, does it just matter who has the fastest hardware, or is ...
6
votes
1
answer
1k
views
Why is it important that nonces when signing not be related?
I understand that if nonces (usually denoted k in the signature algorithm) are related signing with the same public key that this reveals information about the private key. I would like to get a ...
0
votes
1
answer
90
views
What determines the size of a hash during mining?
I have been struggling with this quite a bit. From what I understand is that a miner generates nonces to find a nonce that is smaller than the target hash. However, how does one determine the size of ...
-2
votes
1
answer
1k
views
How to get bitcoin transaction nonce from transaction signature?
Subj.
Looking for a code for calculate/get bitcoin transaction nonce. Help me please.
???
Thank you.
0
votes
1
answer
1k
views
What is the correct way to calculate timestamp for a Block(125552)?
I am just learning mining process.
Today I learned that we have to find nonce for given block header.
And for block header we need timestamp in UTC
I took the timestamp data from below link of 125552 ...
2
votes
1
answer
1k
views
If two miners come up with two valid nonces, how does consensus take place?
I am trying to understand how the consensus mechanism works. My understanding is that multiple nonces can satisfy the target hash requirement. What I'm trying to understand now is: if two miners come ...
0
votes
1
answer
576
views
How will mining work after 2140?
The nonce header of a block has 32 bits. The vast majority of the time, none of the 2^32 nonces will result in a block hash below the target. So to continue mining, miners usually change the ...
0
votes
1
answer
87
views
When should proof-of-work be done? Does it involve in mining a coin? Can it be done without real transactions to be recorded?
I am trying to understand about what bitcoin is. I conceptualize bitcoin as a proof of work required when a new block (or new coin) is created. I also understand that a proof of work involves finding ...
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. ...
2
votes
2
answers
7k
views
How is the Target Hash determined?
So, I understand how the amount of leading 0's are calculated, but how is the hexadecimal that come after the leading 0's calculated? For example, the previous mined blocks hash was
...
0
votes
1
answer
780
views
hello please let me know whats wrong with this script for find Reuse R value [closed]
hello friends here is the code to find reuse R values of bitcoin transaction but unfortunately it is not scanning more than 51 transaction secondly it can only use one address at a time and i want to ...
0
votes
1
answer
208
views
Random Number In R Value , what is it actually, is it the same as Nonce in the blocks
I wonder about the random number in R value ...
if i am right , the R value is First part of the script signature which is combined of two parts (r,s)
r = Gk (elliptic curve scalar multiplication) Or ...
0
votes
1
answer
98
views
Understanding Transactions, Mining, and the 10 minutes block solved
I'm not entirely sure if the questions I have regard to Bitcoin all relate to each other?
How do miners decide how many transactions they should have in a block in order to mine 1 bitcoin? When miners ...
0
votes
1
answer
112
views
Are Bitcoin transaction fees competitive?
I was listening today to their conversation about the transcation fees in Bitcoin and Michael Sailor's understanding stroke me as inaccurate.
Is there any direct incentive within the Bitcoin protocol ...
0
votes
1
answer
113
views
Do mining pools expose attempted nonces to the public?
Do mining pools expose attempted nonces to the public?
I would think no because it would be counter competitive.
I can let a giant mining farm tell me what nonces not to use.
But let's say the nonces ...
4
votes
4
answers
2k
views
Is it possible for an unsolvable block to exist?
Is there a proof that the hashing will always yield a result? Or proof that there exist unsolvable blocks?
It's my understanding that even if we hit an unsolvable block that eventually the ...
4
votes
1
answer
868
views
In Bitcoin, what happens if there is no viable nonce?
I'm assuming SHA is perfectly uniform.
In bitcoin, there are $2^{32}$ possible inputs per block, which are mapped to $2^{256}$ possible outputs. So there is a $1/2^{224}$ chance that any randomly ...
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, ...
4
votes
2
answers
715
views
Is that proved that for each block there is always nonce value which will make block hash to start by n count of 0
Sorry for the obvious question, but I'm looking for a mathematical prove.
Block header is calculated as a concatenation of the following values.
Version
hashPrevBlock
hashMerkleRoot
timeStamp
Bits
...
1
vote
1
answer
402
views
Why do miners need a nonce if the timestamp changes the hash of the block?
As the title says.
If the timestamp is constantly changing with every guess, why does the miner also include the nonce? Is it because they're mining too fast for the timestamp to change?
2
votes
3
answers
1k
views
Can a miner just introduce a block full of valid predetermined transactions in the blockchain and get rewarded?
My question is - let's say a miner has control over a certain number of bitcoin addresses. He creates a block containing small transactions to and fro from these accounts ahead of time in advance and ...
1
vote
2
answers
1k
views
Who decides for Blockchain PoW puzzle?
In PoW algorithm a miner has to solve a mathematical puzzle whose difficulty depends upon load on network and total computing power. But who decides what would be that puzzle for each block?
For ...
0
votes
1
answer
988
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
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 ...
1
vote
2
answers
4k
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, ...
2
votes
2
answers
924
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
1
answer
115
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
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 ...
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?
1
vote
1
answer
60
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
1
answer
2k
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 ...
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?
3
votes
4
answers
1k
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
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 ...
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 ...