package
1.9.25
Repository: https://github.com/p9c/pod.git
Documentation: pkg.go.dev

# 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 GCS with specified key.
WithKeyHash creates a GCS with key derived from the specified chainhash.Hash.
WithKeyHashPM creates a GCS with key derived from the specified chainhash.Hash and the passed probability.
WithKeyHashPNM creates a GCS with key derived from the specified chainhash.Hash and the passed probability and estimated filter size.
WithKeyPM creates a GCS with specified key and the passed probability.
WithKeyPNM creates a GCS with specified key and the passed probability, modulus and estimated filter size.
WithRandomKey creates a GCS with a cryptographically random key.
WithRandomKeyPM creates a GCS with a cryptographically random key and the passed probability.
WithRandomKeyPNM creates a GCS with a cryptographically random key and the passed probability and estimated filter size.

# Constants

DefaultM is the default value used for the hash range.
DefaultP is the default collision probability (2^-19).

# Variables

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

GCS is a utility class that makes building GCS filters convenient.