exchange

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

commit 50f1df8a614bb42eb3295acdd5b7e2a3d6935310
parent 3e9a1fc66e4c8317a7d9012d36c5685682ec3c10
Author: Christian Grothoff <grothoff@gnunet.org>
Date:   Thu, 31 Aug 2023 00:12:44 +0200

reserve space for wallet_data_hash in schema

Diffstat:
Msrc/exchangedb/0002-deposits.sql | 8++++++++
1 file changed, 8 insertions(+), 0 deletions(-)

diff --git a/src/exchangedb/0002-deposits.sql b/src/exchangedb/0002-deposits.sql @@ -36,6 +36,8 @@ BEGIN ',wire_deadline INT8 NOT NULL' ',merchant_pub BYTEA NOT NULL CHECK (LENGTH(merchant_pub)=32)' ',h_contract_terms BYTEA NOT NULL CHECK (LENGTH(h_contract_terms)=64)' + ',wallet_data_hash BYTEA CHECK (LENGTH(wallet_data_hash)=64) DEFAULT NULL' + ',subcontract_id INT4 NOT NULL DEFAULT 0' ',coin_sig BYTEA NOT NULL CHECK (LENGTH(coin_sig)=64)' ',wire_salt BYTEA NOT NULL CHECK (LENGTH(wire_salt)=16)' ',wire_target_h_payto BYTEA CHECK (LENGTH(wire_target_h_payto)=32)' @@ -71,6 +73,12 @@ BEGIN ,partition_suffix ); PERFORM comment_partitioned_column( + 'hash over data provided by the wallet upon payment to select a more specific contract' + ,'wallet_data_hash' + ,table_name + ,partition_suffix + ); + PERFORM comment_partitioned_column( 'Salt used when hashing the payto://-URI to get the h_wire' ,'wire_salt' ,table_name