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

Uploaded Python 3 Windows x86-64

sycret-0.1.2-py3-none-manylinux1_x86_64.whl (200.8 kB view details)

Uploaded Python 3

sycret-0.1.2-py3-none-macosx_10_7_x86_64.whl (168.1 kB view details)

Uploaded Python 3 macOS 10.7+ x86-64

File details

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

File metadata

  • Download URL: sycret-0.1.2-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.2-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 7483d078ae58980d663cd414015b1a8890932a398c5eb42569ebe3a1d5e6d6da
MD5 faebf6846f1f3a5d659a06fc4bbe29d9
BLAKE2b-256 f59542c97ca12177838d49e755af38919fbc6c267ae5055dc438af5cadd8a810

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sycret-0.1.2-py3-none-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 a15c19910c6599e65e8e3b909f6010829bc617505ab3766ca64c2c8dad2a44c5
MD5 b22d7743b85198d121a4a3f5ed7fd225
BLAKE2b-256 9b6539cd67b2bd572a20d8179be26653bb834357d037dd78b7f7839a56dae37b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sycret-0.1.2-py3-none-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 042d98887a862469a40b2cf3cd068b6f215844387ade450d1b906fed64dedc99
MD5 4980ef2da3cdb8e1d01b1e3d4769434c
BLAKE2b-256 1bc9f1791f099c50390fe33b258471fd6ea6422a7f71d79433e86a808b87f0a6

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