aboutsummaryrefslogtreecommitdiff
path: root/src/auditordb/0002-auditor_exchange_signkeys.sql
diff options
context:
space:
mode:
authornic <nic@eigel.ch>2023-09-25 23:13:08 +0200
committernic <nic@eigel.ch>2023-09-25 23:13:08 +0200
commit732ba9c860b1e7cace1d582bcaf891dbc48f6200 (patch)
tree22458dba6e0074e14ac55e877be387bc7ae34b3e /src/auditordb/0002-auditor_exchange_signkeys.sql
parent0a87c2d89bb7c971e2097cbdd45dfe5972c16e85 (diff)
downloadexchange-732ba9c860b1e7cace1d582bcaf891dbc48f6200.tar.xz
Splitted auditor-0001 and removed master_pub
Diffstat (limited to 'src/auditordb/0002-auditor_exchange_signkeys.sql')
-rw-r--r--src/auditordb/0002-auditor_exchange_signkeys.sql25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/auditordb/0002-auditor_exchange_signkeys.sql b/src/auditordb/0002-auditor_exchange_signkeys.sql
new file mode 100644
index 000000000..dbd15cf71
--- /dev/null
+++ b/src/auditordb/0002-auditor_exchange_signkeys.sql
@@ -0,0 +1,25 @@
+--
+-- This file is part of TALER
+-- Copyright (C) 2014--2022 Taler Systems SA
+--
+-- TALER is free software; you can redistribute it and/or modify it under the
+-- terms of the GNU General Public License as published by the Free Software
+-- Foundation; either version 3, or (at your option) any later version.
+--
+-- TALER is distributed in the hope that it will be useful, but WITHOUT ANY
+-- WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
+-- A PARTICULAR PURPOSE. See the GNU General Public License for more details.
+--
+-- You should have received a copy of the GNU General Public License along with
+-- TALER; see the file COPYING. If not, see <http://www.gnu.org/licenses/>
+--
+
+CREATE TABLE IF NOT EXISTS auditor_exchange_signkeys
+ ,ep_start INT8 NOT NULL
+ ,ep_expire INT8 NOT NULL
+ ,ep_end INT8 NOT NULL
+ ,exchange_pub BYTEA NOT NULL CHECK (LENGTH(exchange_pub)=32)
+ ,master_sig BYTEA NOT NULL CHECK (LENGTH(master_sig)=64)
+ );
+COMMENT ON TABLE auditor_exchange_signkeys
+ IS 'list of the online signing keys of exchanges we are auditing'; \ No newline at end of file