"""p2panda identity adapter for Fleetmesh.
Maps the node's Ed25519 transport key to a p2panda author identity.
Conforms to ProtocolIdentityAdapter (fleetmesh_core.wire.interfaces).
"""
from __future__ import annotations
from fleetmesh_node.protocols.base import Ed25519IdentityAdapter
__all__ = [
'P2PandaIdentityAdapter',
]
[docs]class P2PandaIdentityAdapter(Ed25519IdentityAdapter):
"""Translates between Fleetmesh keys and p2panda author identities."""
uri_prefixes: tuple[str, ...] = ("p2panda:", "panda:")