remotePublicKey property

  1. @override
Future<PublicKey?> get remotePublicKey
override

RemotePublicKey returns the public key of the remote peer.

Implementation

@override
Future<libp2p.PublicKey?> get remotePublicKey async {
  // The public key is embedded in the libp2p TLS extension; it is extracted
  // by verifyPeerCertificate() after the handshake completes. Return null
  // until verification has been performed.
  return null;
}