summaryrefslogtreecommitdiff
path: root/bip-0158.mediawiki
diff options
context:
space:
mode:
authorOlaoluwa Osuntokun <laolu32@gmail.com>2018-03-31 17:48:18 -0700
committerOlaoluwa Osuntokun <laolu32@gmail.com>2018-03-31 17:48:18 -0700
commit4077defdbc4018bb457c287d10fac68c7c20f564 (patch)
tree8673b439b1a71b5f51c35dc3389f00673e6a8af5 /bip-0158.mediawiki
parent032a5f6136d68238602c8e5f352012c79b9fc5c5 (diff)
downloadbips-4077defdbc4018bb457c287d10fac68c7c20f564.tar.xz
BIP158: include the direct pkScript rather than its data pushes
In this commit, we modify regular filter construction slightly. Rather than including each pushed data in the script, we instead just include the script directly, which will eventually be hashed. The rationale for doing this is two-fold: * Most scripts today and in the foreseeable future will just be a commitment. * Including only the script itself and not the hash of the script reduces the worst case filter size. Otherwise, an attacker could include a bunch of 2 byte push datas and blow up the filter size for all nodes.
Diffstat (limited to 'bip-0158.mediawiki')
-rw-r--r--bip-0158.mediawiki2
1 files changed, 1 insertions, 1 deletions
diff --git a/bip-0158.mediawiki b/bip-0158.mediawiki
index dc28154..e7075be 100644
--- a/bip-0158.mediawiki
+++ b/bip-0158.mediawiki
@@ -268,7 +268,7 @@ The basic filter is designed to contain everything that a light client needs to
sync a regular Bitcoin wallet. A basic filter MUST contain exactly the following
items for each transaction in a block:
* The outpoint of each input, except for the coinbase transaction
-* Each data push in the scriptPubKey of each output, ''only if'' the scriptPubKey is parseable
+* The scriptPubKey of each output
* The <code>txid</code> of the transaction itself
The extended filter contains extra data that is meant to enable applications