otp -> ot

This commit is contained in:
Mateusz Piątkowski 2024-04-18 10:01:09 +00:00
parent e24033bc9e
commit d925523e4d
5 changed files with 4 additions and 4 deletions

View File

@ -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`.

View File

@ -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
View File

@ -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
View File

@ -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))

View File