Skip to content

Commit f3fd28d

Browse files
authored
Filled in the README.md file
The README.md file now contains a description of the project.
1 parent 16dfd84 commit f3fd28d

1 file changed

Lines changed: 35 additions & 2 deletions

File tree

README.md

Lines changed: 35 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,35 @@
1-
# libSFB
2-
libSBF - implementation of the Spatial Bloom Filters in Python
1+
# libSFB-python #
2+
libSBF - implementation of the Spatial Bloom Filters in Python
3+
4+
## Synopsis ##
5+
The Spatial Bloom Filters (SBF) are a compact, set-based data structure that extends the original Bloom filter concept. An SBF represents and arbitrary number of sets, and their respective elements (as opposed to Bloom filters, which represent the elements of a single set). SBFs are particularly suited to be used in privacy-preserving protocols, as set-membership queries (i.e. the process of verifying if an element is in a set) can be easily computed over an encrypted SBF, through (somewhat) homomorphic encryption.
6+
7+
## Usage ##
8+
Spatial Bloom Filters have been first proposed for use in location-privacy application, but have found application in a number of domains, including network security and the Internet of Things.
9+
10+
The libSBF-python repository contains the Python implementation of the SBF data structure. The SBF class is provided, as well as various methods for managing the filter:
11+
- once the filter is constructed, the user can insert elements into it through the `insert` method. The `check` method, on the contrary, is used to verify weather an element belongs to one of the mapped sets. Two additional methods, `insert_from_file` and `check_from_file` can be used to insert and check elements from a CSV file.
12+
- methods `filter_sparsity`, `filter_fpp`, `compute_area_fpp`, `area_emersion` and `area_flotation` allow to compute and return several probabilistic properties of the constructed filter.
13+
- finally, two methods are provided to print out the filter: `print_filter` prints the filter and related statistics to the standard output, whereas `save_filter` writes the filter onto a CSV file.
14+
15+
For more details on the implementation, and how to use the library please refer to the [homepage](http://sbf.csr.unibo.it/ "SBF project homepage") of the project.
16+
17+
The library and the test application can be tested using the [sample datasets](https://github.com/spatialbloomfilter/libSBF-testdatasets "libSBF-testdatasets") provided in a separate repository.
18+
19+
A [C++ implementation](https://github.com/spatialbloomfilter/libSFB-cpp "libSFB-cpp") is also available.
20+
21+
## Bibliography ##
22+
The SBFs have been proposed in the following research papers:
23+
- Luca Calderoni, Paolo Palmieri, Dario Maio: *Location privacy without mutual trust: The spatial Bloom filter.* Computer Communications, vol. 68, pp. 4-16, September 2015. ISSN 0140-3664. [DOI](http://dx.doi.org/10.1016/j.comcom.2015.06.011 "DOI")
24+
- Paolo Palmieri, Luca Calderoni, Dario Maio: *Spatial Bloom Filters: Enabling Privacy in Location-aware Applications*. In: Inscrypt 2014. Lecture Notes in Computer Science, vol. 8957, pp. 16–36, Springer, 2015. [DOI](http://dx.doi.org/10.1007/978-3-319-16745-9_2 "DOI")
25+
26+
## Authors ##
27+
Luca Calderoni, Dario Maio - University of Bologna (Italy)
28+
29+
Paolo Palmieri - Cranfield University (UK)
30+
31+
## License ##
32+
The source code is released under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. Please refer to the included files [COPYING](COPYING) and [COPYING.LESSER](COPYING.LESSER).
33+
34+
## Acknowledgements ##
35+
This project uses several Python modules and in particular: hashlib, numpy, base64, csv, sys.

0 commit comments

Comments
 (0)