Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: krashfire on October 05, 2022, 11:11:55 AM



Title: Z Value in Bitcoin Transaction
Post by: krashfire on October 05, 2022, 11:11:55 AM
How do I get the Z value/Hash from my bitcoin transactions?

Is there a python script or formula that output the Z value?
What's the input needed to correctly calculate our Z Hash Value?

Please give explanation with any random transactions as example on blockchain.com


Thank you dearest Experts.


Title: Re: Z Value in Bitcoin Transaction
Post by: krashfire on October 05, 2022, 11:56:59 AM
For reference, OP asked similar question and some member (including me) already mention these tools/script,
https://github.com/iceland2k14/rsz (https://github.com/iceland2k14/rsz)
https://github.com/demining/CryptoDeepTools (https://github.com/demining/CryptoDeepTools)
https://github.com/Ledger-Donjon/whitebox_ECDSA_attack_tool (https://github.com/Ledger-Donjon/whitebox_ECDSA_attack_tool)
https://github.com/daedalus/BreakingECDSAwithLLL (https://github.com/daedalus/BreakingECDSAwithLLL)

So i'd recommend you to mention different tool to get Z value from each input of Bitcoin transaction.

https://github.com/iceland2k14/rsz (https://github.com/iceland2k14/rsz) this dont work on the ones with witness script. i tried. i know.

https://github.com/Ledger-Donjon

This dont work on SECP256K1. its work is based off SECP256R1. i tried this too.

BreakingECDSAwithLLL gives random examples but if you want specifics from your own Data to be input. it doesnt work. had this too. look..i have been around for weeks working with all this tools. ok? and i am really tired. so unless you have the mathematical formula.. i would really be happy if you could point me to the PROPER direction and DO NOT recommend anyone that RSZ tool. its not updated and unusable with P2SH addresses and please TRY TO UNDERSTAND THE QUESTION. I want to calculate it myself on Sage so thats why i want the formula and if there is an updated script then the ones that CAN CALCULATE with Witness input. (https://github.com/Ledger-Donjon/whitebox_ECDSA_attack_tool)


Title: Re: Z Value in Bitcoin Transaction
Post by: stanner.austin on October 05, 2022, 12:27:18 PM
@krashfire
Hello
Check this if its help.
https://bitcointalk.org/index.php?topic=5367490.msg58779388#msg58779388