1
0
mirror of https://github.com/bitcoin/bips.git synced 2025-05-19 12:08:05 +00:00

2 Commits

Author SHA1 Message Date
Olaoluwa Osuntokun
4077defdbc
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.
2018-03-31 17:48:18 -07:00
Jim Posen
996c7c8e88 BIP 157 & 158: client-side block filtering. 2018-01-22 13:52:54 -08:00