getPublicKey method

Uint8List? getPublicKey(
  1. String peerId
)

Retrieves the verified public key bytes for peerId, or null if not registered.

Implementation

Uint8List? getPublicKey(String peerId) {
  final key = _keys[peerId];
  return key != null ? Uint8List.fromList(key) : null;
}