decred / tinydecred

Python tools for Decred
ISC License
27 stars 14 forks source link

crypto: GCS filters #149

Closed buck54321 closed 4 years ago

buck54321 commented 4 years ago

Adds basic GCS filter. Filters can be decoded from bytes, but not created from scratch (not sure we'll even need it). I think will need a newFilter method to resolve conflicts among peers. Will follow up.

The bits parameter and false positive rate are not variables. They are package constants set to B=19 and M=784931, which are the values used by Decred.