1
Can someone ELI5 Segregated Witness (AKA BIP 141)? I've been doing research and understand that there are segwit addresses, there are segwit transactions, and there are segwit nodes.
I understand that segwit basically works by removing the witness from the scriptSig and somehow it's weighed 1 weight point while other bytes are weighed at 4 weight points, but how?
How do older bitcoin nodes handle the segregated witness? Do they just not receive that data? I know that older nodes will treat those addresses as spendable by anyone since no witness is present or needed. This makes me believe the witness isn't in the transaction at all. But how? Where is the witness actually stored?
Where do segwit addresses come into all of this?
1Makes sense, but where does the witness end up in this situation? And where does the segwit address come into play? – arshbot – 2018-05-26T19:02:04.020
@arshbot Transactions have a witness part (https://bitcoincore.org/en/segwit_wallet_dev/#transaction-serialization example (enable advanced info): https://blockchain.info/tx/c586389e5e4b3acb9d6c8be1c19ae8ab2795397633176f5a6442a261bbdefc3a) The scriptSig carries the version + witness program, which is not the witness itself, but the hash of the pubkey in the witness part: https://github.com/bitcoin/bips/blob/master/bip-0141.mediawiki#p2wpkh-nested-in-bip16-p2sh
– MCCCS – 2018-05-27T10:43:39.0531I stumbled over the "not a nonstandard" phrasing. You could just say it's a standard transaction for segwit-enabled nodes. ;) – Murch – 2018-09-10T16:23:34.627