getPublicKey method
- 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;
}