Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: wistoshi on May 27, 2019, 06:39:17 PM



Title: Does every transaction have R, S and Z values?
Post by: wistoshi on May 27, 2019, 06:39:17 PM
I  have a question regarding this which seems to extract R, S and Z values from a raw transaction :

https://2coin.org/getRSZfromRawTX.html

My question is does every implementation of bitcoin generate those values? If I want to create a bitcoin transaction from scratch, would I have to calculate those values?

Thanks.


Title: Re: Does every transaction have R, S and Z values?
Post by: achow101 on May 27, 2019, 08:38:10 PM
Every single transaction signature has those values. Not all transactions have signatures as signatures are not required unless specified to be by the scripts. The vast majority of transactions have signatures, so they all have R, S, and Z values. R and S are provided in the signature, Z is computed from the transaction data itself. The wallet software (or transaction creation software) handles all of this for you as you really don't want to be creating a signature with manual calculations.