← Back to Bitcoin Improvement Proposals
BIPinformational

BIP158: add test vectors and generation code

In this PR, 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 PR after the code is merged into the `btcsuite` mainline.

No reviews
aakselrod·Updated Apr 8, 2018·0 reviews·0 attestations·View source
Collections:BIPs — Merged

Specification

In this PR, 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 PR after the code is merged into the btcsuite mainline.

Discussion (0 threads)

Loading discussions...