No project description provided
Project description
Sycret
Python library for Function Secret Sharing with an efficient Rust backend using the AES-NI hardware acceleration. It is used in PySyft for ARIANN: Low-Interaction Privacy-Preserving Deep Learning via Function Secret Sharing.
Installation
pip install sycret
Integration with PySyft
The Python package is called from PySyft, like in this branch.
Development instructions
Structure
src
: the Rust crate.rustfss
: the Python package calling the Rust crate with Maturin.tests
: tests for the Rust crate.test
: tests for the Python wrapper.
Build
- Create a Python environment from
dev-requirements.txt
maturin develop -b cffi --release
to build the crate, bind it to the Python package and install the package locally.
Test
cargo test
to test the Rust functionality.pytest test
to test the Python package.
Publish
docker run --rm --env RUSTFLAGS="-C target-feature=+aes,+ssse3" -v $(pwd):/io konstin2/maturin publish -b cffi --manylinux 2010 -u __token__ -p pypi-your-token
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
File details
Details for the file sycret-0.0.1_alpha.3.tar.gz
.
File metadata
- Download URL: sycret-0.0.1_alpha.3.tar.gz
- Upload date:
- Size: 15.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/0.8.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 56d8caeee1a34370c17b6b71b98256e788ad512cf87073d4f15006478da935e8 |
|
MD5 | 5c9aacb95b4dcfcebc25fd4152a65889 |
|
BLAKE2b-256 | ef85cdd58362ce9212c156659131d8212ca00747f4d1db8df2c545384cd93d80 |
File details
Details for the file sycret-0.0.1_alpha.3-py3-none-win_amd64.whl
.
File metadata
- Download URL: sycret-0.0.1_alpha.3-py3-none-win_amd64.whl
- Upload date:
- Size: 135.7 kB
- Tags: Python 3, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/0.8.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e168a3663256715f77740f62e493b14be3a37a900e76cddc4510dc32f73a4fbb |
|
MD5 | 73ed307fec8a2aa1aeeb4c08474891bd |
|
BLAKE2b-256 | ddffbec7dcf2bf24e2f1db65d4ace23ad2709bfd1e4becad68f8297e1b7def92 |
File details
Details for the file sycret-0.0.1_alpha.3-py3-none-manylinux2010_x86_64.whl
.
File metadata
- Download URL: sycret-0.0.1_alpha.3-py3-none-manylinux2010_x86_64.whl
- Upload date:
- Size: 185.0 kB
- Tags: Python 3, manylinux: glibc 2.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/0.8.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b24d7d247d8544533397977ee8170c951c6cf8f2f6a87cf494860277941e7f5e |
|
MD5 | 3c9d5f445d639537a658740ee18ba687 |
|
BLAKE2b-256 | 3fdf610634b72bb722197f9ab7bd463e2ac34d61341899e99101fdb163d37d12 |
File details
Details for the file sycret-0.0.1_alpha.3-py3-none-manylinux1_x86_64.whl
.
File metadata
- Download URL: sycret-0.0.1_alpha.3-py3-none-manylinux1_x86_64.whl
- Upload date:
- Size: 204.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/0.8.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7dbdfd0cae4eafaef5c72d7795719d6a06f49be8360c22282589793732e2e5b3 |
|
MD5 | 28088c34487b557ae7fe3d8ba5adc8ae |
|
BLAKE2b-256 | a09783249af9824020bb9a873b0ae562cd0ce7f02a10ae312d9deeed1afe56bd |
File details
Details for the file sycret-0.0.1_alpha.3-py3-none-macosx_10_7_x86_64.whl
.
File metadata
- Download URL: sycret-0.0.1_alpha.3-py3-none-macosx_10_7_x86_64.whl
- Upload date:
- Size: 170.4 kB
- Tags: Python 3, macOS 10.7+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/0.8.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 97a2eb0837fdc67eb486dcb9277f2fd57b34aa015335b62f75d254ab6857ec9d |
|
MD5 | dff56008bfbc18626eb2a9b1886a5e0e |
|
BLAKE2b-256 | 8550521be1f5978df44572dcd23457c9c1b79ee3d8f02231a6d73eb23ffe10c7 |