remotePeer property
override
RemotePeer returns the peer ID of the remote peer.
Implementation
@override
libp2p.PeerId get remotePeer {
final quicPeerId = _delegate.peerId;
if (quicPeerId != null) {
return libp2p.PeerId.fromString(quicPeerId.toBase58());
}
throw StateError(
'Remote PeerId not yet established for this QUIC connection. '
'Call verifyPeer() after the handshake completes.',
);
}