I just want to confirm my understanding of signatures for P2PKH transactions.

The signature hash, z, is generated before generating the r and s values of a DER signature, correct?

1 Answer 1


If by z you mean the hash of the message, then yes, z is required to compute s. Therefore, strictly speaking, you need to compute it before s, but not necessarily before r.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.