<PackageReference Include="BouncyCastle.Cryptography" Version="2.5.1" />

PgpKeyPair

public class PgpKeyPair
public long KeyId { get; }

The keyId associated with this key pair.

public PgpPrivateKey PrivateKey { get; }

public PgpPublicKey PublicKey { get; }

Create a key pair from a PgpPrivateKey and a PgpPublicKey.