Skip to main content
7 events
when toggle format what by license comment
Jun 15, 2021 at 23:05 vote accept noone392
Jun 15, 2021 at 23:05 comment added noone392 Thank you guys a ton for the help. I am not sure it would be possible to come up to speed without just reverse engineering the core if it wasn't for the experts spending their time.
Jun 15, 2021 at 22:46 comment added Ava Chow @noone392 Yes, if your transaction has two inputs requiring witness signatures, then there will be 2 witness signatures. hashPrevouts will include all of the outpoints, but in order for a sighash to apply to a specific input, the outpoint for that particular input is included explicitly. This example only has 1 witness sighash because there is only 1 witness input which I did not notice earlier.
Jun 15, 2021 at 22:39 comment added Pieter Wuille I think Andrew missed that the first input isn't a segwit output, so it doesn't use BIP143. In this case, for the second input, the output you substitute is the output being spent in the second input.
Jun 15, 2021 at 21:28 comment added noone392 so then you would have to have 2 witness signatures, each with with the hashPrevouts including ALL the inputs? Also that example doesn't appear to have 2 sighashes, that example clearly only has one?is this example incorrect?
Jun 15, 2021 at 21:20 history edited Pieter Wuille CC BY-SA 4.0
deleted 1 character in body
Jun 15, 2021 at 20:51 history answered Ava Chow CC BY-SA 4.0