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.

Murch
  • 71,155
  • 33
  • 180
  • 600
satirn
  • 308
  • 1
  • 10

1 Answers1

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.

Pieter Wuille
  • 98,249
  • 9
  • 183
  • 287