From 35990e2faa69c326807418a6405a25139e92db6f Mon Sep 17 00:00:00 2001 From: Eric Lombrozo Date: Fri, 25 Dec 2015 19:56:11 -0500 Subject: [PATCH] Use abstract witness structure --- bip-codeshark-segwit-peer-services.mediawiki | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/bip-codeshark-segwit-peer-services.mediawiki b/bip-codeshark-segwit-peer-services.mediawiki index 6e0bc6e7..7501d2b8 100644 --- a/bip-codeshark-segwit-peer-services.mediawiki +++ b/bip-codeshark-segwit-peer-services.mediawiki @@ -63,9 +63,9 @@ The serialization has the following structure: | A list of one or more transaction outputs |- | 1+ -| txin_witnesses -| txin_witnesses[] -| A list of one or more transaction input witnesses (note: the count is just txin_count) +| witness +| witness +| The witness structure as a serialized byte array |- | 4 | lock_time @@ -73,9 +73,9 @@ The serialization has the following structure: | The block number or timestamp until which the transaction is locked |} -Parsers supporting this BIP will be able to distinguish between the old serialization format (without the witnesses) and this one. The marker byte is set to zero so that this structure will never parse as a valid transaction in a parser that does not support this BIP. If parsing were to succeeded, such a transaction would contain no inputs and a single output. +Parsers supporting this BIP will be able to distinguish between the old serialization format (without the witness) and this one. The marker byte is set to zero so that this structure will never parse as a valid transaction in a parser that does not support this BIP. If parsing were to succeeded, such a transaction would contain no inputs and a single output. -If all witnesses are empty, the old serialization format should be used. +If the witness is empty, the old serialization format should be used. Witness objects can be extended to contain other kinds of witness data not yet specified. This BIP is agnostic to the witness data structure, defined in BIPxxxx (Consensus Segwit BIP), and treats it as an arbitrary byte array.