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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distributions
sycret-0.1.3-py3-none-win_amd64.whl
(132.9 kB
view details)
File details
Details for the file sycret-0.1.3-py3-none-win_amd64.whl
.
File metadata
- Download URL: sycret-0.1.3-py3-none-win_amd64.whl
- Upload date:
- Size: 132.9 kB
- Tags: Python 3, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/0.8.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d884c3979e6847a9f8316350549d416b9ad88a9a614e9eb04896612a0a99aa2b |
|
MD5 | ce13a30afaa8c738a95644c459712a9f |
|
BLAKE2b-256 | e6d25fad3e84b83b9223e0ff1b1daa977599b7937594ac52e44ac9cbc0d79c5d |
File details
Details for the file sycret-0.1.3-py3-none-manylinux1_x86_64.whl
.
File metadata
- Download URL: sycret-0.1.3-py3-none-manylinux1_x86_64.whl
- Upload date:
- Size: 199.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/0.8.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 570a0de78b0b77015c37c170dd82e561c8cc476b9cc341cdcb382961e3fc650f |
|
MD5 | 807fa6361f8b487c436972454bb4e651 |
|
BLAKE2b-256 | 64ae28aad28a23e4035fb7fadcee4ffde9f829945b184d2187762fb1406fafd5 |
File details
Details for the file sycret-0.1.3-py3-none-macosx_10_7_x86_64.whl
.
File metadata
- Download URL: sycret-0.1.3-py3-none-macosx_10_7_x86_64.whl
- Upload date:
- Size: 167.9 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 | 45703b4a86af92abd8bb190a9d7e9c1db7d250f76e04ea7428e00aab223deee9 |
|
MD5 | 0caf90977aaa6559ebb8c4ffa766cc45 |
|
BLAKE2b-256 | 267bdef002284ab2590e43bf7dbedd97a193a37cdd5b8e36b7d1bf3dec8c8a6d |