sim.conf (10591B)
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 # Stack configuration for the Android wallet simulator. Derived from 16 # merchant/src/testing/test_merchant_api.conf plus the libeufin-bank exchange 17 # account from exchange/src/testing/test_exchange_api.conf. 18 # 19 # Every BASE_URL is http://localhost:<port>/ on purpose: the driver maps the 20 # same ports into each emulator with "adb reverse", so one URL namespace is 21 # valid both on the host and inside the wallet. taler-unified-setup.sh is run 22 # with the run directory as CWD, so the relative TALER_TEST_HOME below lands 23 # there. Note that taler-unified-setup.sh *rewrites* MASTER_PUBLIC_KEY in the 24 # copy of this file it is given, so it is always run against a copy. 25 26 [PATHS] 27 TALER_TEST_HOME = home/ 28 DONAU_RUNTIME_DIR = ${TMPDIR:-${TMP:-/tmp}}/taler-sim/donau-runtime/ 29 30 [taler-helper-crypto-rsa] 31 LOOKAHEAD_SIGN = 10 days 32 33 [taler-helper-crypto-cs] 34 LOOKAHEAD_SIGN = 10 days 35 36 [taler-helper-crypto-eddsa] 37 LOOKAHEAD_SIGN = 24 days 38 DURATION = 14 days 39 40 [donau-helper-crypto-rsa] 41 LOOKAHEAD_SIGN = 10 days 42 43 # ---------------------------------------------------------------- exchange --- 44 45 [exchange] 46 # A purse must not outlive the denominations of the coins in it. 47 PURSE_EXPIRATION_LIMIT = 3 years 48 CURRENCY = EUR 49 CURRENCY_ROUND_UNIT = EUR:0.01 50 TINY_AMOUNT = EUR:0.01 51 PORT = 8081 52 SERVE = tcp 53 BASE_URL = "http://localhost:8081/" 54 # Two exchanges advertising one shopping URL each is the only way to 55 # reach ExchangeShoppingScreen: the balance card that opens it is 56 # hidden when the list is empty, and a single URL opens the browser 57 # instead of the screen (balances/BalancesPagerComposable.kt:331, 58 # main/MainScreen.kt:186). 59 SHOPPING_URL = http://localhost:8080/config?shop=one 60 MASTER_PUBLIC_KEY = KHA6YSPRQV1ZFCF144SY8KJNR588XA8DA0F6510FKJW30DJFJNAG 61 STEFAN_ABS = "EUR:5" 62 ENABLE_KYC = NO 63 # Without this the age-restricted denominations below are ignored and /keys 64 # advertises an age mask of 0. 65 AGE_RESTRICTION_ENABLED = YES 66 # The shipped TERMS_DIR is ${TALER_DATA_HOME}terms/, which in a test setup is 67 # an empty directory under TALER_TEST_HOME, so /terms answers "501 not 68 # configured" and the wallet never asks anyone to accept anything. Serving 69 # terms is what makes the terms-of-service screens -- and 70 # setExchangeTosAccepted -- reachable at all. 71 # 72 # The directory holds *rendered* terms, one subdirectory per language, not the 73 # .rst sources that ship with the exchange: stack.sh runs 74 # taler-terms-generator over them once. 75 TERMS_DIR = /opt/taler-sim/terms/ 76 TERMS_ETAG = exchange-tos-tops-v0 77 PRIVACY_DIR = /opt/taler-sim/terms/ 78 PRIVACY_ETAG = exchange-pp-v0 79 80 [exchangedb-postgres] 81 CONFIG = "postgres:///talersim" 82 83 # The account the exchange uses at the libeufin bank. Registered by 84 # taler-unified-setup.sh as user "exchange" with password "password". 85 [exchange-account-sim] 86 PAYTO_URI = "payto://x-taler-bank/localhost/exchange?receiver-name=Exchange" 87 ENABLE_DEBIT = YES 88 ENABLE_CREDIT = YES 89 90 [exchange-accountcredentials-sim] 91 WIRE_GATEWAY_AUTH_METHOD = basic 92 USERNAME = exchange 93 PASSWORD = password 94 WIRE_GATEWAY_URL = "http://localhost:8082/accounts/exchange/taler-wire-gateway/" 95 CORE_BANK_URL = "http://localhost:8082/accounts/exchange/" 96 97 [admin-accountcredentials-sim] 98 WIRE_GATEWAY_AUTH_METHOD = basic 99 USERNAME = exchange 100 PASSWORD = password 101 WIRE_GATEWAY_URL = "http://localhost:8082/accounts/exchange/taler-wire-gateway/" 102 103 # A second account for the same exchange, in IBAN form. The exchange then 104 # advertises two ways to be paid, which is what makes the wallet show its 105 # account picker and the IBAN transfer screens (EPC QR, Swiss QR bill) that the 106 # x-taler-bank form never reaches. Both point at the same libeufin account. 107 [exchange-account-iban] 108 PAYTO_URI = "payto://iban/SANDBOXX/DE89370400440532013000?receiver-name=Exchange+Company" 109 ENABLE_DEBIT = YES 110 ENABLE_CREDIT = YES 111 112 [exchange-accountcredentials-iban] 113 WIRE_GATEWAY_AUTH_METHOD = basic 114 USERNAME = exchange 115 PASSWORD = password 116 WIRE_GATEWAY_URL = "http://localhost:8082/accounts/exchange/taler-wire-gateway/" 117 CORE_BANK_URL = "http://localhost:8082/accounts/exchange/" 118 119 # ------------------------------------------------------------ libeufin bank --- 120 121 [libeufin-bank] 122 CURRENCY = EUR 123 WIRE_TYPE = x-taler-bank 124 X_TALER_BANK_PAYTO_HOSTNAME = localhost 125 # The simulator registers wallet-side customers itself, so registration and the 126 # registration bonus both have to be open. 127 ALLOW_REGISTRATION = YES 128 REGISTRATION_BONUS_ENABLED = yes 129 REGISTRATION_BONUS = EUR:100 130 DEFAULT_CUSTOMER_DEBT_LIMIT = EUR:200 131 DEFAULT_ADMIN_DEBT_LIMIT = EUR:2000 132 IBAN_PAYTO_BIC = SANDBOXX 133 SUGGESTED_WITHDRAWAL_EXCHANGE = http://localhost:8081/ 134 SERVE = tcp 135 PORT = 8082 136 # Cheap password hashing: the simulator creates throwaway accounts in bulk. 137 PWD_HASH_CONFIG = { "cost": 4 } 138 PWD_AUTH_COMPAT = yes 139 BASE_URL = http://localhost:8082/ 140 141 [libeufin-bankdb-postgres] 142 CONFIG = postgresql:///talersim 143 144 # ---------------------------------------------------------------- merchant --- 145 146 [merchant] 147 CURRENCY = EUR 148 PORT = 8080 149 SERVE = tcp 150 DB = postgres 151 BASE_URL = http://localhost:8080/ 152 153 [merchantdb-postgres] 154 CONFIG = postgres:///talersim 155 SQL_DIR = ${DATADIR}sql/ 156 157 [merchant-exchange-sim] 158 MASTER_KEY = KHA6YSPRQV1ZFCF144SY8KJNR588XA8DA0F6510FKJW30DJFJNAG 159 EXCHANGE_BASE_URL = http://localhost:8081/ 160 CURRENCY = EUR 161 162 # Disable the exchanges the shipped merchant config.d pulls in, so the merchant 163 # only ever talks to the simulator's exchange. 164 [merchant-exchange-chf] 165 DISABLED = YES 166 167 [merchant-exchange-kudos] 168 DISABLED = YES 169 170 # ------------------------------------------------------------------- donau --- 171 172 [donau] 173 TERMS_ETAG = tos 174 PRIVACY_ETAG = 0 175 CURRENCY = EUR 176 PORT = 8079 177 DB = postgres 178 LEGAL_DOMAIN = "Bern" 179 BASE_URL = "http://localhost:8079/" 180 SERVE = tcp 181 EXPIRE_IDLE_SLEEP_INTERVAL = "1 s" 182 EXPIRE_LEGAL_YEARS = 5 183 184 [donaudb-postgres] 185 CONFIG = "postgres:///talersim" 186 187 # ----------------------------------------------------------------- auditor --- 188 189 [auditor] 190 BASE_URL = "http://localhost:8083/" 191 PORT = 8083 192 SERVE = tcp 193 DB = postgres 194 TINY_AMOUNT = EUR:0.01 195 196 [auditordb-postgres] 197 CONFIG = postgres:///talersim 198 199 # ----------------------------------------------------------- denominations --- 200 # 201 # Taken from merchant/src/testing/test_merchant_api-rsa.conf: RSA with a 1024 202 # bit key size, because the simulator values fast key setup over strength. The 203 # age-restricted variants from exchange/src/testing/coins-rsa.conf are left out 204 # for now; they belong in a separate config variant. 205 206 [coin_eur_ct_1] 207 value = EUR:0.01 208 duration_withdraw = 7 days 209 duration_spend = 2 years 210 duration_legal = 3 years 211 fee_withdraw = EUR:0.00 212 fee_deposit = EUR:0.00 213 fee_refresh = EUR:0.01 214 fee_refund = EUR:0.01 215 rsa_keysize = 1024 216 CIPHER = RSA 217 218 [coin_eur_ct_10] 219 value = EUR:0.10 220 duration_withdraw = 7 days 221 duration_spend = 2 years 222 duration_legal = 3 years 223 fee_withdraw = EUR:0.01 224 fee_deposit = EUR:0.01 225 fee_refresh = EUR:0.03 226 fee_refund = EUR:0.01 227 rsa_keysize = 1024 228 CIPHER = RSA 229 230 [coin_eur_1] 231 value = EUR:1 232 duration_withdraw = 7 days 233 duration_spend = 2 years 234 duration_legal = 3 years 235 fee_withdraw = EUR:0.01 236 fee_deposit = EUR:0.01 237 fee_refresh = EUR:0.03 238 fee_refund = EUR:0.01 239 rsa_keysize = 1024 240 CIPHER = RSA 241 242 [coin_eur_5] 243 value = EUR:5 244 duration_withdraw = 7 days 245 duration_spend = 2 years 246 duration_legal = 3 years 247 fee_withdraw = EUR:0.01 248 fee_deposit = EUR:0.01 249 fee_refresh = EUR:0.03 250 fee_refund = EUR:0.01 251 rsa_keysize = 1024 252 CIPHER = RSA 253 254 [coin_eur_10] 255 value = EUR:10 256 duration_withdraw = 7 days 257 duration_spend = 2 years 258 duration_legal = 3 years 259 fee_withdraw = EUR:0.01 260 fee_deposit = EUR:0.01 261 fee_refresh = EUR:0.03 262 fee_refund = EUR:0.01 263 rsa_keysize = 1024 264 CIPHER = RSA 265 266 # Age-restricted denominations, so the withdrawal screen offers "Restrict 267 # usage to age" and the age-restriction paths in the wallet are reachable. 268 # Taken from exchange/src/testing/coins-rsa.conf. 269 270 [coin_eur_ct_10_age_restricted] 271 value = EUR:0.10 272 duration_withdraw = 7 days 273 duration_spend = 2 years 274 duration_legal = 3 years 275 fee_withdraw = EUR:0.01 276 fee_deposit = EUR:0.01 277 fee_refresh = EUR:0.03 278 fee_refund = EUR:0.01 279 rsa_keysize = 1024 280 age_restricted = YES 281 CIPHER = RSA 282 283 [coin_eur_1_age_restricted] 284 value = EUR:1 285 duration_withdraw = 7 days 286 duration_spend = 2 years 287 duration_legal = 3 years 288 fee_withdraw = EUR:0.01 289 fee_deposit = EUR:0.01 290 fee_refresh = EUR:0.03 291 fee_refund = EUR:0.01 292 rsa_keysize = 1024 293 age_restricted = YES 294 CIPHER = RSA 295 296 [coin_eur_5_age_restricted] 297 value = EUR:5 298 duration_withdraw = 7 days 299 duration_spend = 2 years 300 duration_legal = 3 years 301 fee_withdraw = EUR:0.01 302 fee_deposit = EUR:0.01 303 fee_refresh = EUR:0.03 304 fee_refund = EUR:0.01 305 rsa_keysize = 1024 306 age_restricted = YES 307 CIPHER = RSA 308 309 # Sections starting with "doco_" are the donau's denominations. 310 311 [doco_eur_ct_1] 312 value = EUR:0.01 313 duration_withdraw = 1 year 314 anchor_round = 1 year 315 duration_spend = 2 years 316 duration_legal = 3 years 317 fee_withdraw = EUR:0.00 318 fee_deposit = EUR:0.00 319 fee_refresh = EUR:0.01 320 fee_refund = EUR:0.01 321 CIPHER = RSA 322 rsa_keysize = 1024 323 324 [doco_eur_ct_10] 325 value = EUR:0.10 326 duration_withdraw = 1 year 327 anchor_round = 1 year 328 duration_spend = 2 years 329 duration_legal = 3 years 330 fee_withdraw = EUR:0.01 331 fee_deposit = EUR:0.01 332 fee_refresh = EUR:0.03 333 fee_refund = EUR:0.01 334 CIPHER = RSA 335 rsa_keysize = 1024 336 337 [doco_eur_1] 338 value = EUR:1 339 duration_withdraw = 1 year 340 anchor_round = 1 year 341 duration_spend = 2 years 342 duration_legal = 3 years 343 fee_withdraw = EUR:0.01 344 fee_deposit = EUR:0.01 345 fee_refresh = EUR:0.03 346 fee_refund = EUR:0.01 347 CIPHER = RSA 348 rsa_keysize = 1024 349 350 [doco_eur_5] 351 value = EUR:5 352 duration_withdraw = 1 year 353 anchor_round = 1 year 354 duration_spend = 2 years 355 duration_legal = 3 years 356 fee_withdraw = EUR:0.01 357 fee_deposit = EUR:0.01 358 fee_refresh = EUR:0.03 359 fee_refund = EUR:0.01 360 CIPHER = RSA 361 rsa_keysize = 1024 362 363 [doco_eur_10] 364 value = EUR:10 365 duration_withdraw = 1 year 366 anchor_round = 1 year 367 duration_spend = 2 years 368 duration_legal = 3 years 369 fee_withdraw = EUR:0.01 370 fee_deposit = EUR:0.01 371 fee_refresh = EUR:0.03 372 fee_refund = EUR:0.01 373 CIPHER = RSA 374 rsa_keysize = 1024