iamtrask / Capsule

DEPRECATED- see https://github.com/OpenMined/OpenMined or https://github.com/OpenMined/PySyft
Apache License 2.0
33 stars 16 forks source link

decrypt() error in Tutorial Notebook "Paillier Encrypted Linear Classification Example" #24

Closed borkjt9 closed 6 years ago

borkjt9 commented 6 years ago

The line model = model.decrypt() returns the error "decrypt() missing 1 required positional argument: 'prikey'".

In the Syft library, decrypt requires the parameter 'private key'. Therefore I think this line should be changed to model = model.decrypt(capsule).

I am happy to update if necessary.

aradhyamathur commented 6 years ago

is the error in the following tutorial https://github.com/OpenMined/PySyft/blob/master/notebooks/Syft%20-%20Paillier%20Encrypted%20Linear%20Classification.ipynb ?

borkjt9 commented 6 years ago

Yes.

aradhyamathur commented 6 years ago

It would be better if u submit the issue in PySyft project itself and submit the PR for same :)