1
I am confused about the end marker at the end of signatures (in my case, individual sigs for a Tx that spends a P2SH) in pybitcointools:
pybitcointools: 304402204dae851c29a117383c5c535086a7fe899c9c5f0d927a4e680498fdd9b244cb15022058fea40a9f8c3988b17556fceacdce063860057fd8c6ad84de40515d287758dd01
Bitcore: 304402204dae851c29a117383c5c535086a7fe899c9c5f0d927a4e680498fdd9b244cb15022058fea40a9f8c3988b17556fceacdce063860057fd8c6ad84de40515d287758dd
These are two same signatures (i.e., same Tx, input, private key). Only, in pybitcointools' implementation, you have a 01 at the end. Why?
Does it perhaps have to do with the hashtype?
Thx
thanks. Does it imply that using openssl to check the signature, we don't need to know about the hash type? – hartmut – 2016-08-21T08:30:39.167
1@hartmut That's right. OpenSSL only checks the DER signature. Byte 2 of the DER is the signature length (i.e. No hashcode) – Wizard Of Ozzie – 2016-08-21T11:18:30.363
@WizardOfOzzie Ok thanks. If you have any link you can recommend for me to read on that please feel free to post them :). – hartmut – 2016-08-21T14:18:19.193