diff options
author | Alex <alex@akselrod.org> | 2018-04-03 12:07:37 -0600 |
---|---|---|
committer | Alex <alex@akselrod.org> | 2018-04-03 12:09:26 -0600 |
commit | 3571e1a52d63b5207731bd210c4447b5516d6063 (patch) | |
tree | e916c7e9ec4995f975f357e5180184679580c5a9 /bip-0158.mediawiki | |
parent | d1874d5cd201a8623fe220a875c0316eefd19478 (diff) |
BIP158: add test vectors and generation code
In this commit, we add test vectors for filter and header construction and
the code to generate them. The included test vectors are for testnet with a
value of 20 for P. The code generates filters and headers for values of 1
through 32 for P using testnet blocks. Currently, to run the code,
the `Roasbeef` fork of `btcd` (at https://github.com/roasbeef/btcd) is
required to be running locally in testnet mode; this will be changed in a
future commit after the code is merged into the `btcsuite` mainline.
Diffstat (limited to 'bip-0158.mediawiki')
-rw-r--r-- | bip-0158.mediawiki | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bip-0158.mediawiki b/bip-0158.mediawiki index e7075be..15caa68 100644 --- a/bip-0158.mediawiki +++ b/bip-0158.mediawiki @@ -420,7 +420,7 @@ gcs_match_any(key: [16]byte, compressed_set: []byte, targets: [][]byte, P: uint, == Appendix C: Test Vectors == -TODO: To be generated. +Test vectors for a P value of 20 on five testnet blocks, including the filters and filter headers, can be found [[bip-0158/testnet-20.csv|here]]. The code to generate these vectors for P values of 1 through 32 can be found [[bip-0158/gentestvectors.go|here]]. == References == |