Skip to main content

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


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.1-py3-none-win_amd64.whl (133.3 kB view details)

Uploaded Python 3 Windows x86-64

sycret-0.1.1-py3-none-manylinux1_x86_64.whl (200.9 kB view details)

Uploaded Python 3

sycret-0.1.1-py3-none-macosx_10_7_x86_64.whl (168.2 kB view details)

Uploaded Python 3 macOS 10.7+ x86-64

File details

Details for the file sycret-0.1.1-py3-none-win_amd64.whl.

File metadata

  • Download URL: sycret-0.1.1-py3-none-win_amd64.whl
  • Upload date:
  • Size: 133.3 kB
  • Tags: Python 3, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/0.8.3

File hashes

Hashes for sycret-0.1.1-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 74d8b4797bfaf57a5c44b50456976241faa1c5345fec5090423ef560a1502d22
MD5 d47588f2ff10b64ee490c4abe64b224a
BLAKE2b-256 96bfce355ade79367b06dc1679bbaf02c210e34adb70af359429f4ace481eac2

See more details on using hashes here.

File details

Details for the file sycret-0.1.1-py3-none-manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for sycret-0.1.1-py3-none-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 037fc13c5dcfd8dfbb7d12c3b8dfe31417a489f5707621421d0d82e2eea531b3
MD5 c9be9f0059d892efec6625564130b0c9
BLAKE2b-256 e11570910a84d48e0e6ffbdd0dbd68a5840de67acf3f37b06d64447199e29572

See more details on using hashes here.

File details

Details for the file sycret-0.1.1-py3-none-macosx_10_7_x86_64.whl.

File metadata

File hashes

Hashes for sycret-0.1.1-py3-none-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 f0bf40e059658fa6e73740541fd145a91551c56aac715c600f16ac5846ea212e
MD5 e792948b1bc55c033b52ba895ddec38c
BLAKE2b-256 987fc64e48979dfa51e43ca7d2030ef32352288244a8e362955204f4fbd7b79b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page