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

Uploaded Python 3 Windows x86-64

sycret-0.1.0-py3-none-manylinux1_x86_64.whl (203.8 kB view details)

Uploaded Python 3

sycret-0.1.0-py3-none-macosx_10_7_x86_64.whl (170.4 kB view details)

Uploaded Python 3 macOS 10.7+ x86-64

File details

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

File metadata

  • Download URL: sycret-0.1.0-py3-none-win_amd64.whl
  • Upload date:
  • Size: 135.6 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.0-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 7de2ebfd85282a8a37fe0ec20742bee54612fb09d8bab8e97a73749583277f11
MD5 8a06dcc31b121308464636bce1c9cf6a
BLAKE2b-256 18d50c4609ba27105ebe3e8b03591efab97d683fba20c563b6886c28e8c557fa

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sycret-0.1.0-py3-none-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 e94f7d991323e99f0f7c95ac525e1db89c2b79465a89cb9c90cd664f0e624aa7
MD5 8e77523a75dede17a3ecc3d8691d0ba1
BLAKE2b-256 418721bf5d40a2935eed35cfacc8ff5357ca665a3d627adaa4ca72b53351f4bf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sycret-0.1.0-py3-none-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 2c78da4b8f9512aca21d4ebe545faa6fc5f31c6ba18153001127d7a9139fe961
MD5 f17ee8cf17e7d624a6d1631fc0a5c185
BLAKE2b-256 6f95f6c76f75bdd96f9db189de7f7402ac17ae8f655422acd085550c7be4043c

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