class GPGME::Ctx

def get_key(fingerprint, secret = false)

If +secret+ is +true+, secret key is returned.
Get the key with the +fingerprint+.
def get_key(fingerprint, secret = false)
  rkey = []
  err = GPGME::gpgme_get_key(self, fingerprint, rkey, secret ? 1 : 0)
  exc = GPGME::error_to_exception(err)
  raise exc if exc
  rkey[0]
end