the signature is generated, 70 to 72 bytes (maybe I am off by 1 here), and the sighash byte is just added to the end. It is in the protocol spec, so that is what I did and it works. not familiar with bitcoind code as I wrote iguanacore from scratch
RE: bitcoin spinoff fork - how to make a clean fork without any replay attack and no blockchain visible changes
You are viewing a single comment's thread from:
bitcoin spinoff fork - how to make a clean fork without any replay attack and no blockchain visible changes
Maybe it's this line right here, casting
nHashType
as anunsigned char
(1 byte):https://github.com/bitcoin/bitcoin/blob/d612837814020ae832499d18e6ee5eb919a87907/src/script/sign.cpp#L32
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit