0002-auditor_denom_sigs.sql (1531B)
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 18 CREATE TABLE auditor_denom_sigs 19 (auditor_denom_serial BIGINT GENERATED BY DEFAULT AS IDENTITY UNIQUE 20 ,auditor_uuid INT8 NOT NULL REFERENCES auditors (auditor_uuid) ON DELETE CASCADE 21 ,denominations_serial INT8 NOT NULL REFERENCES denominations (denominations_serial) ON DELETE CASCADE 22 ,auditor_sig BYTEA CHECK (LENGTH(auditor_sig)=64) 23 ,PRIMARY KEY (denominations_serial, auditor_uuid) 24 ); 25 COMMENT ON TABLE auditor_denom_sigs 26 IS 'Table with auditor signatures on exchange denomination keys.'; 27 COMMENT ON COLUMN auditor_denom_sigs.auditor_uuid 28 IS 'Identifies the auditor.'; 29 COMMENT ON COLUMN auditor_denom_sigs.denominations_serial 30 IS 'Denomination the signature is for.'; 31 COMMENT ON COLUMN auditor_denom_sigs.auditor_sig 32 IS 'Signature of the auditor, of purpose TALER_SIGNATURE_AUDITOR_EXCHANGE_KEYS.';