# Functions
BuildBasicFilter builds a basic GCS filter from a block.
DeriveKey is a utility function that derives a key from a chainhash.Hash by truncating the bytes of the hash to the appopriate key size.
GetFilterHash returns the double-SHA256 of the filter.
MakeHeaderForFilter makes a filter chain header for a filter, given the filter and the previous filter chain header.
RandomKey is a utility function that returns a cryptographically random [gcs.KeySize]byte usable as a key for a GCS filter.
WithKey creates a GCSBuilder with specified key.
WithKeyHash creates a GCSBuilder with key derived from the specified chainhash.Hash.
WithKeyHashPM creates a GCSBuilder with key derived from the specified chainhash.Hash and the passed probability.
WithKeyHashPNM creates a GCSBuilder with key derived from the specified chainhash.Hash and the passed probability and estimated filter size.
WithKeyPM creates a GCSBuilder with specified key and the passed probability.
WithKeyPNM creates a GCSBuilder with specified key and the passed probability, modulus and estimated filter size.
WithRandomKey creates a GCSBuilder with a cryptographically random key.
WithRandomKeyPM creates a GCSBuilder with a cryptographically random key and the passed probability.
WithRandomKeyPNM creates a GCSBuilder with a cryptographically random key and the passed probability and estimated filter size.
# Structs
GCSBuilder is a utility class that makes building GCS filters convenient.