taler-android

Android apps for GNU Taler (wallet, PoS, cashier)
Log | Files | Refs | README | LICENSE

sim-exchange2.conf (5894B)


      1 # This file is part of GNU Taler
      2 # (C) 2026 Taler Systems S.A.
      3 #
      4 # GNU Taler is free software; you can redistribute it and/or modify it under the
      5 # terms of the GNU General Public License as published by the Free Software
      6 # Foundation; either version 3, or (at your option) any later version.
      7 #
      8 # GNU Taler is distributed in the hope that it will be useful, but WITHOUT ANY
      9 # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
     10 # A PARTICULAR PURPOSE.  See the GNU General Public License for more details.
     11 #
     12 # You should have received a copy of the GNU General Public License along with
     13 # GNU Taler; see the file COPYING.  If not, see <http://www.gnu.org/licenses/>
     14 #
     15 # A second exchange, beside the one in sim.conf, in the same currency and at
     16 # the same libeufin bank.
     17 #
     18 # One exchange leaves a whole class of screens unreachable: the exchange picker
     19 # (`SelectExchangeDialogFragment`), the balance scopes that a second payment
     20 # service creates, "treat as global", and every "which payment service?" step
     21 # in withdraw, deposit and peer payments silently picks the only candidate.
     22 #
     23 # It is started by exchange2.sh as a separate taler-unified-setup.sh run
     24 # (services: exchange, wirewatch, aggregator, transfer), so everything here is
     25 # deliberately disjoint from sim.conf: its own port, database, bank account,
     26 # runtime directory for the secmod sockets and TALER_TEST_HOME -- which is
     27 # where its offline key lives, and therefore where its master key comes from.
     28 
     29 [PATHS]
     30 TALER_TEST_HOME = home/
     31 # The secmod helpers listen on unix sockets under this directory; sharing it
     32 # with the first exchange makes the two fight over the same socket names.
     33 TALER_RUNTIME_DIR = ${TMPDIR:-${TMP:-/tmp}}/taler-sim/exchange2-runtime/
     34 
     35 [taler-helper-crypto-rsa]
     36 LOOKAHEAD_SIGN = 10 days
     37 
     38 [taler-helper-crypto-cs]
     39 LOOKAHEAD_SIGN = 10 days
     40 
     41 [taler-helper-crypto-eddsa]
     42 LOOKAHEAD_SIGN = 24 days
     43 DURATION = 14 days
     44 
     45 [exchange]
     46 PURSE_EXPIRATION_LIMIT = 3 years
     47 CURRENCY = EUR
     48 CURRENCY_ROUND_UNIT = EUR:0.01
     49 TINY_AMOUNT = EUR:0.01
     50 PORT = 8091
     51 SERVE = tcp
     52 BASE_URL = "http://localhost:8091/"
     53 # Two exchanges advertising one shopping URL each is the only way to
     54 # reach ExchangeShoppingScreen: the balance card that opens it is
     55 # hidden when the list is empty, and a single URL opens the browser
     56 # instead of the screen (balances/BalancesPagerComposable.kt:331,
     57 # main/MainScreen.kt:186).
     58 SHOPPING_URL = http://localhost:8080/config?shop=two
     59 # Rewritten by taler-unified-setup.sh in the copy it is given.
     60 MASTER_PUBLIC_KEY = KHA6YSPRQV1ZFCF144SY8KJNR588XA8DA0F6510FKJW30DJFJNAG
     61 STEFAN_ABS = "EUR:5"
     62 ENABLE_KYC = NO
     63 AGE_RESTRICTION_ENABLED = YES
     64 # Same reason as in sim.conf: without this /terms answers "not configured".
     65 TERMS_DIR = /opt/taler-sim/terms/
     66 TERMS_ETAG = exchange-tos-tops-v0
     67 PRIVACY_DIR = /opt/taler-sim/terms/
     68 PRIVACY_ETAG = exchange-pp-v0
     69 
     70 [exchangedb-postgres]
     71 CONFIG = "postgres:///talersim2"
     72 
     73 # Its own account at the shared libeufin bank, registered by exchange2.sh.
     74 [exchange-account-sim2]
     75 PAYTO_URI = "payto://x-taler-bank/localhost/exchange2?receiver-name=Second+Exchange"
     76 ENABLE_DEBIT = YES
     77 ENABLE_CREDIT = YES
     78 
     79 [exchange-accountcredentials-sim2]
     80 WIRE_GATEWAY_AUTH_METHOD = basic
     81 USERNAME = exchange2
     82 PASSWORD = password2
     83 WIRE_GATEWAY_URL = "http://localhost:8082/accounts/exchange2/taler-wire-gateway/"
     84 CORE_BANK_URL = "http://localhost:8082/accounts/exchange2/"
     85 
     86 [admin-accountcredentials-sim2]
     87 WIRE_GATEWAY_AUTH_METHOD = basic
     88 USERNAME = exchange2
     89 PASSWORD = password2
     90 WIRE_GATEWAY_URL = "http://localhost:8082/accounts/exchange2/taler-wire-gateway/"
     91 
     92 # ----------------------------------------------------------- denominations ---
     93 
     94 [coin_eur_ct_1]
     95 value = EUR:0.01
     96 duration_withdraw = 7 days
     97 duration_spend = 2 years
     98 duration_legal = 3 years
     99 fee_withdraw = EUR:0.00
    100 fee_deposit = EUR:0.00
    101 fee_refresh = EUR:0.01
    102 fee_refund = EUR:0.01
    103 rsa_keysize = 1024
    104 CIPHER = RSA
    105 
    106 [coin_eur_ct_10]
    107 value = EUR:0.10
    108 duration_withdraw = 7 days
    109 duration_spend = 2 years
    110 duration_legal = 3 years
    111 fee_withdraw = EUR:0.01
    112 fee_deposit = EUR:0.01
    113 fee_refresh = EUR:0.03
    114 fee_refund = EUR:0.01
    115 rsa_keysize = 1024
    116 CIPHER = RSA
    117 
    118 [coin_eur_1]
    119 value = EUR:1
    120 duration_withdraw = 7 days
    121 duration_spend = 2 years
    122 duration_legal = 3 years
    123 fee_withdraw = EUR:0.01
    124 fee_deposit = EUR:0.01
    125 fee_refresh = EUR:0.03
    126 fee_refund = EUR:0.01
    127 rsa_keysize = 1024
    128 CIPHER = RSA
    129 
    130 [coin_eur_5]
    131 value = EUR:5
    132 duration_withdraw = 7 days
    133 duration_spend = 2 years
    134 duration_legal = 3 years
    135 fee_withdraw = EUR:0.01
    136 fee_deposit = EUR:0.01
    137 fee_refresh = EUR:0.03
    138 fee_refund = EUR:0.01
    139 rsa_keysize = 1024
    140 CIPHER = RSA
    141 
    142 [coin_eur_10]
    143 value = EUR:10
    144 duration_withdraw = 7 days
    145 duration_spend = 2 years
    146 duration_legal = 3 years
    147 fee_withdraw = EUR:0.01
    148 fee_deposit = EUR:0.01
    149 fee_refresh = EUR:0.03
    150 fee_refund = EUR:0.01
    151 rsa_keysize = 1024
    152 CIPHER = RSA
    153 
    154 # Age-restricted denominations, so the withdrawal screen offers "Restrict
    155 # usage to age" and the age-restriction paths in the wallet are reachable.
    156 # Taken from exchange/src/testing/coins-rsa.conf.
    157 
    158 [coin_eur_ct_10_age_restricted]
    159 value = EUR:0.10
    160 duration_withdraw = 7 days
    161 duration_spend = 2 years
    162 duration_legal = 3 years
    163 fee_withdraw = EUR:0.01
    164 fee_deposit = EUR:0.01
    165 fee_refresh = EUR:0.03
    166 fee_refund = EUR:0.01
    167 rsa_keysize = 1024
    168 age_restricted = YES
    169 CIPHER = RSA
    170 
    171 [coin_eur_1_age_restricted]
    172 value = EUR:1
    173 duration_withdraw = 7 days
    174 duration_spend = 2 years
    175 duration_legal = 3 years
    176 fee_withdraw = EUR:0.01
    177 fee_deposit = EUR:0.01
    178 fee_refresh = EUR:0.03
    179 fee_refund = EUR:0.01
    180 rsa_keysize = 1024
    181 age_restricted = YES
    182 CIPHER = RSA
    183 
    184 [coin_eur_5_age_restricted]
    185 value = EUR:5
    186 duration_withdraw = 7 days
    187 duration_spend = 2 years
    188 duration_legal = 3 years
    189 fee_withdraw = EUR:0.01
    190 fee_deposit = EUR:0.01
    191 fee_refresh = EUR:0.03
    192 fee_refund = EUR:0.01
    193 rsa_keysize = 1024
    194 age_restricted = YES
    195 CIPHER = RSA
    196 
    197 # Sections starting with "doco_" are the donau's denominations.