Questions tagged [nonce]
should be used for questions related to the nonce used in bitcoin block
127 questions
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 ...
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 ...
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 ...
0
votes
1
answer
2k
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 ...
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
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
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 ...
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 ...
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 ...
16
votes
3
answers
25k
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 ...
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 ...
23
votes
2
answers
28k
views
What is the extraNonce?
This question helps identify the various components of the getwork "data" field, but I'm curious where the extraNonce comes from. My hunch is it's the first four bytes of the second half of the data, ...
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
602
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
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 ...
4
votes
1
answer
3k
views
Why is the block header 80 bytes, not 128 bytes (= two SHA-256 blocks)?
According to the Bitcoin Developer Reference, the block header is 80 bytes total:
BYTES NAME
4 version
32 previous block header hash
32 merkle root hash
4 time
4 nonce
...
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.
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 ...
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.&...
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 ...
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 ...
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 ...
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 ...
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.
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
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 ...
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 ...
2
votes
1
answer
704
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
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 ...
-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 ...
5
votes
4
answers
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
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
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 ...
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 ...
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 ...
8
votes
4
answers
11k
views
What is the precise nonce finding protocol?
There are many descriptions of what mining is, but none of them describe it exactly. From what I gather:
Mining means finding a nonce c such that for some information s the hash value h(s||c) ...
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":...
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 ...
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 ...