You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -47,7 +47,7 @@ This is a python binding for the Microsoft SEAL library.
47
47
# Run the setup.py
48
48
python3 setup.py build_ext -i
49
49
```
50
-
50
+
51
51
*#### Windows
52
52
53
53
Visual Studio 2019 or newer is required. And use the **x64 Native Tools Command Prompt for Visual Studio 2019** command prompt to configure and build the Microsoft SEAL library. It's usually can be found in your Start Menu.
@@ -57,14 +57,26 @@ This is a python binding for the Microsoft SEAL library.
Generally, the Ninja generator is better than the "Visual Studio 16 2019" generator, and there is more information in the Microsoft SEAL official [illustrate](https://github.com/microsoft/SEAL#building-microsoft-seal-manually).
66
66
67
67
68
+
*#### Docker
69
+
requires: [Docker](https://www.docker.com/)
70
+
71
+
To build source code into a docker image (from this directory):
72
+
```shell
73
+
docker build -t huelse/seal -f Dockerfile .
74
+
```
75
+
76
+
To use the image by running it as an interactive container:
77
+
```shell
78
+
docker run -it huelse/seal
79
+
```
68
80
69
81
## Note
70
82
@@ -74,7 +86,7 @@ This is a python binding for the Microsoft SEAL library.
74
86
75
87
```python
76
88
cipher.save('cipher')
77
-
89
+
78
90
load_cipher = Ciphertext()
79
91
load_cipher.load(context, 'cipher') # work if the context is valid.
80
92
```
@@ -86,10 +98,10 @@ This is a python binding for the Microsoft SEAL library.
86
98
```shell
87
99
# 1. Modify the serializable object's header file in SEAL and switch the wrapper.
88
100
python helper.py
89
-
101
+
90
102
# 2. Rebuild the SEAL lib like above
91
103
cmake --build build
92
-
104
+
93
105
# 3. Run the setup.py
94
106
python setup.py build_ext -i
95
107
```
@@ -98,7 +110,7 @@ This is a python binding for the Microsoft SEAL library.
98
110
99
111
```python
100
112
import pickle
101
-
113
+
102
114
cipher.set_parms(parms) # necessary
103
115
cipher_dump = pickle.dumps(cipher)
104
116
cipher_load = pickle.loads(cipher_dump)
@@ -142,4 +154,3 @@ This is a python binding for the Microsoft SEAL library.
0 commit comments