fix: add basic tests for listener

This commit is contained in:
Akash Mondal
2025-06-12 10:03:08 +00:00
committed by lla-dane
parent 54b3055eaa
commit a3231af714
10 changed files with 892 additions and 100 deletions

View File

@ -7,7 +7,6 @@ Full implementation will be in Module 5.
from dataclasses import dataclass
import os
import tempfile
from typing import Optional
from libp2p.crypto.keys import PrivateKey
from libp2p.peer.id import ID
@ -21,7 +20,7 @@ class TLSConfig:
cert_file: str
key_file: str
ca_file: Optional[str] = None
ca_file: str | None = None
def generate_libp2p_tls_config(private_key: PrivateKey, peer_id: ID) -> TLSConfig: