Skip to content
Open
Show file tree
Hide file tree
Changes from 26 commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
71f7fa3
add tls wip
donotmatter Jun 20, 2025
a417b75
Merge branch 'libp2p:main' into add_tls
donotmatter Jun 24, 2025
53cae81
Merge branch 'main' into add_tls
seetadev Jun 24, 2025
8fdb987
Merge branch 'main' into add_tls
seetadev Jun 26, 2025
1d2ad31
Merge branch 'main' into add_tls
seetadev Jun 30, 2025
7b7d96d
Merge branch 'main' into add_tls
seetadev Jul 2, 2025
c569c68
Merge branch 'main' into add_tls
seetadev Jul 3, 2025
39f28ff
Merge branch 'main' into add_tls
seetadev Jul 12, 2025
4e0143f
Merge branch 'main' into add_tls
seetadev Jul 16, 2025
61cd0d2
Merge branch 'main' into add_tls
seetadev Jul 21, 2025
bad52bf
struct
guha-rahul Jul 23, 2025
2388f76
Merge branch 'libp2p:main' into add_tls
guha-rahul Aug 11, 2025
c52de2a
add helper and ALPN
guha-rahul Aug 11, 2025
7fc581e
Merge branch 'main' into add_tls
seetadev Aug 11, 2025
e267e49
Merge branch 'main' into add_tls
seetadev Aug 12, 2025
6bddc2a
Merge branch 'main' into add_tls
seetadev Aug 14, 2025
b7b33d9
add tls
guha-rahul Aug 14, 2025
7c3c294
Merge branch 'add_tls' of https://github.com/guha-rahul/py-libp2p int…
guha-rahul Aug 14, 2025
a5a8e81
Merge branch 'main' into add_tls
seetadev Aug 18, 2025
4ec969d
fix tox
guha-rahul Aug 18, 2025
fec749c
Merge branch 'add_tls' of https://github.com/guha-rahul/py-libp2p int…
guha-rahul Aug 18, 2025
413e7f4
doc
guha-rahul Aug 18, 2025
2559da7
lin
guha-rahul Aug 18, 2025
fa01e42
Merge branch 'main' into add_tls
guha-rahul Aug 20, 2025
d16529c
Merge branch 'main' into add_tls
seetadev Aug 25, 2025
1b01649
Merge branch 'main' into add_tls
seetadev Aug 25, 2025
ce8715e
Merge branch 'main' into add_tls
seetadev Aug 28, 2025
7ebc03b
Merge branch 'main' into add_tls
seetadev Sep 1, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/libp2p.security.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Subpackages
libp2p.security.insecure
libp2p.security.noise
libp2p.security.secio
libp2p.security.tls

Submodules
----------
Expand Down
37 changes: 37 additions & 0 deletions docs/libp2p.security.tls.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
libp2p.security.tls package
===========================

Submodules
----------

libp2p.security.tls.certificate module
--------------------------------------

.. automodule:: libp2p.security.tls.certificate
:members:
:undoc-members:
:show-inheritance:

libp2p.security.tls.io module
-----------------------------

.. automodule:: libp2p.security.tls.io
:members:
:undoc-members:
:show-inheritance:

libp2p.security.tls.transport module
------------------------------------

.. automodule:: libp2p.security.tls.transport
:members:
:undoc-members:
:show-inheritance:

Module contents
---------------

.. automodule:: libp2p.security.tls
:members:
:undoc-members:
:show-inheritance:
4 changes: 4 additions & 0 deletions libp2p/security/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,7 @@

class HandshakeFailure(BaseLibp2pError):
pass


class SecurityError(BaseLibp2pError):
pass
36 changes: 36 additions & 0 deletions libp2p/security/tls/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
"""
TLS security transport for libp2p.

This module provides a comprehensive TLS transport implementation
that follows the Go libp2p TLS specification.
"""

from libp2p.security.tls.transport import (
TLSTransport,
IdentityConfig,
create_tls_transport,
PROTOCOL_ID,
)
from libp2p.security.tls.io import TLSReadWriter
from libp2p.security.tls.certificate import (
generate_certificate,
create_cert_template,
verify_certificate_chain,
pub_key_from_cert_chain,
SignedKey,
ALPN_PROTOCOL
)

__all__ = [
"TLSTransport",
"IdentityConfig",
"TLSReadWriter",
"create_tls_transport",
"generate_certificate",
"create_cert_template",
"verify_certificate_chain",
"pub_key_from_cert_chain",
"SignedKey",
"PROTOCOL_ID",
"ALPN_PROTOCOL"
]
Loading
Loading