Constructs a KeyPair with the specified public and private keys.
KeyPair({ required this.publicKey, required this.privateKey, });