-1

Is there such a value as a negative Z or inverse Z related to the original Z value, which is the double SHA256 of the unsigned tx+01000000. I know there is a negative S value, is there a negative Z as well?

Murch
  • 71,155
  • 33
  • 180
  • 600
Gwer
  • 1
  • Does this answer your question? [How to get the Z value aka Hash of the outputs to be signed](https://bitcoin.stackexchange.com/questions/25387/how-to-get-the-z-value-aka-hash-of-the-outputs-to-be-signed) – Saxtheowl Nov 08 '22 at 21:43

1 Answers1

2

The result of an SHA256 operation is a typically presented as a 32-byte array or slice or similar structure. 32 x 8 = 256. It can be presented in software as an unsigned integer. It would arguably be wrong to interpret it as a signed integer. It is usually displayed in any convenient encoding such as Hex.

Either way there is only one "solution" - there is not an alternative negative solution. It is not like a U-shaped curve such as y=x^2 providing two solutions for x, positive and negative, for any positive value of y. It is just not that sort of thing. Producing a single unambiguous result is a desirable feature of a hashing algorithm.

RedGrittyBrick
  • 24,039
  • 3
  • 23
  • 47