Commit Graph
7 Commits
Author SHA1 Message Date
Olaoluwa Osuntokun ac76644533 BIP-0158: regenerate test vectors for fp=19, new reg filter, no ext filter
In this commit, we simplify the code that generates the test vectors to
only generate filters for a target fp of 19, and also only for the
regular filter, as it's the only filter type currently defined.

The test vectors have also been updated to include the previous output
scripts for all input within a block as these are now required to
construct the regular filter.

Finally, the generation code has been updated to properly fetch the
previous input scripts to the generation code can verify the filter it
generates manually against the end server.
2018-07-04 23:19:16 -05:00
Olaoluwa Osuntokun 6a4e819829 BIP-0158: switch to prev output scripts, skip all OP_RETURN 2018-07-04 23:19:15 -05:00
Olaoluwa Osuntokun 1c2ed6dce3 BIP-0158: allow filters to define values for P and M, reparameterize default filter 2018-07-04 15:41:05 -05:00
Olaoluwa Osuntokun 4a85759f02 BIP-0158: remove the extended filter type 2018-07-04 15:41:05 -05:00
Olaoluwa Osuntokun 285606ef7a BIP-0158: remove txid from extended filter 2018-05-30 17:15:59 -07:00
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
Olaoluwa Osuntokun 04bc8408cf BIP 68 Nit: fix spelling Contrats -> Contracts 2016-02-05 20:30:12 -08:00