|
May 06, 2020, 04:31:54 AM Last edit: May 06, 2020, 08:07:26 AM by pooya87 |
|
you should first explain what it is you are trying to do and what you have in mind when you say "Z".
if Z is the 256-bit value used in creation of the signature then you can't compute it from r and s, it is computed from the data that was signed. in which case it depends on what was signed, for example in message signing the normalized UTF-8 decode of the message string + a fixed string added to the start of it then hashed twice with SHA256. for a transaction this is a lot more complicated and is not something i can cover in one comment because it includes transaction serialization and working with scripts and changes based on the script type being spent.
|