Shayan 4 éve
szülő
commit
023fc597dc
5 módosított fájl, 10 hozzáadás és 13 törlés
  1. 1 1
      command.py
  2. 1 1
      oracle/worker/bearer.py
  3. 1 1
      oracle/worker/connector.py
  4. 1 1
      oracle/worker/cryptor.py
  5. 6 9
      requirements.txt

+ 1 - 1
command.py

@@ -6,7 +6,7 @@ def install():
     os.system("git submodule update")
     os.system("mkdir ./MP-SPDZ/Player-Data")
     os.system(
-        "apt-get install automake build-essential git libboost-dev libboost-thread-dev libsodium-dev libssl-dev libtool m4 python texinfo yasm pycrypto pyCrypto -y"
+        "sudo apt-get install automake build-essential git libboost-dev libboost-thread-dev libsodium-dev libssl-dev libtool m4 texinfo yasm -y"
     )
     os.system("pip install -r requirements.txt")
     os.system("./MP-SPDZ/Scripts/tldr.sh")

+ 1 - 1
oracle/worker/bearer.py

@@ -46,7 +46,7 @@ class Bearer:
             )
             os.system(s)
             os.system(
-                "./MP-SPDZ/mascot-party.x 1 xor  -pn 12023 -h 192.168.178.105 -N 3"
+                "./MP-SPDZ/mascot-party.x 1 xor  -pn 12023 -h 127.0.0.1 -N 3"
             )
         except Exception as e:
             rBackPrint("An exception occurred MPC", e)

+ 1 - 1
oracle/worker/connector.py

@@ -205,7 +205,7 @@ class Connector:
                     "-pn",
                     "12023",
                     "-h",
-                    "192.168.178.105",
+                    "127.0.0.1",
                     "-N",
                     "3",
                 ]

+ 1 - 1
oracle/worker/cryptor.py

@@ -144,7 +144,7 @@ class Cryptor:
             )
             os.system(s)
             os.system(
-                "./MP-SPDZ/mascot-party.x 2 xor  -pn 12023 -h 192.168.178.105 -N 3"
+                "./MP-SPDZ/mascot-party.x 2 xor  -pn 12023 -h 127.0.0.1 -N 3"
             )
         except Exception as e:
             rBackPrint("An exception occurred MPC", e)

+ 6 - 9
requirements.txt

@@ -1,11 +1,8 @@
-pynacl
+hkdf==0.0.3
+pycrypto==2.6.1
+pycryptodome==3.9.7
+PyNaCl==1.4.0
 web3==5.12.1
 infura==0.2.1
-ipfs-api ==0.2.3
-iofree
-hkdf
-pyCrypto
-pyCryptodome
-web3==5.12.1
-infura==0.2.1
-ipfs-api ==0.2.3
+iofree==0.2.4
+ipfs-api==0.2.3