Ecosyste.ms: Packages

An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

Top 2.0% on proxy.golang.org
Top 1.0% dependent packages on proxy.golang.org
Top 2.5% dependent repos on proxy.golang.org
Top 1.7% forks on proxy.golang.org
Top 2.2% docker downloads on proxy.golang.org

proxy.golang.org : github.com/decred/dcrd/gcs/v4

Package gcs provides an API for building and using a Golomb-coded set filter. A Golomb-Coded Set (GCS) is a space-efficient probabilistic data structure that is used to test set membership with a tunable false positive rate while simultaneously preventing false negatives. In other words, items that are in the set will always match, but items that are not in the set will also sometimes match with the chosen false positive rate. This package currently implements two different versions for backwards compatibility. Version 1 is deprecated and therefore should no longer be used. Version 2 is the GCS variation that follows the specification details in DCP0005: https://github.com/decred/dcps/blob/master/dcp-0005/dcp-0005.mediawiki#golomb-coded-sets. Version 2 sets do not permit empty items (data of zero length) to be added and are parameterized by the following: * A parameter `B` that defines the remainder code bit size * A parameter `M` that defines the false positive rate as `1/M` * A key for the SipHash-2-4 function * The items to include in the set The errors returned by this package are of type gcs.Error. This allows the caller to programmatically determine the specific error by examining the ErrorKind field of the type asserted gcs.Error while still providing rich error messages with contextual information. See ErrorKind in the package documentation for a full list. GCS is used as a mechanism for storing, transmitting, and committing to per-block filters. Consensus-validating full nodes commit to a single filter for every block and serve the filter to SPV clients that match against the filter locally to determine if the block is potentially relevant. The required parameters for Decred are defined by the blockcf2 package. For more details, see the Block Filters section of DCP0005: https://github.com/decred/dcps/blob/master/dcp-0005/dcp-0005.mediawiki#block-filters

Registry - Source - Documentation - JSON
purl: pkg:golang/github.com/decred/dcrd/gcs/v4
Keywords: blockchain, cryptocurrency, dcrd, decred, decred-daemon, decred-nodes, go, golang, p2p, peer-to-peer
License: ISC
Latest release: about 17 hours ago
First release: 11 months ago
Namespace: github.com/decred/dcrd/gcs
Dependent packages: 27
Dependent repositories: 4
Stars: 727 on GitHub
Forks: 285 on GitHub
Docker dependents: 2
Docker downloads: 217
Total Commits: 6357
Committers: 159
Average commits per author: 39.981
Development Distribution Score (DDS): 0.43
More commit stats: commits.ecosyste.ms
See more repository details: repos.ecosyste.ms
Last synced: about 5 hours ago

    Loading...
    Readme
    Loading...