Package ch.bitagent.bitcoin.lib.block
Class BloomFilter
- java.lang.Object
-
- ch.bitagent.bitcoin.lib.block.BloomFilter
-
public class BloomFilter extends Object
BloomFilter class.
-
-
Field Summary
Fields Modifier and Type Field Description static IntBIP37_CONSTANTConstantBIP37_CONSTANT
-
Constructor Summary
Constructors Constructor Description BloomFilter(int size, int functionCount, int tweak)Constructor for BloomFilter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(byte[] item)Add an item to the filterbyte[]filterBytes()filterBytes.GenericMessagefilterload(Int flag)Return the filterload message
-
-
-
Field Detail
-
BIP37_CONSTANT
public static final Int BIP37_CONSTANT
ConstantBIP37_CONSTANT
-
-
Method Detail
-
add
public void add(byte[] item)
Add an item to the filter- Parameters:
item- an array ofbyteobjects
-
filterBytes
public byte[] filterBytes()
filterBytes.
- Returns:
- an array of
byteobjects
-
filterload
public GenericMessage filterload(Int flag)
Return the filterload message- Parameters:
flag- aIntobject- Returns:
- a
GenericMessageobject
-
-