exchange

Base system with REST service to issue digital coins, run by the payment service provider
Log | Files | Refs | Submodules | README | LICENSE

0002-auditor_exchange_signkeys.sql (1822B)


      1     --
      2 -- This file is part of TALER
      3 -- Copyright (C) 2014--2022 Taler Systems SA
      4 --
      5 -- TALER is free software; you can redistribute it and/or modify it under the
      6 -- terms of the GNU General Public License as published by the Free Software
      7 -- Foundation; either version 3, or (at your option) any later version.
      8 --
      9 -- TALER is distributed in the hope that it will be useful, but WITHOUT ANY
     10 -- WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
     11 -- A PARTICULAR PURPOSE.  See the GNU General Public License for more details.
     12 --
     13 -- You should have received a copy of the GNU General Public License along with
     14 -- TALER; see the file COPYING.  If not, see <http://www.gnu.org/licenses/>
     15 --
     16 
     17 CREATE TABLE auditor_exchange_signkeys
     18   (row_id BIGINT GENERATED BY DEFAULT AS IDENTITY UNIQUE
     19   ,exchange_pub BYTEA PRIMARY KEY CHECK (LENGTH(exchange_pub)=32)
     20   ,master_sig BYTEA NOT NULL CHECK (LENGTH(master_sig)=64)
     21   ,ep_valid_from BIGINT NOT NULL
     22   ,ep_expire_sign BIGINT NOT NULL
     23   ,ep_expire_legal BIGINT NOT NULL
     24   );
     25 COMMENT ON TABLE auditor_exchange_signkeys
     26   IS 'list of the online signing keys of exchanges we are auditing';
     27 COMMENT ON COLUMN auditor_exchange_signkeys.exchange_pub
     28   IS 'Public online signing key of the exchange.';
     29 COMMENT ON COLUMN auditor_exchange_signkeys.master_sig
     30   IS 'Signature affirming the validity of the signing key of purpose TALER_SIGNATURE_MASTER_SIGNING_KEY_VALIDITY.';
     31 COMMENT ON COLUMN auditor_exchange_signkeys.ep_valid_from
     32   IS 'Time when this online signing key will first be used to sign messages.';
     33 COMMENT ON COLUMN auditor_exchange_signkeys.ep_expire_sign
     34   IS 'Time when this online signing key will no longer be used to sign.';
     35 COMMENT ON COLUMN auditor_exchange_signkeys.ep_expire_legal
     36   IS 'Time when this online signing key legally expires.';