Configures libp2p to use the given identity (private key).
Future<void> withIdentity(KeyPair keyPair) async { peerKey = keyPair; }