Skip to content

Commit 129e9a9

Browse files
bump version to 0.3.0 (#13)
* Raz extractor implementation (#12) * Raz extractor * Address comments * Update comments on opt_error_raz * Update to remove numpy * Update linstep replacement * Fix: using n1/2 for trinomial values. * Fix: using n in raz output size. * Update README.md * bump version to 0.3.0 --------- Co-authored-by: Kevin Milner <kamilner@kamilner.ca>
1 parent 8d140d7 commit 129e9a9

File tree

9 files changed

+577
-11
lines changed

9 files changed

+577
-11
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,3 +86,14 @@ If you use `cryptomite` in your research, please cite the accompanying [paper](h
8686
year = {2025}
8787
}
8888
```
89+
90+
If you make use of our improved Raz extractor, please also cite the following [paper](https://arxiv.org/abs/2506.15547):
91+
92+
```
93+
@article{foreman2025efficient,
94+
title={An efficient construction of Raz's two-source randomness extractor with improved parameters},
95+
author={Foreman, Cameron and Wooltorton, Lewis and Milner, Kevin and Curchod, Florian J},
96+
journal={arXiv preprint arXiv:2506.15547},
97+
year={2025}
98+
}
99+
```

cryptomite/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ include(GNUInstallDirs)
33
include(FetchContent)
44
FetchContent_Declare(
55
pybind11
6-
URL https://github.com/pybind/pybind11/archive/refs/tags/v2.10.4.tar.gz
6+
URL https://github.com/pybind/pybind11/archive/refs/tags/v2.13.6.tar.gz
77
)
88
FetchContent_MakeAvailable(pybind11)
99
pybind11_add_module(_cryptomite MODULE pycryptomite.cpp)

cryptomite/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@
1919
from cryptomite.trevisan import Trevisan
2020
from cryptomite.utils import von_neumann
2121

22-
__version__ = '0.2.3'
22+
__version__ = '0.3.0'

cryptomite/pycryptomite.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,11 @@ PYBIND11_MODULE(_cryptomite, m) {
2828

2929
py::class_<NTT>(m, "NTT")
3030
.def(py::init<int>())
31-
.def("ntt", &NTT::ntt)
31+
.def("ntt", &NTT::ntt, py::arg("x"), py::arg("inverse"), py::arg("plusone") = false)
3232
.def("mul_vec", &NTT::mul_vec)
33-
.def("conv", &NTT::conv);
33+
.def("conv", &NTT::conv)
34+
.def("conv_and_reduce", &NTT::conv_and_reduce)
35+
.def("raz_iteration", &NTT::raz_iteration);
3436

3537
py::class_<BigNTT>(m, "BigNTT")
3638
.def(py::init<int>())

0 commit comments

Comments
 (0)