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

# Functions

BuildBasicFilter builds a basic GCS filter from a block.
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
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.
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
No description provided by the author
No description provided by the author
GetFilterHash returns the double-SHA256 of the filter.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
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.
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
No description provided by the author
No description provided by the author
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.

# Constants

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

# Structs

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