From fb56cd9dda27cc809c828f569b7d06a1e190c2e5 Mon Sep 17 00:00:00 2001 From: swrup Date: Mon, 13 Oct 2025 02:00:42 +0200 Subject: [PATCH] + secmod --- src/config.ml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/src/config.ml b/src/config.ml index 4a7753ae..fa4fb746 100644 --- a/src/config.ml +++ b/src/config.ml @@ -338,6 +338,42 @@ module type Offline_signing = sig val secm_esign_pubkey : string option end +(* The following options must be in the section "[taler-exchange-secmod-{rsa|cs|eddsa}]". *) +module type Secmod = sig + (* + How long do we generate denomination and signing keys ahead of time? + *) + val lookahead_sign : duration + + (* + How much should validity periods for coins overlap? + Should be long enough to avoid problems with + wallets picking one key and then due to network latency + another key being valid. The ``DURATION_WITHDRAW`` period + must be longer than this value. + *) + val overlap_duration : duration + + (* + Where should the security module store its long-term private key? + *) + val sm_priv_key : file_path + + (* + Where should the security module store the private keys it manages? + *) + val key_dir : dir_path + + (* + On which path should the security module listen for signing requests? + *) + val unixpath : not_relevant +end + +module type Secmod_rsa = Secmod +module type Secmod_cs = Secmod +module type Secmod_eddsa = Secmod + (* -- ********************************** -- *) let currency = `Eur let currency_to_string = function `Eur -> "EUR"