[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-sandcastle-ng] branch master updated: kyc
From: |
gnunet |
Subject: |
[taler-sandcastle-ng] branch master updated: kyc |
Date: |
Mon, 19 Aug 2024 15:01:45 +0200 |
This is an automated email from the git hooks/post-receive script.
dold pushed a commit to branch master
in repository sandcastle-ng.
The following commit(s) were added to refs/heads/master by this push:
new 5b3f9b9 kyc
5b3f9b9 is described below
commit 5b3f9b95db24cd763a8786aae57b7ab19b4ff499
Author: Florian Dold <florian@dold.me>
AuthorDate: Mon Aug 19 15:01:48 2024 +0200
kyc
---
scripts/demo/setup-sandcastle.sh | 41 ++++++++++++++++++++++++++++++++++++++++
1 file changed, 41 insertions(+)
diff --git a/scripts/demo/setup-sandcastle.sh b/scripts/demo/setup-sandcastle.sh
index c29a54a..6a98091 100755
--- a/scripts/demo/setup-sandcastle.sh
+++ b/scripts/demo/setup-sandcastle.sh
@@ -319,6 +319,47 @@ ENABLE_CREDIT = YES
@inline-secret@ exchange-accountcredentials-default
../secrets/exchange-accountcredentials-default.secret.conf
EOF
+##
+## Configure KYC if enabled
+##
+
+if [[ "${ENABLE_KYC:-0}" = 1 ]]; then
+# KYC config
+cat <<EOF > /etc/taler/conf.d/sandcastle-kyc.conf
+[exchange]
+enable_kyc = yes
+
+[kyc-rule-r1]
+OPERATION_TYPE = withdraw
+ENABLED = yes
+EXPOSED = yes
+IS_AND_COMBINATOR = YES
+THRESHOLD = $CURRENCY:10
+TIMEFRAME = 1h
+NEXT_MEASURES = m1
+
+[kyc-measure-m1]
+CHECK_NAME = c1
+CONTEXT = {}
+PROGRAM = p1
+
+[kyc-program-p1]
+COMMAND = /bin/true
+ENABLED = true
+DESCRIPTION = test p1
+FALLBACK = m1
+
+[kyc-check-c1]
+TYPE = FORM
+FORM_NAME = name_and_dob
+DESCRIPTION = name and date of birth
+FALLBACK = m1
+EOF
+
+else
+ rm -f /etc/taler/conf.d/sandcastle-kyc.conf
+fi
+
cat <<EOF >/etc/taler/secrets/exchange-db.secret.conf
[exchangedb-postgres]
CONFIG=postgres:///${EXCHANGE_DB}
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [taler-sandcastle-ng] branch master updated: kyc,
gnunet <=