Source code for secure_comparison.communicator

import sys
from typing import Any

if sys.version_info >= (3, 8):
    from typing import Protocol
else:
    from typing_extensions import Protocol


[docs]class Communicator(Protocol):
[docs] async def send(self, party_id: str, message: Any, msg_id: str) -> None: ...
[docs] async def recv(self, party_id: str, msg_id: str) -> Any: ...