commit 7b0fa91b4dd7fd8edfebefea72afa1f7015b18c7
parent 3045c0f1cfb2953847b266cc3217cc43a33a708c
Author: Pius Loosli <loosp2@bfh.ch>
Date: Tue, 16 Jan 2024 15:10:45 +0100
[secmod] Add secmod-{eddsa,cs}.conf and currencies.conf configuration files
Diffstat:
4 files changed, 147 insertions(+), 6 deletions(-)
diff --git a/src/util/Makefile.am b/src/util/Makefile.am
@@ -10,13 +10,11 @@ endif
pkgcfgdir = $(prefix)/share/donau/config.d/
pkgcfg_DATA = \
- paths.conf
-# currencies.conf \
- #donau-secmod-eddsa.conf \
+ currencies.conf \
+ paths.conf \
+ donau-secmod-eddsa.conf \
donau-secmod-rsa.conf \
- donau-secmod-cs.conf
-
-
+ donau-secmod-cs.conf
lib_LTLIBRARIES = \
libdonauutil.la
diff --git a/src/util/currencies.conf b/src/util/currencies.conf
@@ -0,0 +1,89 @@
+[currency-euro]
+ENABLED = YES
+name = "Euro"
+code = "EUR"
+fractional_input_digits = 2
+fractional_normal_digits = 2
+fractional_trailing_zero_digits = 2
+alt_unit_names = {"0":"€"}
+
+[currency-swiss-francs]
+ENABLED = YES
+name = "Swiss Francs"
+code = "CHF"
+fractional_input_digits = 2
+fractional_normal_digits = 2
+fractional_trailing_zero_digits = 2
+alt_unit_names = {"0":"Fr.","-2":"Rp."}
+
+[currency-forint]
+ENABLED = NO
+name = "Hungarian Forint"
+code = "HUF"
+fractional_input_digits = 0
+fractional_normal_digits = 0
+fractional_trailing_zero_digits = 0
+alt_unit_names = {"0":"Ft"}
+
+[currency-us-dollar]
+ENABLED = NO
+name = "US Dollar"
+code = "USD"
+fractional_input_digits = 2
+fractional_normal_digits = 2
+fractional_trailing_zero_digits = 2
+alt_unit_names = {"0":"$"}
+
+[currency-kudos]
+ENABLED = YES
+name = "Kudos (Taler Demonstrator)"
+code = "KUDOS"
+fractional_input_digits = 2
+fractional_normal_digits = 2
+fractional_trailing_zero_digits = 2
+alt_unit_names = {"0":"ク"}
+
+[currency-testkudos]
+ENABLED = YES
+name = "Test-kudos (Taler Demonstrator)"
+code = "TESTKUDOS"
+fractional_input_digits = 2
+fractional_normal_digits = 2
+fractional_trailing_zero_digits = 2
+alt_unit_names = {"0":"テ","3":"kテ","-3":"mテ"}
+
+[currency-japanese-yen]
+ENABLED = NO
+name = "Japanese Yen"
+code = "JPY"
+fractional_input_digits = 2
+fractional_normal_digits = 0
+fractional_trailing_zero_digits = 2
+alt_unit_names = {"0":"¥"}
+
+[currency-bitcoin-mainnet]
+ENABLED = NO
+name = "Bitcoin (Mainnet)"
+code = "BITCOINBTC"
+fractional_input_digits = 8
+fractional_normal_digits = 3
+fractional_trailing_zero_digits = 0
+alt_unit_names = {"0":"BTC","-3":"mBTC"}
+
+[currency-ethereum]
+ENABLED = NO
+name = "WAI-ETHER (Ethereum)"
+code = "EthereumWAI"
+fractional_input_digits = 0
+fractional_normal_digits = 0
+fractional_trailing_zero_digits = 0
+alt_unit_names = {"0":"WAI","3":"KWAI","6":"MWAI","9":"GWAI","12":"Szabo","15":"Finney","18":"Ether","21":"KEther","24":"MEther"}
+
+[currency-netzbon]
+ENABLED=YES
+name=NetzBon
+code=NETZBON
+fractional_input_digits=2
+fractional_normal_digits=2
+fractional_trailing_zero_digits=2
+alt_unit_names = {"0":"NETZBON"}
diff --git a/src/util/donau-secmod-cs.conf b/src/util/donau-secmod-cs.conf
@@ -0,0 +1,26 @@
+[donau-secmod-cs]
+
+# How long should generated coins overlap in their validity
+# periods. 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.
+OVERLAP_DURATION = 5 m
+
+# Where do we store the generated private keys.
+KEY_DIR = ${DONAU_DATA_HOME}donau-secmod-cs/keys
+
+# Where does the helper listen for requests?
+UNIXPATH = ${DONAU_RUNTIME_DIR}donau-secmod-cs/server.sock
+
+# Directory for clients.
+CLIENT_DIR = ${DONAU_RUNTIME_DIR}donau-secmod-cs/clients
+
+# Where should the security module store its own private key?
+SM_PRIV_KEY = ${DONAU_DATA_HOME}donau-secmod-cs/secmod-private-key
+
+# For how long into the future do we pre-generate keys?
+LOOKAHEAD_SIGN = 2 year
+
+# Round down anchor key start date to multiples of this time.
+ANCHOR_ROUND = 1 year
+\ No newline at end of file
diff --git a/src/util/donau-secmod-eddsa.conf b/src/util/donau-secmod-eddsa.conf
@@ -0,0 +1,26 @@
+[donau-secmod-eddsa]
+
+# How long should generated coins overlap in their validity
+# periods. 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.
+OVERLAP_DURATION = 5m
+
+# Where do we store the generated private keys.
+KEY_DIR = ${DONAU_DATA_HOME}donau-secmod-eddsa/keys
+
+# Where does the helper listen for requests?
+UNIXPATH = ${DONAU_RUNTIME_DIR}donau-secmod-eddsa/server.sock
+
+# Directory for clients.
+CLIENT_DIR = ${DONAU_RUNTIME_DIR}donau-secmod-eddsa/clients
+
+# Where should the security module store its own private key?
+SM_PRIV_KEY = ${DONAU_DATA_HOME}donau-secmod-eddsa/secmod-private-key
+
+# For how long into the future do we pre-generate keys?
+LOOKAHEAD_SIGN = 2 year
+
+# Round down anchor key start date to multiples of this time.
+ANCHOR_ROUND = 1 year
+\ No newline at end of file