3

I'm aware that for non-segwit transactions, vsize is always the same as size. But is it possible for a valid transaction to include size=vsize when involving segwit inputs/outputs?

This particular query is motivated by a need to debug an 'invalid signature' error associated with a raw transaction.

1 Answer 1

5

With segwit outputs, yes. Segwit outputs do not have a witness that could get discounted.

With segwit inputs, in theory possibly, but in practice no. Every standard segwit input today has a non-empty witness, and thus will get a discount.

Your Answer

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

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