Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,3 +86,14 @@ If you use `cryptomite` in your research, please cite the accompanying [paper](h
year = {2025}
}
```

If you make use of our improved Raz extractor, please also cite the following [paper](https://arxiv.org/abs/2506.15547):

```
@article{foreman2025efficient,
title={An efficient construction of Raz's two-source randomness extractor with improved parameters},
author={Foreman, Cameron and Wooltorton, Lewis and Milner, Kevin and Curchod, Florian J},
journal={arXiv preprint arXiv:2506.15547},
year={2025}
}
```
2 changes: 1 addition & 1 deletion cryptomite/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ include(GNUInstallDirs)
include(FetchContent)
FetchContent_Declare(
pybind11
URL https://github.com/pybind/pybind11/archive/refs/tags/v2.10.4.tar.gz
URL https://github.com/pybind/pybind11/archive/refs/tags/v2.13.6.tar.gz
)
FetchContent_MakeAvailable(pybind11)
pybind11_add_module(_cryptomite MODULE pycryptomite.cpp)
Expand Down
2 changes: 1 addition & 1 deletion cryptomite/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@
from cryptomite.trevisan import Trevisan
from cryptomite.utils import von_neumann

__version__ = '0.2.3'
__version__ = '0.3.0'
6 changes: 4 additions & 2 deletions cryptomite/pycryptomite.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,11 @@ PYBIND11_MODULE(_cryptomite, m) {

py::class_<NTT>(m, "NTT")
.def(py::init<int>())
.def("ntt", &NTT::ntt)
.def("ntt", &NTT::ntt, py::arg("x"), py::arg("inverse"), py::arg("plusone") = false)
.def("mul_vec", &NTT::mul_vec)
.def("conv", &NTT::conv);
.def("conv", &NTT::conv)
.def("conv_and_reduce", &NTT::conv_and_reduce)
.def("raz_iteration", &NTT::raz_iteration);

py::class_<BigNTT>(m, "BigNTT")
.def(py::init<int>())
Expand Down
Loading
Loading