GithubHelp home page GithubHelp logo

tf-encrypted / tf-pjc Goto Github PK

View Code? Open in Web Editor NEW
16.0 4.0 3.0 33 KB

Bridge between TensorFlow and Google's Private Join and Compute library

License: Apache License 2.0

Python 44.18% C++ 36.31% Shell 18.63% Makefile 0.87%
machine-learning cryptography tensorflow secure-computation homomorphic-encryption private-set-intersection private-intersection-sum

tf-pjc's Issues

Allow multiple protocols runs at the same time

Currently not possible since only one object is stored in the resource manager and there is no run identification flow happening between the ops (right now they are only control dependencies, and they would need to be eg variant tensors with eg port information).

Integration with TFE

General idea:

  • keep TF PJC to somewhat low-level operations
  • implement high-level functionality in TFE

TODOs:

  • registration mechanism in TFE
  • plugin-loading mechanism in TFE
  • link between TFE Player and TF PJC

Improve robustness

More effort could be put into robustness, including:

  • better error handling
  • time-outs
  • proper shutdown
  • ??

Build Problem

Hello,
I am trying to install the tf-pjc package on Linux ubuntu, but it fails. I run the following:

pip install -e .
python setup.py install 

Then I couldn't import the library because I got the error

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/gamal/tf-pjc/tf_pjc/__init__.py", line 1, in <module>
    from tf_pjc.python.protocol import PrivateIntersectionSum
  File "/home/gamal/tf-pjc/tf_pjc/python/protocol.py", line 3, in <module>
    from tf_pjc.python.ops import pjc_run_client
  File "/home/gamal/tf-pjc/tf_pjc/python/ops.py", line 8, in <module>
    pjc_ops = load_library.load_op_library(op_lib_file)
  File "/home/gamal/anaconda3/envs/tf-pjc/lib/python3.7/site-packages/tensorflow_core/python/framework/load_library.py", line 61, in load_op_library
    lib_handle = py_tf.TF_LoadLibrary(library_filename)
tensorflow.python.framework.errors_impl.NotFoundError: /home/gamal/tf-pjc/tf_pjc/python/_pjc_ops.so: cannot open shared object file: No such file or directory

I tried to build the tool using the command

make build

I got the following error:

ERROR: /home/gamal/.cache/bazel/_bazel_gamal/4ffb84453c7e240a9ea24733ac1549ff/external/com_google_protobuf/protobuf.bzl:130:29: Traceback (most recent call last):
	File "/home/gamal/.cache/bazel/_bazel_gamal/4ffb84453c7e240a9ea24733ac1549ff/external/com_google_protobuf/protobuf.bzl", line 125
		rule(<3 more arguments>)
	File "/home/gamal/.cache/bazel/_bazel_gamal/4ffb84453c7e240a9ea24733ac1549ff/external/com_google_protobuf/protobuf.bzl", line 130, in rule
		attr.label(cfg = "host", <3 more arguments>)
'single_file' is no longer supported. use allow_single_file instead. You can use --incompatible_disable_deprecated_attr_params=false to temporarily disable this check.
ERROR: /home/gamal/.cache/bazel/_bazel_gamal/4ffb84453c7e240a9ea24733ac1549ff/external/com_github_google_private_join_and_compute/util/BUILD:37:11: error loading package '@com_google_protobuf//': Extension file 'protobuf.bzl' has errors and referenced by '@com_github_google_private_join_and_compute//util:status_includes'
ERROR: Analysis of target '//tf_pjc:pjc_ops_py' failed; build aborted: Analysis failed
INFO: Elapsed time: 82.443s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (33 packages loaded, 127 targets configured)
Makefile:12: recipe for target 'build' failed
make: *** [build] Error 1

Reuse keys across runs

New keys are currently being generated whenever a client is instantiated (PrivateIntersectionSumProtocolClientImpl::PrivateIntersectionSumProtocolClientImpl), taking a significant amount of time. Update underlying library to allow reuse of (especially Paillier) keys.

Less copying

  • allow eg an iterator to be passed from the kernel to the conversion to BigInts in PJC

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.