I am trying to unwrap bitcoin transaction generation process.

A bit confused about signing part.

My understanding is the transaction is sha256'd, then sha256'd one more time, then ECDSA'd.

Based off https://en.wikipedia.org/wiki/Elliptic_Curve_Digital_Signature_Algorithm, ECDSA will first hash the message. Does that mean the transaction is sha256'd 3 times in total?

All the best!


1 Answer 1


No, only two hashes. The hash itself isn't typically described as a part of ECDSA though the input must already be hashed (because e.g. a signature of 0 is trivially forged).

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.