package
2.0.1+incompatible
Repository: https://github.com/dipperin/dipperin-core.git
Documentation: pkg.go.dev
# Functions
Proposed config of Bloom according to the paper given the number of elements.
No description provided by the author
No description provided by the author
Create a new BloomConfig where the input len is the log2 of the length of bloom on bit.
Create a new bucket according to its configuraion.
Create a new bucket configuration.
No description provided by the author
No description provided by the author
Create a new estimator according to estimatorConfig.
Create a new estimator config according to the default setting of IBLT.
Create a new Graphene with the configurations of bloom and invBloom.
Create an empty HashPool.
Create a new hashpool.
Create a new hybrid estimator using the hybridEstimator config.
Create a new hybrid estimatorConfig with the suggested configuration.
Create a new IBLT.
Create a new InvBloom Config according two the config of buckets in the context of transmission of transactions.
# Constants
Constants left here for reference.
BloomByteLength is the number of bytes in a classical bloom filter.
BloomBitLength is the number of bits in a classical bloom filter.
number of bits per Digest-ed element.
BucketKeyHashLength is the number of bytes taken from the hash of inserted RLP key.
BucketKeyLength represents the length of bytes used by keys.
Constants left here for reference.
BucketNum represents the number of total buckets.
BucketSerNumLength is the number of bytes used as index if modified, change uint16 to corresponding types.
Number of used buckets in BucketNum of buckets.
BucketValueLength represents the length fo bytes used by keys.
Constants left here for reference.
Number of byte used in key hash.
# Variables
Errors.
Errors.
No description provided by the author
No description provided by the author
Errors.
No description provided by the author
# Structs
Struct of bloom comprises a bloom of byte slice and a config.
Configuration of bloom.
The struct(s) end with -RLP are what actually transmitting on the networks.
IBLT are made of buckets.
Configuration of bucket in IBLT.
No description provided by the author
No description provided by the author
Graphene are made of a bloom and an invBloom.
No description provided by the author
HashPool stores sorted hashes, the first K hashes will be selected for comparison in order to estimate the set difference.
The configuration of HashPool.
No description provided by the author
HybridEstimator combines strata estimator and min-hash estimator to estimate the set difference between two parties.
The configuration of both the Strata Estimator and the HashPool.
No description provided by the author
This is different from InvBloomRLP, we have to drop the config field since it's unnecessary to carry the same config for different strata.
The structure of IBLT.
Configuration of IBLT.
No description provided by the author
No description provided by the author
StrataEstimator is a strata estimator consists of an array of IBLT, each element is inserted to an IBLT corresponding to its level of key.
No description provided by the author
No description provided by the author
No description provided by the author
# Interfaces
No description provided by the author
# Type aliases
Defined data types used in IBLT.
No description provided by the author
No description provided by the author
No description provided by the author