← Back to Bitcoin Improvement Proposals
BIPinformationaltransactions

bip-141: improve `witness` field wording

When describing the `witness` field, reword "witness data" to "witness field" as "witness data" refers also to the `marker` and `flag` fields. ### The confusion https://github.com/bitcoin/bips/blob/master/bip-0141.mediawiki#transaction-size-calculations > Base transaction size is the size of the transaction serialised with the witness data stripped. Here, "witness data" refers to having the `marker`, `flag` and `witness` fields stripped. https://github.com/bitcoin/bips/blob/master/bip-0141.

No reviews
evanlinjin·Updated Jul 25, 2022·0 reviews·0 attestations·View source
Collections:BIPs — Merged

Specification

When describing the witness field, reword "witness data" to "witness field" as "witness data" refers also to the marker and flag fields.

The confusion

https://github.com/bitcoin/bips/blob/master/bip-0141.mediawiki#transaction-size-calculations

Base transaction size is the size of the transaction serialised with the witness data stripped.

Here, "witness data" refers to having the marker, flag and witness fields stripped.

https://github.com/bitcoin/bips/blob/master/bip-0141.mediawiki#transaction-id

The witness is a serialization of all witness data of the transaction.

However, here "witness data" refers to just the witness field.

Discussion (0 threads)

Loading discussions...