summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author志宇 <hello@evanlinjin.me>2022-07-14 18:32:04 +0800
committer志宇 <hello@evanlinjin.me>2022-07-14 18:40:59 +0800
commitac80e11298390f24dbf7160a48edec9142ac0085 (patch)
treef0499fdccd07b0dde526835d0a42afc1f05fc44a
parentb505101a2dfc8e61c79c47520d863f860a505d18 (diff)
downloadbips-ac80e11298390f24dbf7160a48edec9142ac0085.tar.xz
bip-141: `witness` field wording improvement
When describing the `witness` field, reword "witness data" to "witness field" as "witness data" refers also to the `marker` and `flag` fields.
-rw-r--r--bip-0141.mediawiki2
1 files changed, 1 insertions, 1 deletions
diff --git a/bip-0141.mediawiki b/bip-0141.mediawiki
index 8528729..efdd9c9 100644
--- a/bip-0141.mediawiki
+++ b/bip-0141.mediawiki
@@ -56,7 +56,7 @@ The <code>marker</code> MUST be a 1-byte zero value: <code>0x00</code>.
The <code>flag</code> MUST be a 1-byte non-zero value. Currently, <code>0x01</code> MUST be used.
-The <code>witness</code> is a serialization of all witness data of the transaction. Each txin is associated with a witness field. A witness field starts with a <code>var_int</code> to indicate the number of stack items for the txin. It is followed by stack items, with each item starts with a <code>var_int</code> to indicate the length. Witness data is NOT script.
+The <code>witness</code> is a serialization of all witness fields of the transaction. Each txin is associated with a witness field. A witness field starts with a <code>var_int</code> to indicate the number of stack items for the txin. It is followed by stack items, with each item starts with a <code>var_int</code> to indicate the length. Witness data is NOT script.
A non-witness program (defined hereinafter) txin MUST be associated with an empty witness field, represented by a <code>0x00</code>. If all txins are not witness program, a transaction's <code>wtxid</code> is equal to its <code>txid</code>.