summaryrefslogtreecommitdiff
path: root/src/include/taler_auditordb_plugin.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2018-10-27 19:26:17 +0200
committerChristian Grothoff <christian@grothoff.org>2018-10-27 19:26:17 +0200
commit2024ccd2f9cc3465a008a88c836be9ce26694b19 (patch)
tree5ba60ac504630dc4bc2ec02e6fd1443367d0f97a /src/include/taler_auditordb_plugin.h
parent2956217b30d3f8758dd565078399289915923029 (diff)
downloadexchange-2024ccd2f9cc3465a008a88c836be9ce26694b19.tar.gz
exchange-2024ccd2f9cc3465a008a88c836be9ce26694b19.tar.bz2
exchange-2024ccd2f9cc3465a008a88c836be9ce26694b19.zip
complete auditor httpd side of deposit confirmation handling (auditordb not yet ready, though)
Diffstat (limited to 'src/include/taler_auditordb_plugin.h')
-rw-r--r--src/include/taler_auditordb_plugin.h52
1 files changed, 52 insertions, 0 deletions
diff --git a/src/include/taler_auditordb_plugin.h b/src/include/taler_auditordb_plugin.h
index 752ff6a8..fb393052 100644
--- a/src/include/taler_auditordb_plugin.h
+++ b/src/include/taler_auditordb_plugin.h
@@ -187,6 +187,43 @@ struct TALER_AUDITORDB_ProgressPoint
/**
+ * Information about a signing key of an exchange.
+ */
+struct TALER_AUDITORDB_ExchangeSigningKey
+{
+ /**
+ * Public master key of the exchange that certified @e master_sig.
+ */
+ struct TALER_MasterPublicKeyP master_public_key;
+
+ /**
+ * When does @e exchange_pub start to be used?
+ */
+ struct GNUNET_TIME_Absolute ep_start;
+
+ /**
+ * When will the exchange stop signing with @e exchange_pub?
+ */
+ struct GNUNET_TIME_Absolute ep_expire;
+
+ /**
+ * When does the signing key expire (for legal disputes)?
+ */
+ struct GNUNET_TIME_Absolute ep_end;
+
+ /**
+ * What is the public offline signing key this is all about?
+ */
+ struct TALER_ExchangePublicKeyP exchange_pub;
+
+ /**
+ * Signature by the offline master key affirming the above.
+ */
+ struct TALER_MasterSignatureP master_sig;
+};
+
+
+/**
* Information about a deposit confirmation we received from
* a merchant.
*/
@@ -367,6 +404,21 @@ struct TALER_AUDITORDB_Plugin
/**
+ * Insert information about a signing key of the exchange.
+ *
+ * @param cls the @e cls of this struct with the plugin-specific state
+ * @param session connection to the database
+ * @param sk signing key information to store
+ * @return query result status
+ */
+ enum GNUNET_DB_QueryStatus
+ (*insert_exchange_signkey) (void *cls,
+ struct TALER_AUDITORDB_Session *session,
+ const struct TALER_AUDITORDB_ExchangeSigningKey *sk);
+ // FIXME: above function is not yet implemented!
+
+
+ /**
* Insert information about a deposit confirmation into the database.
*
* @param cls the @e cls of this struct with the plugin-specific state