@namespace("keybase.1")

protocol gpgUi {
  import idl "common.avdl";
  import idl "gpg_common.avdl";

  record SelectKeyRes {
    string keyID;
    boolean doSecretPush;
  }

  boolean wantToAddGPGKey(int sessionID);
  boolean confirmDuplicateKeyChosen(int sessionID);
  SelectKeyRes selectKeyAndPushOption(int sessionID, array<GPGKey> keys);
  string selectKey(int sessionID, array<GPGKey> keys);
  string sign(bytes msg, bytes fingerprint);
  string getTTY();
}
