otp -> ot
This commit is contained in:
parent
e24033bc9e
commit
d925523e4d
@ -3,7 +3,7 @@
|
||||
1. Stwórz wirtualne środowisko: `python -m venv .venv`
|
||||
2. Aktywuj: `. .venv/bin/activate`
|
||||
3. Pobierz zależności: `pip install -r requirements.txt'
|
||||
4. Uruchom np. test wewnętrzny: `python otp.py`
|
||||
4. Uruchom np. test wewnętrzny: `python ot.py`
|
||||
|
||||
Aby wyjść ze środowiska uruchom komendę `deactivate`.
|
||||
|
||||
|
2
alice.py
2
alice.py
@ -1,7 +1,7 @@
|
||||
import argparse
|
||||
import socket
|
||||
import contextlib
|
||||
from otp import alice
|
||||
from ot import alice
|
||||
from net import send, send_point, recv, recv_point
|
||||
|
||||
def main():
|
||||
|
2
bob.py
2
bob.py
@ -1,6 +1,6 @@
|
||||
import argparse
|
||||
import socket
|
||||
from otp import bob
|
||||
from ot import bob
|
||||
from net import send, send_point, recv, recv_point
|
||||
import sys
|
||||
|
||||
|
2
net.py
2
net.py
@ -2,7 +2,7 @@ import socket
|
||||
import pickle
|
||||
import struct
|
||||
import ecpy.curves
|
||||
from otp import curve
|
||||
from ot import curve
|
||||
|
||||
def send_point(s: socket.socket, point: ecpy.curves.Point):
|
||||
send(s, (point.x, point.y))
|
||||
|
Loading…
Reference in New Issue
Block a user