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.

Disclaimer. Sycret is not production-ready yet. It is intended for research and prototyping purposes.

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

Uploaded Python 3 Windows x86-64

sycret-0.2.1-py3-none-manylinux1_x86_64.whl (199.9 kB view details)

Uploaded Python 3

sycret-0.2.1-py3-none-macosx_10_7_x86_64.whl (181.5 kB view details)

Uploaded Python 3 macOS 10.7+ x86-64

File details

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

File metadata

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

File hashes

Hashes for sycret-0.2.1-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 37f56af643c26d5c4448879c4ecba88b53cb75d9ea7da1ac8acc965b60db820a
MD5 24af97b18ac3585b0cc34c19956e27af
BLAKE2b-256 914973ef10e204b9277997af12ba69f962b092314f1238c14c0b68f4dfcb1f0a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sycret-0.2.1-py3-none-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 5eaef0e4845dfd795751b26319e1f62f566123e4ccd96657e3b19272c6b2c8dd
MD5 3ec519ddd7bab166e0c99c1ca924f81c
BLAKE2b-256 0aa17d872de4ca38880cecfff0d4d03f212ef5b1fcc7fff595355345387c970a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sycret-0.2.1-py3-none-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 96fa20befb36687c7ac9adc5e0b2301fae08ec83d17878fb6608134a939ce31b
MD5 ab44a22e719135d4719c699eb7d92c1a
BLAKE2b-256 fd252feb90c973e95303a1f45109e04110e986db01f57ef9e1d694f9f6939dfe

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