@Override
  public PublicKey getPublicKey() throws SecurityModuleException {
    return publicKey;
  }
Instantiates a new Key pair security module.

@param keyPair the key pair
crypto/services/src/main/java/org/hyperledger/besu/cryptoservices/KeyPairSecurityModule.java