Title: Finding nonce in historical transactions / blocks Post by: release on February 14, 2021, 03:07:02 AM Hi guys just wandering if their is a script/tool/method for finding nonce value of old transactions and/or blocks? Obviously the nonce has been found for every mined block but just wondering if their is a way to find this information out?
Thanks Title: Re: Finding nonce in historical transactions / blocks Post by: ranochigo on February 14, 2021, 03:18:55 AM LoyceV very nicely compiled all of the nonces used in the blocks here: https://loyce.club/blockdata/nonce.txt.
I'm not sure where to find the extra nonce though, they're located in the Coinbase transaction. Title: Re: Finding nonce in historical transactions / blocks Post by: release on February 14, 2021, 03:47:56 AM Thanks for that. Their is always some ninja here with knowledge needed. This is obviously historical block data? Any idea how to find individual transaction nonce? Thanks
Title: Re: Finding nonce in historical transactions / blocks Post by: NotATether on February 14, 2021, 06:47:54 AM I'm not sure where to find the extra nonce though, they're located in the Coinbase transaction. It turns out that the extraNonce is not included in the block or block header formats. This is a reply from theymos: Quote from: https://bitcoin.stackexchange.com/a/5049 ... extraNonce is used by bitcoind, but it's not part of the protocol. There is no extraNonce field in blocks or transactions. Thanks for that. Their is always some ninja here with knowledge needed. This is obviously historical block data? Any idea how to find individual transaction nonce? Thanks There is no nonce for individual transactions, because it only applies to block generation. Individual transactions have no use knowing the nonce, since that would just waste more bytes making the tx larger. It's a 32-bit counter located in the last 4 bytes of the block header. Title: Re: Finding nonce in historical transactions / blocks Post by: release on February 14, 2021, 06:53:37 AM I'm not sure where to find the extra nonce though, they're located in the Coinbase transaction. It turns out that the extraNonce is not included in the block or block header formats. This is a reply from theymos: Quote from: https://bitcoin.stackexchange.com/a/5049 ... extraNonce is used by bitcoind, but it's not part of the protocol. There is no extraNonce field in blocks or transactions. Thanks for that. Their is always some ninja here with knowledge needed. This is obviously historical block data? Any idea how to find individual transaction nonce? Thanks There is no nonce for individual transactions, because it only applies to block generation. Individual transactions have no use knowing the nonce, since that would just waste more bytes making the tx larger. It's a 32-bit counter located in the last 4 bytes of the block header. The transaction nonce is what is used to create the signature of the transaction or the r,s. It's private as it involves the private key to sign transactions Title: Re: Finding nonce in historical transactions / blocks Post by: LoyceV on February 14, 2021, 08:40:02 AM Is the data you're looking for included in any of those files?
http://blockdata.loyce.club/inputs/blockchair_bitcoin_inputs_20110615.tsv.gz http://blockdata.loyce.club/outputs/blockchair_bitcoin_outputs_20110615.tsv.gz http://blockdata.loyce.club/transactions/blockchair_bitcoin_transactions_20110615.tsv.gz (Reference thread: Bitcoin block data: inputs, outputs and transactions (https://bitcointalk.org/index.php?topic=5307550.0)) If it's in here, I can get you the data. The transaction nonce is what is used to create the signature of the transaction or the r,s. It's private as it involves the private key to sign transactions I'm kinda clueless here, but if it's private, it's not on the blockchain, right?Title: Re: Finding nonce in historical transactions / blocks Post by: release on February 14, 2021, 08:45:46 AM Is the data you're looking for included in any of those files? http://blockdata.loyce.club/inputs/blockchair_bitcoin_inputs_20110615.tsv.gz http://blockdata.loyce.club/outputs/blockchair_bitcoin_outputs_20110615.tsv.gz http://blockdata.loyce.club/transactions/blockchair_bitcoin_transactions_20110615.tsv.gz (Reference thread: Bitcoin block data: inputs, outputs and transactions (https://bitcointalk.org/index.php?topic=5307550.0)) If it's in here, I can get you the data. The transaction nonce is what is used to create the signature of the transaction or the r,s. It's private as it involves the private key to sign transactions I'm kinda clueless here, but if it's private, it's not on the blockchain, right?Brute forced as in mining is only way I am familiar with Title: Re: Finding nonce in historical transactions / blocks Post by: ranochigo on February 14, 2021, 09:00:45 AM It turns out that the extraNonce is not included in the block or block header formats. This is a reply from theymos: Correct. It's in the Coinbase transaction and since it's not a protocol standard, it can be a bit ambiguous, any changes in the transactions will alter the merkle root though I think using an extranonce makes it simpler.I'm kinda clueless here, but if it's private, it's not on the blockchain, right? The r and s values are 32 bytes each and located in the signature. If you want to parse it but I imagine that will take sometime, not sure what this can yield though. They're meant to be completely random under normal circumstances.Title: Re: Finding nonce in historical transactions / blocks Post by: NotATether on February 14, 2021, 12:00:08 PM The transaction nonce is what is used to create the signature of the transaction or the r,s. It's private as it involves the private key to sign transactions I'm kinda clueless here, but if it's private, it's not on the blockchain, right?Ah, I seem to get it now. He's talking about in the ECDSA signature algorithm where a secret number k, the so-called transaction nonce (though this is the first time I heard it being called a nonce to be honest) is chosen that is used to create r and s. Obviously that's not available in the raw transaction as he pointed out, but in another thread here I made a process for getting the nonce k from the private key, the message data - in this case the raw transaction with a few fields unfilled - , r and s: https://bitcointalk.org/index.php?topic=5316741.msg56331333#msg56331333 Title: Re: Finding nonce in historical transactions / blocks Post by: release on February 14, 2021, 01:14:21 PM The transaction nonce is what is used to create the signature of the transaction or the r,s. It's private as it involves the private key to sign transactions I'm kinda clueless here, but if it's private, it's not on the blockchain, right?Ah, I seem to get it now. He's talking about in the ECDSA signature algorithm where a secret number k, the so-called transaction nonce (though this is the first time I heard it being called a nonce to be honest) is chosen that is used to create r and s. Obviously that's not available in the raw transaction as he pointed out, but in another thread here I made a process for getting the nonce k from the private key, the message data - in this case the raw transaction with a few fields unfilled - , r and s: https://bitcointalk.org/index.php?topic=5316741.msg56331333#msg56331333 Yes you got it my friend sorry. I can't find much data on it. Block nonce is usually 10 decimal characters 8 hex 32 bit. Was wandering what format the secret K value is if it is also a 32 bit string Title: Re: Finding nonce in historical transactions / blocks Post by: release on February 14, 2021, 01:24:04 PM The transaction nonce is what is used to create the signature of the transaction or the r,s. It's private as it involves the private key to sign transactions I'm kinda clueless here, but if it's private, it's not on the blockchain, right?Ah, I seem to get it now. He's talking about in the ECDSA signature algorithm where a secret number k, the so-called transaction nonce (though this is the first time I heard it being called a nonce to be honest) is chosen that is used to create r and s. Obviously that's not available in the raw transaction as he pointed out, but in another thread here I made a process for getting the nonce k from the private key, the message data - in this case the raw transaction with a few fields unfilled - , r and s: https://bitcointalk.org/index.php?topic=5316741.msg56331333#msg56331333 Interesting thread thank you. Although I don't see the point in finding K if you have P? Finding K leads you to P. I find this interesting: S1 = (h1+rx1*P)/k => k = (h1+rx1*P)/S1 S2 = (h2+rx2*P)/(k+1) => k+1 = (h2+rx2*P)/S2 ((h1+rx1*P)/S1) + 1 = (h2+rx2*P)/S2 ......... P = (h2*S1 - h1*S2 - S2)/(rx1*S2 - rx2*S1) Title: Re: Finding nonce in historical transactions / blocks Post by: Bglhn on March 19, 2024, 11:43:15 PM Hello friends. Inspired by the table on iceland's rsz, I created code in phyton for the cases where k,k+1...k+m. Since there is no such example whose private key I know, I ask you to check it. If it works, I will publish it on github. As far as I can see, there is no such resource, we can all benefit from it. Can anyone who sees it please check it out and give their opinions?
Code: def h(n): |