Post
Topic
Board Bitcoin Technical Support
Re: Legacy vs Segwit wallets. Whats the difference ?
by
HCP
on 21/11/2017, 22:16:53 UTC
A standard (legacy) transaction has the following size:
count of inputs * 180 + count of output * 34 + 10 = 224 +/- 40 byte

With segwit tx's the size is composed of:
count of inputs * 148 + count of output * 34 + 10 = 192 +/- 40 byte

Generally, your TX will be 32 bytes smaller per input.
You've got yourself a little confused here... You seem to be confusing "legacy" and "segwit" transactions with uncompressed/compressed addresses Huh

In "legacy" transactions... the input size is either ~180 bytes OR it is ~148 bytes depending on if you are using uncompressed or compressed addresses respectively... It is technically possible to use both compressed address and uncompressed address inputs in the same transaction, which gives us the following:

A standard (legacy) transaction using uncompressed address inputs only has the following size:
(count of inputs * 180) + (count of output * 34) + 10 (+/- 2 bytes per input)

A standard (legacy) transaction using compressed address inputs only has the following size:
(count of inputs * 148) + (count of output * 34) + 10 (+/- 2 bytes per input)