aboutsummaryrefslogtreecommitdiff
path: root/src/auditordb/0002-auditor_exchange_signkeys.sql
blob: 64349a2ffc7cb26567cbeff833b3af7acda53005 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
    --
-- 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 auditor_exchange_signkeys
  (exchange_pub BYTEA PRIMARY KEY CHECK (LENGTH(exchange_pub)=32)
  ,master_sig BYTEA NOT NULL CHECK (LENGTH(master_sig)=64)
  ,ep_valid_from INT8 NOT NULL
  ,ep_expire_sign INT8 NOT NULL
  ,ep_expire_legal INT8 NOT NULL
  );
COMMENT ON TABLE auditor_exchange_signkeys
  IS 'list of the online signing keys of exchanges we are auditing';
COMMENT ON COLUMN auditor_exchange_signkeys.exchange_pub
  IS 'Public online signing key of the exchange.';
COMMENT ON COLUMN auditor_exchange_signkeys.master_sig
  IS 'Signature affirming the validity of the signing key of purpose TALER_SIGNATURE_MASTER_SIGNING_KEY_VALIDITY.';
COMMENT ON COLUMN auditor_exchange_signkeys.ep_valid_from
  IS 'Time when this online signing key will first be used to sign messages.';
COMMENT ON COLUMN auditor_exchange_signkeys.ep_expire_sign
  IS 'Time when this online signing key will no longer be used to sign.';
COMMENT ON COLUMN auditor_exchange_signkeys.ep_expire_legal
  IS 'Time when this online signing key legally expires.';