summaryrefslogtreecommitdiff
path: root/texinfo/taler-developer-manual.texi
blob: 1d3336575fd04775957b297b645d036c5f49717a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
\input texinfo   @c -*-texinfo-*-
@c %**start of header
@setfilename taler-developer-manual.info
@documentencoding UTF-8
@ifinfo
@*Generated by Sphinx 5.3.0.@*
@end ifinfo
@settitle Taler Developer Manual
@defindex ge
@paragraphindent 0
@exampleindent 4
@finalout
@dircategory Network applications
@direntry
* GNU Taler Development: (taler-developer-manual.info). Manual for GNU Taler contributors
@end direntry

@c %**end of header

@copying
@quotation
GNU Taler 0.9.4, Apr 12, 2024

GNU Taler team

Copyright @copyright{} 2014-2024 Taler Systems SA (GPLv3+ or GFDL 1.3+)
@end quotation

@end copying

@titlepage
@title Taler Developer Manual
@insertcopying
@end titlepage
@contents

@c %** start of user preamble

@c %** end of user preamble

@ifnottex
@node Top
@top Taler Developer Manual
@insertcopying
@end ifnottex

@c %**start of body
@anchor{taler-developer-manual doc}@anchor{0}
@c This file is part of GNU TALER.
@c 
@c Copyright (C) 2014-2023 Taler Systems SA
@c 
@c TALER is free software; you can redistribute it and/or modify it under the
@c terms of the GNU Affero General Public License as published by the Free Software
@c Foundation; either version 2.1, or (at your option) any later version.
@c 
@c TALER is distributed in the hope that it will be useful, but WITHOUT ANY
@c WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
@c A PARTICULAR PURPOSE.  See the GNU Affero General Public License for more details.
@c 
@c You should have received a copy of the GNU Affero General Public License along with
@c TALER; see the file COPYING.  If not, see <http://www.gnu.org/licenses/>
@c 
@c @author Christian Grothoff

@cartouche
@quotation Note 
This manual contains information for developers working on GNU Taler
and related components.  It is not intended for a general audience.
@end quotation
@end cartouche

@menu
* Project Overview:: 
* Fundamentals:: 
* Debian and Ubuntu Repositories:: 
* Language-Specific Guidelines:: 
* Taler Deployment on gv.taler.net: Taler Deployment on gv taler net. 
* Demo Upgrade Procedure:: 
* Environments and Builders on taler.net: Environments and Builders on taler net. 
* QA Plans:: 
* Releases:: 
* Continuous integration:: 
* Internationalization:: 
* iOS Apps:: 
* Android Apps:: 
* Code Coverage:: 
* Coding Conventions:: 
* Testing library:: 
* User-Facing Terminology:: 
* Developer Glossary:: 
* Developer Tools:: 
* Index:: 

@end menu

@node Project Overview,Fundamentals,Top,Top
@anchor{taler-developer-manual developer-s-manual}@anchor{1}@anchor{taler-developer-manual project-overview}@anchor{2}
@chapter Project Overview


GNU Taler consists of a large (and growing) number of components
in various Git repositories.  The following list gives a first
overview:

@quotation


@itemize *

@item 
exchange: core payment processing logic with a REST API, plus various
helper processes for interaction with banks and cryptographic
computations. Also includes the logic for the auditor and an
in-memory “bank” API implementation for testing.

@item 
libeufin: implementation of the “bank” API using the EBICS protocol
used by banks in the EU.  Allows an exchange to interact with
European banks.

@item 
deploymerization: implementation of the “bank” API on top of
blockchains, specifically Bitcoin and Ethereum. Allows an exchange
to interact with crypto-currencies.

@item 
merchant: payment processing backend to be run by merchants,
offering a REST API.

@item 
wallet-core: platform-independent implementation of a wallet to be run by
normal users. Includes also the WebExtension for various browsers.
Furthermore, includes various single-page apps used by other
components (especially as libeufin and merchant).  Also includes
command-line wallet and tools for testing.

@item 
taler-android: Android Apps including the Android wallet, the
Android point-of-sale App and the Android casher app.

@item 
taler-ios: iOS wallet App.

@item 
sync: backup service, provides a simple REST API to allow users to
make encrypted backups of their wallet state.

@item 
anastasis: key escrow service, provides a simple REST API to allow
users to distribute encryption keys across multiple providers and
define authorization policies for key recovery.

@item 
taler-mdb: integration of Taler with the multi-drop-bus (MDB) API
used by vending machines. Allows Taler payments to be integrated
with vending machines.

@item 
gnu-taler-payment-for-woocommerce: payment plugin for the
woocommerce (wordpress) E-commerce solution.

@item 
twister: man-in-the-middle proxy for tests that require fuzzing a
REST/JSON protocol.  Used for some of our testing.

@item 
challenger: implementation of an OAuth 2.0 provider that can be used
to verify that a user can receive SMS or E-mail at particular addresses.
Used as part of KYC processes of the exchange.

@item 
taler-mailbox: messaging service used to store and forward payment
messages to Taler wallets.

@item 
taldir: directory service used to lookup Taler wallet addresses for
sending invoices or payments to other wallets.

@item 
taler-merchant-demos: various demonstration services operated at
‘demo.taler.net’, including a simple shop and a donation page.
@end itemize
@end quotation

There are other important repositories without code, including:

@quotation


@itemize *

@item 
gana: Hosted on git.gnunet.org, this repository defines various
constants used in the GNU Taler project.

@item 
docs: documentation, including this very document.

@item 
marketing: various presentations, papers and other resources for
outreach.

@item 
large-media: very large data objects, such as videos.

@item 
www: the taler.net website.
@end itemize
@end quotation

@node Fundamentals,Debian and Ubuntu Repositories,Project Overview,Top
@anchor{taler-developer-manual fundamentals}@anchor{3}
@chapter Fundamentals


@menu
* Versioning:: 
* Testing Tools:: 
* Manual Testing Database Reset:: 
* Bug Tracking:: 
* Code Repositories:: 
* Committing code:: 
* Observing changes:: 
* Communication:: 
* What to put in bootstrap:: 

@end menu

@node Versioning,Testing Tools,,Fundamentals
@anchor{taler-developer-manual versioning}@anchor{4}
@section Versioning


A central rule is to never break anything for any dependency. To accomplish
this, we use versioning, of the APIs, database schema and the protocol.  The
database versioning approach is described in the @ref{5,,Database schema versioning} section.  Here, we will focus on API and
protocol versioning.

The key issue we need to solve with protocols and APIs (and that does not
apply to database versioning) is being able to introduce and remove features
without requiring a flag day where all components must update at the same
time. For this, we use GNU libtool style versioning with MAJOR:REVISION:AGE
and `not' semantic versioning (SEMVER).  With GNU libtool style versioning,
first the REVISION should be increased on every change to the respective code.
Then, each time a feature is introduced or deprecated, the MAJOR and AGE
numbers are increased. Whenever an API is actually removed the AGE number is
reduced to match the distance since the removed API was deprecated.  Thus, if
some client implements version X of the protocol (including not using any APIs
that have been deprecated), it is compatible for any implementation where
MAJOR is larger or equal to X, and MAJOR minus AGE is smaller or equal to X.
REVISION is not used for expected compatibility issues and merely serves to
uniquely identify each version (in combination with MAJOR).

To evolve any implementation, it is thus critical to first of all never
just break an existing API or endpoint. The only acceptable modifications
are to return additional information (being aware of binary compatibility!)
or to accept additional optional arguments (again, in a way that does not
break existing users). Thus, the most common way to introduce changes will
be the addition of new endpoints. Breaking existing endpoints is only ever
at best acceptable while in the process of introducing it and if you are
absolutely sure that there are zero users in other components.

When removing endpoints (or fields being returned), you must first deprecate
the existing API (incrementing MAJOR and AGE) and then wait for all clients,
including all clients in operation (e.g. Android and iOS Apps, e-commerce
integrations, etc.) to upgrade to a protocol implementation above the
deprecated MAJOR revision. Only then you should remove the endpoint and reduce
AGE.

To document these changes, please try to use @code{@@since} annotations in the API
specifications to explain the MAJOR revision when a feature became available,
but most importantly use @code{@@deprecated X} annotations to indicate that an API
was deprecated and will be removed once MAJOR minus AGE is above X. When using
an API, use the @code{/config} endpoints to check for compatibility and show a
warning if the version(s) you support and the version(s) offered by the server
are incompatible.

@node Testing Tools,Manual Testing Database Reset,Versioning,Fundamentals
@anchor{taler-developer-manual testing-tools}@anchor{6}
@section Testing Tools


For full @code{make check} support, install these programs:


@itemize -

@item 
jq@footnote{https://github.com/stedolan/jq}

@item 
curl@footnote{http://curl.haxx.se}

@item 
faketime@footnote{https://github.com/wolfcw/libfaketime}
@end itemize

The @code{make check} should be able to function without them, but
their presence permits some tests to run that would otherwise be skipped.

@node Manual Testing Database Reset,Bug Tracking,Testing Tools,Fundamentals
@anchor{taler-developer-manual manual-testing-database-reset}@anchor{7}
@section Manual Testing Database Reset


Sometimes @code{make check} will fail with some kind of database (SQL)
error, perhaps with a message like @code{OBJECT does not exist} in the
@code{test-suite.log} file, where @code{OBJECT} is the name of a table or function.
In that case, it may be necessary to reset the @code{talercheck} database
with the commands:

@example
$ dropdb talercheck
$ createdb talercheck
@end example

This is because, at the moment, there is no support for
doing these steps automatically in the @code{make check} flow.

(If @code{make check} still fails after the reset, file a bug report as usual.)

@node Bug Tracking,Code Repositories,Manual Testing Database Reset,Fundamentals
@anchor{taler-developer-manual bug-tracking}@anchor{8}
@section Bug Tracking


Bug tracking is done with Mantis (@indicateurl{https://www.mantisbt.org/}).  The bug tracker
is available at @indicateurl{https://bugs.taler.net}. A registration on the Web site is
needed in order to use the bug tracker, only read access is granted without a
login.

@node Code Repositories,Committing code,Bug Tracking,Fundamentals
@anchor{taler-developer-manual code-repositories}@anchor{9}
@section Code Repositories


Taler code is versioned with Git. For those users without write access, all the
codebases are found at the following URL:

@example
git://git.taler.net/<repository>
@end example

A complete list of all the existing repositories is currently found at
@indicateurl{https://git.taler.net/}.

@node Committing code,Observing changes,Code Repositories,Fundamentals
@anchor{taler-developer-manual committing-code}@anchor{a}
@section Committing code


Before you can obtain Git write access, you must sign the copyright
agreement. As we collaborate closely with GNUnet, we use their
copyright agreement – with the understanding that your contributions
to GNU Taler are included in the assignment.  You can find the
agreement on the GNUnet site@footnote{https://gnunet.org/en/copyright.html}.
Please sign and mail it to Christian Grothoff as he currently collects
all the documents for GNUnet e.V.

To obtain Git access, you need to send us your SSH public key. Most core
team members have administrative Git access, so simply contact whoever
is your primary point of contact so far. You can
find instructions on how to generate an SSH key
in the Git book@footnote{https://git-scm.com/book/en/v2/Git-on-the-Server-Generating-Your-SSH-Public-Key}.
If you have been granted write access, you first of all must change the URL of
the respective repository to:

@example
ssh://git@@git.taler.net/<repository>
@end example

For an existing checkout, this can be done by editing the @code{.git/config} file.

The server is configured to reject all commits that have not been signed with
GnuPG. If you do not yet have a GnuPG key, you must create one, as explained
in the GNU Privacy Handbook@footnote{https://www.gnupg.org/gph/en/manual/c14.html}.
You do not need to share the respective public key with us to make commits.
However, we recommend that you upload it to key servers, put it on your
business card and personally meet with other GNU hackers to have it signed
such that others can verify your commits later.

To sign all commits, you should run

@example
$ git config --global commit.gpgsign true
@end example

You can also sign individual commits only by adding the @code{-S} option to the
@code{git commit} command. If you accidentally already made commits but forgot
to sign them, you can retroactively add signatures using:

@example
$ git rebase -S
@end example

Whether you commit to a personal branch (recommended: @code{dev/$USER/...}),
a feature branch or to @code{master} should
depend on your level of comfort and the nature of the change.  As a general
rule, the code in @code{master} must always build and tests should always pass, at
least on your own system. However, we all make mistakes and you should expect
to receive friendly reminders if your change did not live up to this simple
standard.  We plan to move to a system where the CI guarantees this invariant
in the future.

In order to keep a linear and clean commits history, we advise to avoid
merge commits and instead always rebase your changes before pushing to
the @code{master} branch.  If you commit and later find out that new commits were
pushed, the following command will pull the new commits and rebase yours
on top of them.

@example
# -S instructs Git to (re)sign your commits
$ git pull --rebase -S
@end example

@node Observing changes,Communication,Committing code,Fundamentals
@anchor{taler-developer-manual observing-changes}@anchor{b}
@section Observing changes


Every commit to the @code{master} branch of any of our public repositories
(and almost all are public) is automatically sent to the
@email{gnunet-svn@@gnu.org} mailinglist.  That list is for Git commits only,
and must not be used for discussions. It also carries commits from
our main dependencies, namely GNUnet and GNU libmicrohttpd.  While
it can be high volume, the lists is a good way to follow overall
development.

@node Communication,What to put in bootstrap,Observing changes,Fundamentals
@anchor{taler-developer-manual communication}@anchor{c}
@section Communication


For public discussions we use the @email{taler@@gnu.org} mailinglist.  All developers
should subscribe to the low-volume Taler mailinglist.  There are separate
low-volume mailinglists for gnunet-developers (@@gnu.org) and for libmicrohttpd
(@@gnu.org).  For internal discussions we use @indicateurl{https://mattermost.taler.net/}
(invitation only, but also achieved).

@node What to put in bootstrap,,Communication,Fundamentals
@anchor{taler-developer-manual what-to-put-in-bootstrap}@anchor{d}
@section What to put in bootstrap


Each repository has a @code{bootstrap} script, which contains commands for the
developer to run after a repository checkout (i.e., after @code{git clone} or
@code{git pull}).
Typically, this updates and initializes submodules, prepares the tool chain,
and runs @code{autoreconf}.
The last step generates the @code{configure} script, whether for immediate use or
for inclusion in the distribution tarball.

One common submodule is @code{contrib/gana}, which pulls from the
GNUnet GANA repository@footnote{https://git.gnunet.org/gana.git/}.
For example, in the
Taler exchange repository@footnote{https://git.taler.net/exchange.git},
the bootstrap script eventually runs the @code{git submodule update --init} command
early on, and later runs script @code{./contrib/gana-generate.sh}, which
generates files such as @code{src/include/taler_signatures.h}.

Thus, to update that file, you need to:


@itemize -

@item 
(in GANA repo) Find a suitable (unused) name and number for the Signature
Purposes database.

@item 
Add it to GANA, in @code{gnunet-signatures/registry.rec}.
(You can check for uniqueness with the @code{recfix} utility.)

@item 
Commit the change, and push it to the GANA Git repo.

@item 
(in Taler Repo) Run the @code{contrib/gana-latest.sh} script.

@item 
Bootstrap, configure, do @code{make install}, @code{make check}, etc.
(Basically, make sure the change does not break anything.)

@item 
Commit the submodule change, and push it to the Taler exchange Git repo.
@end itemize

A similar procedure is required for other databases in GANA.
See file @code{README} in the various directories for specific instructions.

@node Debian and Ubuntu Repositories,Language-Specific Guidelines,Fundamentals,Top
@anchor{taler-developer-manual debian-and-ubuntu-repositories}@anchor{e}
@chapter Debian and Ubuntu Repositories


We package our software for Debian and Ubuntu.

@menu
* Nightly Repositories:: 

@end menu

@node Nightly Repositories,,,Debian and Ubuntu Repositories
@anchor{taler-developer-manual nightly-repositories}@anchor{f}
@section Nightly Repositories


To try the latest, unstable and untested versions of packages,
you can add the nightly package sources.

@example
# For Ubuntu (focal-fossa)
$ echo "deb https://deb.taler.net/apt-nightly focal-taler-nightly main" > /etc/apt/sources.list.d/taler.list

# For Debian (bullseye)
$ echo "deb https://deb.taler.net/apt-nightly bullseye-taler-nightly main" > /etc/apt/sources.list.d/taler.list

# Both: Install signing key for nightly packages
$ wget -O - https://taler.net/taler-systems-nightly.gpg.key | apt-key add -
@end example

@node Language-Specific Guidelines,Taler Deployment on gv taler net,Debian and Ubuntu Repositories,Top
@anchor{taler-developer-manual language-specific-guidelines}@anchor{10}
@chapter Language-Specific Guidelines



@itemize *

@item 
Python Guidelines
@end itemize

@node Taler Deployment on gv taler net,Demo Upgrade Procedure,Language-Specific Guidelines,Top
@anchor{taler-developer-manual taler-deployment-on-gv-taler-net}@anchor{11}
@chapter Taler Deployment on gv.taler.net


This section describes the GNU Taler deployment on @code{gv.taler.net}.  @code{gv}
is our server at BFH. It hosts the Git repositories, Web sites, CI and other
services.  Developers can receive an SSH account and e-mail alias for the
system, you should contact Javier, Christian or Florian.  As with Git, ask
your primary team contact for shell access if you think you need it.

@menu
* DNS:: 
* User Acccounts:: 

@end menu

@node DNS,User Acccounts,,Taler Deployment on gv taler net
@anchor{taler-developer-manual dns}@anchor{12}
@section DNS


DNS records for taler.net are controlled by the GNU Taler maintainers,
specifically Christian and Florian, and our system administrator, Javier. If
you need a sub-domain to be added, please contact one of them.

@node User Acccounts,,DNS,Taler Deployment on gv taler net
@anchor{taler-developer-manual user-acccounts}@anchor{13}
@section User Acccounts


On @code{gv.taler.net}, there are four system users that are set up to
serve Taler on the Internet:


@itemize -

@item 
@code{taler-test}: serves @code{*.test.taler.net} and gets automatically
built by Buildbot.

@item 
@code{taler-internal}: serves @code{*.int.taler.net}, and does `NOT' get
automatically built.

@item 
@code{demo}: serves @code{*.demo.taler.net}.  Never automatically built.
@end itemize

@node Demo Upgrade Procedure,Environments and Builders on taler net,Taler Deployment on gv taler net,Top
@anchor{taler-developer-manual demo-upgrade-procedure}@anchor{14}
@chapter Demo Upgrade Procedure



@enumerate 

@item 
Login as the @code{demo} user on @code{gv.taler.net}.

@item 
Pull the latest @code{deployment.git} code.

@item 
Navigate to the @code{deployment.git/docker/demo} directory.

@item 
Refer to the README, or the smaller cheat sheet below.
@end enumerate

The deployment is based on rootless Docker, managed by the
SystemD unit in userspace: @code{docker.service}.  The running daemon
is reached by every Docker command at the address held into the
@code{DOCKER_HOST} environment variable.  Normally, it points to
@code{unix:///run/user/$(id -u)/docker.sock}.  Such variable is automatically
exported by @code{~/.bashrc}.

@cartouche
@quotation Note 
@quotation

Should the rootless Docker be installed, run the following command
or consult the official documentation@footnote{https://docs.docker.com/engine/security/rootless/}.
@end quotation

@example
$ curl -fsSL https://get.docker.com/rootless | sh
@end example
@end quotation
@end cartouche

Upgrading the @code{demo} environment should be done with care, and ideally be
coordinated on the mailing list before.  It is our goal for @code{demo} to always
run a “working version” that is compatible with various published wallets.
Please use the demo upgrade checklist to make
sure everything is working.
Nginx is already configured to reach the services as exported by
Docker Compose.

@menu
* Cheat sheet:: 
* Tagging components:: 
* GNU Taler Demo Upgrade Checklist:: 

@end menu

@node Cheat sheet,Tagging components,,Demo Upgrade Procedure
@anchor{taler-developer-manual cheat-sheet}@anchor{15}
@section Cheat sheet


All commands run from deployment.git/docker/demo.

@example
# Start services.
$ docker-compose start --remove-orphans -d

# Stop services.
$ docker-compose stop

# Build base image (without tags-file builds master)
$ ./build_base.sh images/base/Dockerfile [tags-file]

# Build all the services based on the latest base image
$ docker-compose build

# View live logs of the daemonized services.
$ docker-compose logs
@end example

@node Tagging components,GNU Taler Demo Upgrade Checklist,Cheat sheet,Demo Upgrade Procedure
@anchor{taler-developer-manual tagging-components}@anchor{16}
@section Tagging components


All Taler components must be tagged with git before they are deployed on the
@code{demo} environment, using a tag of the following form:

@example
demo-YYYY-MM-DD-SS
YYYY = year
MM = month
DD = day
SS = serial
@end example

@node GNU Taler Demo Upgrade Checklist,,Tagging components,Demo Upgrade Procedure
@anchor{taler-developer-manual gnu-taler-demo-upgrade-checklist}@anchor{17}
@section GNU Taler Demo Upgrade Checklist


@menu
* Domains:: 
* Post-upgrade checks:: 
* Wallets:: 
* Basics:: 
* Exchange AML SPA:: 
* Blog demo:: 
* Donation demo:: 
* Merchant SPA:: 
* P2P payments:: 
* Shutdown:: 

@end menu

@node Domains,Post-upgrade checks,,GNU Taler Demo Upgrade Checklist
@anchor{taler-developer-manual domains}@anchor{18}
@subsection Domains


The checklist uses the @code{demo.taler.net} domains.  However,
the same sandcastle demo can also be hosted at other domains.
The same instructions should apply.

@node Post-upgrade checks,Wallets,Domains,GNU Taler Demo Upgrade Checklist
@anchor{taler-developer-manual post-upgrade-checks}@anchor{19}
@subsection Post-upgrade checks



@itemize -

@item 
 Run the headless wallet to check that services are actually working:

@example
taler-wallet-cli api 'runIntegrationTestV2' '@{"exchangeBaseUrl":"https://exchange.demo.taler.net", "corebankApiBaseUrl": "https://bank.demo.taler.net", "merchantBaseUrl": "https://backend.demo.taler.net", "merchantAuthToken":"secret-token:sandbox"@}'
@end example
@end itemize

@node Wallets,Basics,Post-upgrade checks,GNU Taler Demo Upgrade Checklist
@anchor{taler-developer-manual wallets}@anchor{1a}
@subsection Wallets


We consider the following published wallets to be “production wallets”:


@itemize *

@item 
Browser: Firefox Add-On Store

@item 
Browser: Chrome Web Store

@item 
Android: Google Play

@item 
Android: F-Droid

@item 
iOS: Apple Store / Testflight
@end itemize

@node Basics,Exchange AML SPA,Wallets,GNU Taler Demo Upgrade Checklist
@anchor{taler-developer-manual basics}@anchor{1b}
@subsection Basics



@itemize -

@item 
 Visit @indicateurl{https://demo.taler.net/} to see if the landing page is displayed correctly

@item 
 landing language switcher

@item 
 Visit the wallet installation page, install the wallet

@item 
 see if the wallet presence indicator is updated correctly (in browsers).

@item 
 Visit @indicateurl{https://bank.demo.taler.net/}, register a new user

@item 
 bank language switcher

@item 
 bank logout

@item 
 bank login

@item 
 bank-integrated withdraw process, abort in bank

@item 
 transaction history: delete pending withdraw

@item 
 do bank-integrated withdraw process (5 KUDOS)

@item 
 do wallet-initiated withdraw process (5 KUDOS)

@item 
 withdraw process of large amount (20 KUDOS) runs into KYC check

@item 
 fail KYC check (if possible for the given setup)

@item 
 pass KYC check (tests that 2nd attempt is possible)

@item 
 withdraw process of very large amount (50 KUDOS) runs into AML check

@item 
 visit exchange SPA, create AML officer key

@item 
 register AML officer key with offline tool (if possible)

@item 
 allow withdraw process blocked on AML to proceed (if possible)
@end itemize

@node Exchange AML SPA,Blog demo,Basics,GNU Taler Demo Upgrade Checklist
@anchor{taler-developer-manual exchange-aml-spa}@anchor{1c}
@subsection Exchange AML SPA



@itemize -

@item 
 enter non-trivial form, change status to frozen

@item 
 check account status in history is now frozen and shows in that category

@item 
 enter another form, change status to normal, increase AML threshold

@item 
 view forms in history, view previously submitted form

@item 
 check account status in history is now normal and shows in that category

@item 
 log out

@item 
 check log in succeeds with correct password

@item 
 check log in fails from different browser with same password
@end itemize

@node Blog demo,Donation demo,Exchange AML SPA,GNU Taler Demo Upgrade Checklist
@anchor{taler-developer-manual blog-demo}@anchor{1d}
@subsection Blog demo



@itemize -

@item 
 Visit @indicateurl{https://shop.demo.taler.net/}

@item 
 blog page article list renders

@item 
 payment for blog article

@item 
 Verify that the balance in the wallet was updated correctly.

@item 
 Go back to @indicateurl{https://shop.demo.taler.net/} and click on the same article
link.  Verify that the article is shown and `no' repeated payment is
requested.

@item 
 Open the fulfillment page from the previous step in an anonymous browsing session
(without the wallet installed) and verify that it requests a payment again.

@item 
 Delete cookies on @indicateurl{https://shop.demo.taler.net/} and click on the same article again.
Verify that the wallet detects that the article has already purchased and successfully
redirects to the article without spending more money.

@item 
 payment for other blog article

@item 
 refund of 2nd blog article (button at the end)

@item 
 wallet transaction history rendering

@item 
 delete refund history entry; check original purchase entry was also deleted

@item 
 payment for other blog article

@item 
 refund of 3rd blog article (button at the end)

@item 
 wallet transaction history rendering

@item 
 delete 3rd block purchase history entry; check refund entry was also deleted
@end itemize

@node Donation demo,Merchant SPA,Blog demo,GNU Taler Demo Upgrade Checklist
@anchor{taler-developer-manual donation-demo}@anchor{1e}
@subsection Donation demo



@itemize -

@item 
 Reset wallet

@item 
 Withdraw age-restricted coins (< 14)

@item 
 Try to make a donation on @indicateurl{https://donations.demo.taler.net/}, fail due to age-restriction

@item 
 Withdraw age-restricted coins (>= 14)

@item 
 Make a donation on @indicateurl{https://donations.demo.taler.net/}

@item 
 Make another donation with the same parameters and verify
that the payment is requested again, instead of showing the previous
fulfillment page.
@end itemize

@node Merchant SPA,P2P payments,Donation demo,GNU Taler Demo Upgrade Checklist
@anchor{taler-developer-manual merchant-spa}@anchor{1f}
@subsection Merchant SPA



@itemize -

@item 
 test SPA loads

@item 
 try to login with wrong password

@item 
 try to login with correct password

@item 
 create instance, check default is set to cover (STEFAN) fees

@item 
 modify instance

@item 
 add bank account

@item 
 edit bank account

@item 
 remove bank account

@item 
 check order creation fails without bank account

@item 
 add bank account again

@item 
 add product with 1 in stock and preview image

@item 
 add “advanced” order with inventory product and a 2 minute wire delay

@item 
 claim order, check available stock goes down in inventory

@item 
 create 2nd order, check this fails due to missing inventory

@item 
 pay for 1st order with wallet

@item 
 check transaction history for preview image

@item 
 trigger partial refund

@item 
 accept refund with wallet

@item 
 create template with fixed summary, default editable price

@item 
 scan template QR code, edit price and pay

@item 
 add TOTP device (using some TOTP app to share secret with)

@item 
 edit template to add TOTP device, set price to fixed, summary to be entered

@item 
 scan template QR code, edit summary and pay

@item 
 check displayed TOTP code matches TOTP app

@item 
 do manual wire transfer in bank to establish reserve funding

@item 
 check that partially refunded order is marked as awaiting wire transfer

@item 
 check bank wired funds to merchant (if needed, wait)

@item 
 add bank wire transfer manually to backend

@item 
 change settings for merchant to not pay for (STEFAN) fees

@item 
 create and pay for another order with 1 minute wire transfer delay

@item 
 edit bank account details, adding revenue facade with credentials

@item 
 wait and check if wire transfer is automatically imported

@item 
 check that orders are marked as completed
@end itemize

@node P2P payments,Shutdown,Merchant SPA,GNU Taler Demo Upgrade Checklist
@anchor{taler-developer-manual p2p-payments}@anchor{20}
@subsection P2P payments



@itemize -

@item 
 generating push payment (to self is OK)

@item 
 accepting push payment (from self is OK)

@item 
 generating pull payment (to self is OK)

@item 
 accepting pull payment (from self is OK)

@item 
 sending money back from wallet to bank account

@item 
 wallet transaction history rendering

@item 
 delete history entry
@end itemize

@node Shutdown,,P2P payments,GNU Taler Demo Upgrade Checklist
@anchor{taler-developer-manual shutdown}@anchor{21}
@subsection Shutdown



@itemize -

@item 
 create two full wallets, fill one only via (a large) P2P transfer

@item 
 revoke highest-value denomination

@item 
 spend money in a wallet such that the balance falls below highest denomination value

@item 
 revoke all remaining denominations

@item 
 fail to spend any more money

@item 
 if wallet was filled via p2p payments, wallet asks for target deposit account (exchange going out of business)

@item 
 enter bank account (if possible)

@item 
 wallet balance goes to zero

@item 
 specified bank account receives remaining balance
@end itemize

@node Environments and Builders on taler net,QA Plans,Demo Upgrade Procedure,Top
@anchor{taler-developer-manual environments-and-builders-on-taler-net}@anchor{22}
@chapter Environments and Builders on taler.net


@menu
* Buildbot implementation:: 
* Test builder:: 
* Wallet builder:: 
* Documentation Builder:: 
* Website Builder:: 
* Code coverage:: 
* Producing auditor reports:: 
* Database schema versioning:: 

@end menu

@node Buildbot implementation,Test builder,,Environments and Builders on taler net
@anchor{taler-developer-manual buildbot-implementation}@anchor{23}
@section Buildbot implementation


GNU Taler uses a buildbot implementation (front end at @indicateurl{https://buildbot.taler.net}) to manage continuous integration.  Buildbot documentation is at @indicateurl{https://docs.buildbot.net/}.

Here are some highlights:


@itemize -

@item 
The WORKER is the config that that lives on a shell account on a localhost (taler.net), where this host has buildbot-worker installed.  The WORKER executes the commands that perform all end-functions of buildbot.

@item 
The WORKER running buildbot-worker receives these commands by authenticating and communicating with the buildbot server using parameters that were specified when the worker was created in that shell account with the @code{buildbot-worker} command.

@item 
The buildbot server’s master.cfg file contains FACTORY declarations which specify the commands that the WORKER will run on localhost.

@item 
The FACTORY is tied to the WORKER in master.cfg by a BUILDER.

@item 
The master.cfg also allows for SCHEDULER that defines how and when the BUILDER is executed.

@item 
Our master.cfg file is checked into git, and then periodically updated on a particular account on taler.net (ask Christian for access if needed).  Do not edit this file directly/locally on taler.net, but check changes into Git.
@end itemize

Best Practices:


@itemize -

@item 
When creating a new WORKER in the @code{master.cfg} file, leave a comment specifying the server and user account that this WORKER is called from.  (At this time, taler.net is the only server used by this implementation, but it’s still good practice.)

@item 
Create a worker from a shell account with this command: @code{buildbot-worker create-worker <workername> localhost <username> <password>}
@end itemize

Then make sure there is a WORKER defined in master.cfg like: @code{worker.Worker("<username>", "<password>")}

@node Test builder,Wallet builder,Buildbot implementation,Environments and Builders on taler net
@anchor{taler-developer-manual test-builder}@anchor{24}
@section Test builder


This builder (@code{test-builder}) compiles and starts every Taler component.
The associated worker is run by the @code{taler-test} Gv user, via the SystemD
unit @code{buildbot-worker-taler}.  The following commands start/stop/restart
the worker:

@example
systemctl --user start buildbot-worker-taler
systemctl --user stop buildbot-worker-taler
systemctl --user restart buildbot-worker-taler
@end example

@cartouche
@quotation Note 
the mentioned unit file can be found at @code{deployment.git/systemd-services/}
@end quotation
@end cartouche

@node Wallet builder,Documentation Builder,Test builder,Environments and Builders on taler net
@anchor{taler-developer-manual wallet-builder}@anchor{25}
@section Wallet builder


This builder (@code{wallet-builder}) compiles every Taler component
and runs the wallet integration tests.  The associated worker is
run by the @code{walletbuilder} Gv user, via the SystemD unit @code{buildbot-worker-wallet}.
The following commands start/stop/restart the worker:

@example
systemctl --user start buildbot-worker-wallet
systemctl --user stop buildbot-worker-wallet
systemctl --user restart buildbot-worker-wallet
@end example

@cartouche
@quotation Note 
the mentioned unit file can be found at @code{deployment.git/systemd-services/}
@end quotation
@end cartouche

@node Documentation Builder,Website Builder,Wallet builder,Environments and Builders on taler net
@anchor{taler-developer-manual documentation-builder}@anchor{26}
@section Documentation Builder


All the Taler documentation is built by the user @code{docbuilder} that
runs a Buildbot worker.  The following commands set the @code{docbuilder} up,
starting with an empty home directory.

@example
# Log-in as the 'docbuilder' user.

$ cd $HOME
$ git clone git://git.taler.net/deployment
$ ./deployment/bootstrap-docbuilder

# If the previous step worked, the setup is
# complete and the Buildbot worker can be started.

$ buildbot-worker start worker/
@end example

@node Website Builder,Code coverage,Documentation Builder,Environments and Builders on taler net
@anchor{taler-developer-manual website-builder}@anchor{27}
@section Website Builder


Taler Websites, @code{www.taler.net} and @code{stage.taler.net}, are built by the
user @code{taler-websites} by the means of a Buildbot worker.  The following
commands set the @code{taler-websites} up, starting with an empty home directory.

@example
# Log-in as the 'taler-websites' user.

$ cd $HOME
$ git clone git://git.taler.net/deployment
$ ./deployment/bootstrap-sitesbuilder

# If the previous step worked, the setup is
# complete and the Buildbot worker can be started.

$ buildbot-worker start worker/
@end example

@node Code coverage,Producing auditor reports,Website Builder,Environments and Builders on taler net
@anchor{taler-developer-manual code-coverage}@anchor{28}
@section Code coverage


Code coverage tests are run by the @code{lcovworker} user, and are also driven
by Buildbot.

@example
# Log-in as the 'lcovworker' user.

$ cd $HOME
$ git clone git://git.taler.net/deployment
$ ./deployment/bootstrap-taler lcov

# If the previous step worked, the setup is
# complete and the Buildbot worker can be started.

$ buildbot-worker start worker/
@end example

The results are then published at @code{https://lcov.taler.net/}.

@node Producing auditor reports,Database schema versioning,Code coverage,Environments and Builders on taler net
@anchor{taler-developer-manual producing-auditor-reports}@anchor{29}
@section Producing auditor reports


Both ‘test’ and ‘demo’ setups get their auditor reports compiled
by a Buildbot worker.  The following steps get the reports compiler
prepared.

@example
# Log-in as <env>-auditor, with <env> being either 'test' or 'demo'

$ git clone git://git.taler.net/deployment
$ ./deployment/buildbot/bootstrap-scripts/prepare-auditorreporter <env>

# If the previous steps worked, then it should suffice to start
# the worker, with:

$ buildbot-worker start worker/
@end example

@node Database schema versioning,,Producing auditor reports,Environments and Builders on taler net
@anchor{taler-developer-manual database-schema-versioning}@anchor{2a}@anchor{taler-developer-manual databaseversioning}@anchor{5}
@section Database schema versioning


The PostgreSQL databases of the exchange and the auditor are versioned.
See the @code{versioning.sql} file in the respective directory for documentation.

Every set of changes to the database schema must be stored in a new
versioned SQL script. The scripts must have contiguous numbers. After
any release (or version being deployed to a production or staging
environment), existing scripts MUST be immutable.

Developers and operators MUST NOT make changes to database schema
outside of this versioning.  All tables of a GNU Taler component should live in their own schema.

@node QA Plans,Releases,Environments and Builders on taler net,Top
@anchor{taler-developer-manual qa-plans}@anchor{2b}
@chapter QA Plans


@menu
* Taler 0.9.4 QA Plan: Taler 0 9 4 QA Plan. 

@end menu

@node Taler 0 9 4 QA Plan,,,QA Plans
@anchor{taler-developer-manual taler-0-9-4-qa-plan}@anchor{2c}
@section Taler 0.9.4 QA Plan


@menu
* Wallet Platforms:: 
* Running Deployments:: 
* Wallet Flows:: 
* libeufin-bank Flows:: 
* Merchant Backend SPA Flows:: 
* Regio Deployment:: 
* Android Merchant PoS:: 
* Android Cashier App:: 
* CI:: 
* Debian Repository:: 
* GNU Release:: 

@end menu

@node Wallet Platforms,Running Deployments,,Taler 0 9 4 QA Plan
@anchor{taler-developer-manual wallet-platforms}@anchor{2d}
@subsection Wallet Platforms


Platforms listed here are the officially supported platforms for this release.


@itemize *

@item 
Overview / Installation Page


@itemize *

@item 
@indicateurl{https://taler.net/en/wallet.html}
@end itemize

@item 
Android


@itemize *

@item 
Google Play: @indicateurl{https://play.google.com/store/apps/details?id=net.taler.wallet}

@item 
F-Droid: @indicateurl{https://f-droid.org/en/packages/net.taler.wallet.fdroid/}

@item 
APK Download: TBD
@end itemize

@item 
Browser


@itemize *

@item 
Chrome: @indicateurl{https://chromewebstore.google.com/detail/gnu-taler-wallet/millncjiddlpgdmkklmhfadpacifaonc}

@item 
Firefox: @indicateurl{https://addons.mozilla.org/en-US/firefox/addon/taler-wallet/}
@end itemize

@item 
iOS
@end itemize

@node Running Deployments,Wallet Flows,Wallet Platforms,Taler 0 9 4 QA Plan
@anchor{taler-developer-manual running-deployments}@anchor{2e}
@subsection Running Deployments


These deployments are maintained by us and should work for the release:


@itemize *

@item 
Sandcastle-based:


@itemize *

@item 
demo.taler.net

@item 
test.taler.net
@end itemize

@item 
Regio-based:


@itemize *

@item 
regio-taler.fdold.eu
@end itemize
@end itemize

@node Wallet Flows,libeufin-bank Flows,Running Deployments,Taler 0 9 4 QA Plan
@anchor{taler-developer-manual wallet-flows}@anchor{2f}
@subsection Wallet Flows



@itemize *

@item 
Bank-integrated withdrawal


@itemize *

@item 
webext: “Continue with Mobile Wallet” flow
@end itemize

@item 
Manual withdrawal


@itemize *

@item 
@code{taler://withdraw-exchange} flow

@item 
Currency conversion withdrawal
@end itemize

@item 
Peer push payments (“Send Money”)

@item 
Peer pull payments (“Receive Money”)

@item 
Deposit into bank account


@itemize *

@item 
Check that deposit arrived
@end itemize

@item 
Payment at merchant


@itemize *

@item 
on blog merchant

@item 
on survey

@item 
directly initiated via merchant SPA

@item 
webext: “Pay with Mobile Wallet” flow
@end itemize

@item 
Pay templates


@itemize *

@item 
Payment TOTP codes
@end itemize

@item 
Exchange management


@itemize *

@item 
Reloading exchange keys

@item 
Deleting an exchange
@end itemize
@end itemize

@node libeufin-bank Flows,Merchant Backend SPA Flows,Wallet Flows,Taler 0 9 4 QA Plan
@anchor{taler-developer-manual libeufin-bank-flows}@anchor{30}
@subsection libeufin-bank Flows



@itemize *

@item 
Admin functionality


@itemize *

@item 
Login

@item 
Credential change

@item 
Conversion settings

@item 
Bank account creation

@item 
Test transfers
@end itemize

@item 
Normal account functionality


@itemize *

@item 
Transfers


@itemize *

@item 
Transfer to the exchange should bounce
@end itemize

@item 
Withdrawals

@item 
(conversion-only): Test cash-in

@item 
(conversion-only): Test cash-out


@itemize *

@item 
Lower cash-out limit enforced
@end itemize

@item 
2FA for withdrawals, cash-out
@end itemize
@end itemize

@node Merchant Backend SPA Flows,Regio Deployment,libeufin-bank Flows,Taler 0 9 4 QA Plan
@anchor{taler-developer-manual merchant-backend-spa-flows}@anchor{31}
@subsection Merchant Backend SPA Flows



@itemize *

@item 
Instance creation

@item 
Simple bank account setup

@item 
Order creation


@itemize *

@item 
Pay order (with short wire transfer deadline)

@item 
Check that money from order arrive at the bank with the right subject
@end itemize

@item 
Extended bank account setup


@itemize *

@item 
Add Taler Bank Revenue API

@item 
Check bank transfer list (for wire transfer of previously paid+wired order)

@item 
Check order payment status goes to “final” automatically
@end itemize

@item 
TOTP Device Management


@itemize *

@item 
Add device

@item 
Edit device (set new secret, export new secret as QR code)

@item 
Delete device
@end itemize

@item 
Templates


@itemize *

@item 
Add template

@item 
Edit template

@item 
Add TOTP device to template

@item 
Edit TOTP device associated with template

@item 
Pay template

@item 
Check TOTP code matches

@item 
Remove TOTP device from template

@item 
Delete template
@end itemize
@end itemize

@node Regio Deployment,Android Merchant PoS,Merchant Backend SPA Flows,Taler 0 9 4 QA Plan
@anchor{taler-developer-manual regio-deployment}@anchor{32}
@subsection Regio Deployment



@itemize *

@item 
Deployment Automation (deployment.git/regional-currency)


@itemize *

@item 
Test with Debian bookworm

@item 
Test with Ubuntu mantic

@item 
Check logs for errors

@item 
Test with telesign (SMS)

@item 
Set up EBICS integration

@item 
Check that ToS is configured
@end itemize

@item 
Deployment Functionality


@itemize *

@item 
All flows of the wallet should work (see @code{Wallet Flows} above)

@item 
All flows of libeufin-bank should work (see @code{libeufin-bank Flows} above)

@item 
Merchant backend should work (see @code{Merchant Backend SPA Flows} above)

@item 
Check logs
@end itemize
@end itemize

@node Android Merchant PoS,Android Cashier App,Regio Deployment,Taler 0 9 4 QA Plan
@anchor{taler-developer-manual android-merchant-pos}@anchor{33}
@subsection Android Merchant PoS



@itemize *

@item 
Test against demo.taler.net
@end itemize

@node Android Cashier App,CI,Android Merchant PoS,Taler 0 9 4 QA Plan
@anchor{taler-developer-manual android-cashier-app}@anchor{34}
@subsection Android Cashier App



@itemize *

@item 
Test against demo.taler.net
@end itemize

@node CI,Debian Repository,Android Cashier App,Taler 0 9 4 QA Plan
@anchor{taler-developer-manual ci}@anchor{35}
@subsection CI



@itemize *

@item 
@indicateurl{https://buildbot.taler.net/#/waterfall}

@item 
CI should pass
@end itemize

@node Debian Repository,GNU Release,CI,Taler 0 9 4 QA Plan
@anchor{taler-developer-manual debian-repository}@anchor{36}
@subsection Debian Repository



@itemize *

@item 
Debian


@itemize *

@item 
repo at @indicateurl{https://deb.taler.net/apt/debian/}

@item 
supported codename(s): bookworm
@end itemize

@item 
Ubuntu:


@itemize *

@item 
repo at @indicateurl{https://deb.taler.net/apt/ubuntu/}

@item 
supported codename(s): mantic
@end itemize
@end itemize

@node GNU Release,,Debian Repository,Taler 0 9 4 QA Plan
@anchor{taler-developer-manual gnu-release}@anchor{37}
@subsection GNU Release



@itemize *

@item 
Release announcement

@item 
FTP upload
@end itemize

@node Releases,Continuous integration,QA Plans,Top
@anchor{taler-developer-manual releases}@anchor{38}
@chapter Releases


@menu
* GNU Taler Release Checklist:: 
* Release Process:: 
* Tagging:: 
* Database for tests:: 
* Exchange@comma{} merchant: Exchange merchant. 
* Wallet WebExtension:: 
* Upload to GNU mirrors:: 
* Creating Debian packages:: 

@end menu

@node GNU Taler Release Checklist,Release Process,,Releases
@anchor{taler-developer-manual gnu-taler-release-checklist}@anchor{39}
@section GNU Taler Release Checklist


For exchange:


@itemize -

@item 
 no compiler warnings at “-Wall” with gcc

@item 
 no compiler warnings at “-Wall” with clang

@item 
 ensure Coverity static analysis passes

@item 
 make check.

@item 
 make dist, make check on result of ‘make dist’.

@item 
 Change version number in configure.ac.

@item 
 update man pages / info page documentation (prebuilt branch)

@item 
 make dist for release

@item 
 verify dist builds from source

@item 
 upgrade ‘demo.taler.net’

@item 
 run demo upgrade checklist

@item 
 tag repo.

@item 
 use ‘deployment.git/packaging/*-docker/’ to build Debian and Ubuntu packages

@item 
 upload packages to ‘deb.taler.net’ (note: only Florian/Christian can sign)

@item 
 change ‘demo.taler.net’ deployment to use new tag.

@item 
 Upload triplet to ftp-upload.gnu.org/incoming/ftp or /incoming/alpha
@end itemize

For merchant (C backend):


@itemize -

@item 
 no compiler warnings at “-Wall” with gcc

@item 
 no compiler warnings at “-Wall” with clang

@item 
 ensure Coverity static analysis passes

@item 
 make check.

@item 
 make dist, make check on result of ‘make dist’.

@item 
 update SPA (prebuilt branch)

@item 
 Change version number in configure.ac.

@item 
 make dist for release.

@item 
 verify dist builds from source

@item 
 upgrade ‘demo.taler.net’

@item 
 run demo upgrade checklist

@item 
 tag repo.

@item 
 use ‘deployment.git/packaging/*-docker/’ to build Debian and Ubuntu packages

@item 
 upload packages to ‘deb.taler.net’ (note: only Florian/Christian can sign)

@item 
 change ‘demo.taler.net’ deployment to use new tag.

@item 
 Upload triplet to ftp-upload.gnu.org/incoming/ftp or /incoming/alpha
@end itemize

For sync:


@itemize -

@item 
 no compiler warnings at “-Wall” with gcc

@item 
 no compiler warnings at “-Wall” with clang

@item 
 ensure Coverity static analysis passes

@item 
 make check.

@item 
 make dist, make check on result of ‘make dist’.

@item 
 Change version number in configure.ac.

@item 
 make dist for release

@item 
 verify dist builds from source

@item 
 upgrade ‘demo.taler.net’

@item 
 run demo upgrade checklist

@item 
 tag repo.

@item 
 use ‘deployment.git/packaging/*-docker/’ to build Debian and Ubuntu packages

@item 
 upload packages to ‘deb.taler.net’ (note: only Florian/Christian can sign)

@item 
 change ‘demo.taler.net’ deployment to use new tag.

@item 
 Upload triplet to ftp-upload.gnu.org/incoming/ftp or /incoming/alpha
@end itemize

For taler-mdb:


@itemize -

@item 
 no compiler warnings at “-Wall” with gcc

@item 
 ensure Coverity static analysis passes

@item 
 Change version number in configure.ac.

@item 
 make dist for release.

@item 
 tag repo.

@item 
 use ‘deployment.git/packaging/*-docker/’ to build Debian and Ubuntu packages

@item 
 upload packages to ‘deb.taler.net’ (note: only Florian/Christian can sign)

@item 
 Upload triplet to ftp-upload.gnu.org/incoming/ftp or /incoming/alpha
@end itemize

For taler-twister:


@itemize -

@item 
 no compiler warnings at “-Wall” with gcc

@item 
 no compiler warnings at “-Wall” with clang

@item 
 ensure Coverity static analysis passes

@item 
 make check.

@item 
 make dist, make check on result of ‘make dist’.

@item 
 Change version number in configure.ac.

@item 
 make dist for release.

@item 
 verify dist builds from source

@item 
 upgrade ‘demo.taler.net’

@item 
 run demo upgrade checklist

@item 
 tag repo.

@item 
 Upload triplet to ftp-upload.gnu.org/incoming/ftp or /incoming/alpha
@end itemize

For libeufin:


@itemize -

@item 
 update SPA of bank

@item 
 build libeufin

@item 
 upgrade ‘demo.taler.net’

@item 
 run demo upgrade checklist

@item 
 make dist for release.

@item 
 verify dist builds from source

@item 
 tag repo.

@item 
 use ‘deployment.git/packaging/*-docker/’ to build Debian and Ubuntu packages

@item 
 upload packages to ‘deb.taler.net’ (note: only Florian/Christian can sign)

@item 
 change ‘demo.taler.net’ deployment to use new tag.

@item 
 Upload triplet to ftp-upload.gnu.org/incoming/ftp or /incoming/alpha
@end itemize

For Python merchant frontend:


@itemize -

@item 
 upgrade ‘demo.taler.net’

@item 
 run demo upgrade checklist

@item 
 change ‘demo.taler.net’ deployment to use new tag.
@end itemize

Wallet-core:


@itemize -

@item 
 build wallet

@item 
 run integration test

@item 
 make dist for release.

@item 
 verify dist builds from source

@item 
 tag repo.

@item 
 use ‘deployment.git/packaging/*-docker/’ to build Debian and Ubuntu packages

@item 
 upload packages to ‘deb.taler.net’ (note: only Florian/Christian can sign)

@item 
 change ‘demo.taler.net’ deployment to use new tag.

@item 
 Upload triplet to ftp-upload.gnu.org/incoming/ftp or /incoming/alpha
@end itemize

Android-Wallet:


@itemize -

@item 
 build wallet

@item 
 run demo upgrade checklist

@item 
 tag repo.

@item 
 upload new wallet release to app store
@end itemize

Webextension-Wallet:


@itemize -

@item 
 build wallet

@item 
 run demo upgrade checklist

@item 
 tag repo.

@item 
 upload new wallet release to app store
@end itemize

Release announcement:


@itemize -

@item 
 Update bug tracker (mark release, resolved -> closed)

@item 
 Send announcement to @email{taler@@gnu.org}

@item 
 Send announcement to @email{info-gnu@@gnu.org} (major releases only)

@item 
 Send announcement to @email{coordinator@@translationproject.org}
@end itemize

@node Release Process,Tagging,GNU Taler Release Checklist,Releases
@anchor{taler-developer-manual release-process}@anchor{3a}
@section Release Process


This document describes the process for releasing a new version of the
various Taler components to the official GNU mirrors.

The following components are published on the GNU mirrors


@itemize -

@item 
taler-exchange (exchange.git)

@item 
taler-merchant (merchant.git)

@item 
sync (sync.git)

@item 
taler-mdb (taler-mdb.git)

@item 
libeufin (libeufin.git)

@item 
challenger (challenger.git)

@item 
wallet-core (wallet-core.git)
@end itemize

@node Tagging,Database for tests,Release Process,Releases
@anchor{taler-developer-manual tagging}@anchor{3b}
@section Tagging


Tag releases with an `annotated' commit, like

@example
$ git tag -a v0.1.0 -m "Official release v0.1.0"
$ git push origin v0.1.0
@end example

@node Database for tests,Exchange merchant,Tagging,Releases
@anchor{taler-developer-manual database-for-tests}@anchor{3c}
@section Database for tests


For tests in the exchange and merchant to run, make sure that a database
`talercheck' is accessible by `$USER'. Otherwise tests involving the
database logic are skipped.

@cartouche
@quotation Note 
Taler may store sensitive business and customer data in the database.  Any
operator SHOULD thus ensure that backup operations are encrypted and
secured from unauthorized access.
@end quotation
@end cartouche

@node Exchange merchant,Wallet WebExtension,Database for tests,Releases
@anchor{taler-developer-manual exchange-merchant}@anchor{3d}
@section Exchange, merchant


Set the version in @code{configure.ac}. The commit being tagged should be
the change of the version.

Tag the current GANA version that works with the exchange and merchant and
checkout that tag of gana.git (instead of master). Otherwise, if there are
incompatible changes in GANA (like removed symbols), old builds could break.

Update the Texinfo documentation using the files from docs.git:

@example
# Get the latest documentation repository
$ cd $GIT/docs
$ git pull
$ make texinfo
# The *.texi files are now in _build/texinfo
#
# This checks out the prebuilt branch in the prebuilt directory
$ git worktree add prebuilt prebuilt
$ cd prebuilt
# Copy the pre-built documentation into the prebuilt directory
$ cp -r ../_build/texinfo .
# Push and commit to branch
$ git commit -a -S -m "updating texinfo"
$ git status
# Verify that all files that should be tracked are tracked,
# new files will have to be added to the Makefile.am in
# exchange.git as well!
$ git push
# Remember $REVISION of commit
#
# Go to exchange
$ cd $GIT/exchange/doc/prebuilt
# Update submodule to point to latest commit
$ git checkout $REVISION
@end example

Finally, the Automake @code{Makefile.am} files may have to be adjusted to
include new @code{*.texi} files or images.

For bootstrap, you will need to install
GNU Recutils@footnote{https://www.gnu.org/software/recutils/}.

For the exchange test cases to pass, @code{make install} must be run first.
Without it, test cases will fail because plugins can’t be located.

@example
$ ./bootstrap
$ ./configure # add required options for your system
$ make dist
$ tar -xf taler-$COMPONENT-$VERSION.tar.gz
$ cd taler-$COMPONENT-$VERSION
$ make install check
@end example

@node Wallet WebExtension,Upload to GNU mirrors,Exchange merchant,Releases
@anchor{taler-developer-manual wallet-webextension}@anchor{3e}
@section Wallet WebExtension


The version of the wallet is in `manifest.json'. The @code{version_name}
should be adjusted, and `version' should be increased independently on
every upload to the WebStore.

@example
$ ./configure
$ make dist
@end example

@node Upload to GNU mirrors,Creating Debian packages,Wallet WebExtension,Releases
@anchor{taler-developer-manual upload-to-gnu-mirrors}@anchor{3f}
@section Upload to GNU mirrors


See @indicateurl{https://www.gnu.org/prep/maintain/maintain.html#Automated-FTP-Uploads}

Directive file:

@example
version: 1.2
directory: taler
filename: taler-exchange-0.1.0.tar.gz
symlink: taler-exchange-0.1.0.tar.gz taler-exchange-latest.tar.gz
@end example

Upload the files in `binary mode' to the ftp servers.

@node Creating Debian packages,,Upload to GNU mirrors,Releases
@anchor{taler-developer-manual creating-debian-packages}@anchor{40}
@section Creating Debian packages


Our general setup is based on
@indicateurl{https://wiki.debian.org/DebianRepository/SetupWithReprepro}

First, update at least the version of the Debian package in
debian/changelog, and then run:

@example
$ dpkg-buildpackage -rfakeroot -b -uc -us
@end example

in the respective source directory (GNUnet, exchange, merchant) to create the
@code{.deb} files. Note that they will be created in the parent directory.  This
can be done on gv.taler.net, or on another (secure) machine.
Actual release builds should be done via the Docker images
that can be found in @code{deployment.git} under packaging.

On @code{gv}, we use the @code{aptbuilder} user to manage the reprepro repository.

Next, the @code{*.deb} files should be copied to gv.taler.net, say to
@code{/home/aptbuilder/incoming}.  Then, run

@example
# cd /home/aptbuilder/apt
# reprepro includedeb bullseye ~/incoming/*.deb
@end example

to import all Debian files from @code{~/incoming/} into the @code{bullseye}
distribution.  If Debian packages were build against other distributions,
reprepro may need to be first configured for those and the import command
updated accordingly.

Finally, make sure to clean up @code{~/incoming/} (by deleting the
now imported @code{*.deb} files).

@node Continuous integration,Internationalization,Releases,Top
@anchor{taler-developer-manual continuous-integration}@anchor{41}
@chapter Continuous integration


CI is done with Buildbot (@indicateurl{https://buildbot.net/}), and builds are
triggered by the means of Git hooks. The results are published at
@indicateurl{https://buildbot.taler.net/} .

In order to avoid downtimes, CI uses a “blue/green” deployment
technique. In detail, there are two users building code on the system,
the “green” and the “blue” user; and at any given time, one is running
Taler services and the other one is either building the code or waiting
for that.

There is also the possibility to trigger builds manually, but this is
only reserved to “admin” users.

@node Internationalization,iOS Apps,Continuous integration,Top
@anchor{taler-developer-manual internationalization}@anchor{42}
@chapter Internationalization


Internationalization (a.k.a “Translation”) is handled with Weblate (@indicateurl{https://weblate.org}) via our instance at @indicateurl{https://weblate.taler.net/} .

At this time, this system is still very new for Taler.net and this documentation may be incorrect and is certainly incomplete.

@menu
* Who can Register:: 
* About Privilege Levels:: 
* Upgrading Privileges:: 
* How to Create a Project:: 
* How to Create a Component:: 
* How to Create a Translation:: 
* Translation Standards and Practices:: 
* GPG Signing of Translations:: 

@end menu

@node Who can Register,About Privilege Levels,,Internationalization
@anchor{taler-developer-manual who-can-register}@anchor{43}
@section Who can Register


At this time, anyone can register an account at @indicateurl{https://weblate.taler.net/} to create translations.  Registered users default to the `Users' and `Viewers' privilege level.

@node About Privilege Levels,Upgrading Privileges,Who can Register,Internationalization
@anchor{taler-developer-manual about-privilege-levels}@anchor{44}
@section About Privilege Levels


This is the breakdown of privilege levels in Weblate:


@itemize *

@item 
`Users'/`Viewers' = Can log in, view Translations  (`applies to new users')

@item 
`Reviewers' = Can contribute Translations to existing `Components'

@item 
`Managers' = Can create new `Components' of existing `Projects'

@item 
`Superusers' = Can create new `Projects'
@end itemize

@node Upgrading Privileges,How to Create a Project,About Privilege Levels,Internationalization
@anchor{taler-developer-manual upgrading-privileges}@anchor{45}
@section Upgrading Privileges


To upgrade from `Users'/`Viewers', a superuser must manually augment your privileges.  At this time, superusers are Christian, Florian, and Buck.

@node How to Create a Project,How to Create a Component,Upgrading Privileges,Internationalization
@anchor{taler-developer-manual how-to-create-a-project}@anchor{46}
@section How to Create a Project


The `GNU Taler' project is probably the correct project for most Components and Translations falling under this guide.  Please contact a superuser if you need another Project created.

@node How to Create a Component,How to Create a Translation,How to Create a Project,Internationalization
@anchor{taler-developer-manual how-to-create-a-component}@anchor{47}
@section How to Create a Component


Reference: @indicateurl{https://docs.weblate.org/en/weblate-4.0.3/admin/projects.html#component-configuration}

In Weblate, a `Component' is a subset of a `Project' and each Component contains N translations.  A Component is generally associated with a Git repo.

To create a Component, log into @indicateurl{https://weblate.taler.net/} with your `Manager' or higher credentials and choose `+ Add' from the upper-right corner.

What follows is a sort of Wizard.  You can find detailed docs at @indicateurl{https://docs.weblate.org/}.  Here are some important notes about connecting your Component to the Taler Git repository:

Under `https://weblate.taler.net/create/component/vcs/':


@itemize *

@item 
`Source code repository' - Generally @code{git+ssh://git@@git.taler.net/<reponame>`}.  Check with @code{git remote -v}.

@item 
`Repository branch' - Choose the correct branch to draw from and commit to.

@item 
`Repository push URL' - This is generally @code{git+ssh://git@@git.taler.net/<reponame>`}  Check with @code{git remote -v}.

@item 
`Repository browser' - This is the www URL of the Git repo’s file browser.  Example @code{https://git.taler.net/<repositoryname>.git/tree/@{@{filename@}@}?h=@{@{branch@}@}#n@{@{line@}@}} where @code{<repositoryname>} gets replaced but @code{@{@{filename@}@}} and other items in braces are actual variables in the string.

@item 
`Merge style' - `Rebase', in line with GNU Taler development procedures

@item 
`Translation license' - `GNU Affero General Public License v3.0 or Later'

@item 
`Adding new translation' - Decide how to handle adding new translations
@end itemize

@node How to Create a Translation,Translation Standards and Practices,How to Create a Component,Internationalization
@anchor{taler-developer-manual how-to-create-a-translation}@anchor{48}
@section How to Create a Translation


1 - Log into @indicateurl{https://weblate.taler.net}

2 - Navigate to `Projects' > `Browse all projects'

3 - Choose the `Project' you wish to contribute to.

4 - Choose the `Component' you wish to contribute to.

5 - Find the language you want to translate into.  Click “Translate” on that line.

6 - Find a phrase and translate it.

You may also wish to refer to @indicateurl{https://docs.weblate.org/} .

@node Translation Standards and Practices,GPG Signing of Translations,How to Create a Translation,Internationalization
@anchor{taler-developer-manual translation-standards-and-practices}@anchor{49}
@section Translation Standards and Practices


By default, our Weblate instance is set to accept translations in English, French, German, Italian, Russian, Spanish, and Portuguese.  If you want to contribute a translation in a different language, navigate to the `Component' you want to translate for, and click “Start new translation” to begin.  If you require a privilege upgrade, please contact a superuser with your request.

When asked, set the license to GPLv3 or later.

Set commit/push to manual only.

@node GPG Signing of Translations,,Translation Standards and Practices,Internationalization
@anchor{taler-developer-manual gpg-signing-of-translations}@anchor{4a}
@section GPG Signing of Translations


weblate.taler.net signs GPG commits with the GPG key CD33CE35801462FA5EB0B695F2664BF474BFE502, and the corresponding public key can be found at @indicateurl{https://weblate.taler.net/keys/}.

This means that contributions made through weblate will not be signed with the individual contributor’s key when they are checked into the Git repository, but with the weblate key.

@node iOS Apps,Android Apps,Internationalization,Top
@anchor{taler-developer-manual ios-apps}@anchor{4b}
@chapter iOS Apps


@menu
* Building Taler Wallet for iOS from source:: 

@end menu

@node Building Taler Wallet for iOS from source,,,iOS Apps
@anchor{taler-developer-manual build-ios-from-source}@anchor{4c}@anchor{taler-developer-manual building-taler-wallet-for-ios-from-source}@anchor{4d}
@section Building Taler Wallet for iOS from source


The GNU Taler Wallet iOS app is in
the official Git repository@footnote{https://git.taler.net/taler-ios.git}.

@menu
* Compatibility:: 
* Building:: 

@end menu

@node Compatibility,Building,,Building Taler Wallet for iOS from source
@anchor{taler-developer-manual compatibility}@anchor{4e}
@subsection Compatibility


The minimum version of iOS supported is 15.0.
This app runs on all iPhone models at least as new as the iPhone 6S.

@node Building,,Compatibility,Building Taler Wallet for iOS from source
@anchor{taler-developer-manual building}@anchor{4f}
@subsection Building


Before building the iOS wallet, you must first checkout the
quickjs-tart repo@footnote{https://git.taler.net/quickjs-tart.git}
and the
wallet-core repo@footnote{https://git.taler.net/wallet-core.git}.

Have all 3 local repos (wallet-core, quickjs-tart, and this one) adjacent at
the same level (e.g. in a “GNU_Taler” folder)
Taler.xcworkspace expects the QuickJS framework sub-project to be at
@code{../quickjs-tart/QuickJS-rt.xcodeproj}.

Build wallet-core first:

@example
$ cd wallet-core
$ make embedded
$ open packages/taler-wallet-embedded/dist
@end example

then drag or move its product “taler-wallet-core-qjs.mjs”
into your quickjs-tart folder right at the top level.

Open Taler.xcworkspace, and set scheme / target to Taler_Wallet. Build&run…

Don’t open QuickJS-rt.xcodeproj or TalerWallet.xcodeproj and build anything
there - all needed libraries and frameworks will be built automatically from
Taler.xcworkspace.

@node Android Apps,Code Coverage,iOS Apps,Top
@anchor{taler-developer-manual android-apps}@anchor{50}
@chapter Android Apps


@menu
* Android App Nightly Builds:: 
* Building apps from source:: 
* Update translations:: 
* Release process:: 

@end menu

@node Android App Nightly Builds,Building apps from source,,Android Apps
@anchor{taler-developer-manual android-app-nightly-builds}@anchor{51}
@section Android App Nightly Builds


There are currently three Android apps in
the official Git repository@footnote{https://git.taler.net/taler-android.git}:


@itemize *

@item 
Wallet
[CI@footnote{https://git.taler.net/taler-android.git/tree/wallet/.gitlab-ci.yml}]

@item 
Merchant PoS Terminal
[CI@footnote{https://git.taler.net/taler-android.git/tree/merchant-terminal/.gitlab-ci.yml}]

@item 
Cashier
[CI@footnote{https://git.taler.net/taler-android.git/tree/cashier/.gitlab-ci.yml}]
@end itemize

Their git repositories are mirrored at Gitlab@footnote{https://gitlab.com/gnu-taler/taler-android}
to utilize their CI
and F-Droid@footnote{https://f-droid.org}’s Gitlab integration
to publish automatic nightly builds@footnote{https://f-droid.org/docs/Publishing_Nightly_Builds/}
for each change on the @code{master} branch.

All three apps publish their builds to the same F-Droid nightly repository
(which is stored as a git repository):
@indicateurl{https://gitlab.com/gnu-taler/fdroid-repo-nightly}

You can download the APK files directly from that repository
or add it to the F-Droid app for automatic updates
by clicking the following link (on the phone that has F-Droid installed).

@quotation

GNU Taler Nightly F-Droid Repository@footnote{fdroidrepos://gnu-taler.gitlab.io/fdroid-repo-nightly/fdroid/repo?fingerprint=55F8A24F97FAB7B0960016AF393B7E57E7A0B13C2D2D36BAC50E1205923A7843}
@end quotation

@cartouche
@quotation Note 
Nightly apps can be installed alongside official releases
and thus are meant `only for testing purposes'.
Use at your own risk!
@end quotation
@end cartouche

@node Building apps from source,Update translations,Android App Nightly Builds,Android Apps
@anchor{taler-developer-manual build-apps-from-source}@anchor{52}@anchor{taler-developer-manual building-apps-from-source}@anchor{53}
@section Building apps from source


Note that this guide is different from other guides for building Android apps,
because it does not require you to run non-free software.
It uses the Merchant PoS Terminal as an example, but works as well for the other apps
if you replace @code{merchant-terminal} with @code{wallet} or @code{cashier}.

First, ensure that you have the required dependencies installed:


@itemize *

@item 
Java Development Kit 8 or higher (default-jdk-headless)

@item 
git

@item 
unzip
@end itemize

Then you can get the app’s source code using git:

@example
# Start by cloning the Android git repository
$ git clone https://git.taler.net/taler-android.git

# Change into the directory of the cloned repository
$ cd taler-android

# Find out which Android SDK version you will need
$ grep -i compileSdkVersion merchant-terminal/build.gradle
@end example

The last command will return something like @code{compileSdkVersion 29}.
So visit the Android Rebuilds@footnote{http://android-rebuilds.beuc.net/} project
and look for that version of the Android SDK there.
If the SDK version is not yet available as a free rebuild,
you can try to lower the @code{compileSdkVersion} in the app’s @code{merchant-terminal/build.gradle} file.
Note that this might break things
or require you to also lower other versions such as @code{targetSdkVersion}.

In our example, the version is @code{29} which is available,
so download the “SDK Platform” package of “Android 10.0.0 (API 29)”
and unpack it:

@example
# Change into the directory that contains your downloaded SDK
$ cd $HOME

# Unpack/extract the Android SDK
$ unzip android-sdk_eng.10.0.0_r14_linux-x86.zip

# Tell the build system where to find the SDK
$ export ANDROID_SDK_ROOT="$HOME/android-sdk_eng.10.0.0_r14_linux-x86"

# Change into the directory of the cloned repository
$ cd taler-android

# Build the merchant-terminal app
$ ./gradlew :merchant-terminal:assembleRelease
@end example

If you get an error message complaining about build-tools

@quotation


@table @asis

@item > Failed to install the following Android SDK packages as some licences have not been accepted.

build-tools;29.0.3 Android SDK Build-Tools 29.0.3
@end table
@end quotation

you can try changing the @code{buildToolsVersion} in the app’s @code{merchant-terminal/build.gradle} file
to the latest “Android SDK build tools” version supported by the Android Rebuilds project.

After the build finished successfully,
you will find your APK in @code{merchant-terminal/build/outputs/apk/release/}.

@node Update translations,Release process,Building apps from source,Android Apps
@anchor{taler-developer-manual update-translations}@anchor{54}
@section Update translations


Translations are managed with Taler’s weblate instance:
@indicateurl{https://weblate.taler.net/projects/gnu-taler/}

To update translations, enter the taler-android git repository
and ensure that the weblate remote exists:

@example
$ git config -l | grep weblate
@end example

If it does not yet exist (empty output), you can add it like this:

@example
$ git remote add weblate https://weblate.taler.net/git/gnu-taler/wallet-android/
@end example

Then you can merge in translations commit from the weblate remote:

@example
# ensure you have latest version
$ git fetch weblate

# merge in translation commits
$ git merge weblate/master
@end example

Afterwards, build the entire project from source and test the UI
to ensure that no erroneous translations (missing placeholders) are breaking things.

@node Release process,,Update translations,Android Apps
@anchor{taler-developer-manual id1}@anchor{55}
@section Release process


After extensive testing, the code making up a new release should get a signed git tag.
The current tag format is:


@itemize *

@item 
cashier-$VERSION

@item 
pos-$VERSION

@item 
wallet-$VERSION (where $VERSION has a v prefix)
@end itemize

@example
$ git tag -s $APP-$VERSION
@end example

@menu
* F-Droid:: 
* Google Play:: 

@end menu

@node F-Droid,Google Play,,Release process
@anchor{taler-developer-manual id2}@anchor{56}
@subsection F-Droid


Nightly builds get published automatically (see above) after pushing code to the official repo.
Actual releases get picked up by F-Droid’s official repository via git tags.
So ensure that all releases get tagged properly.

Some information for F-Droid official repository debugging:


@itemize *

@item 
Wallet: [metadata@footnote{https://gitlab.com/fdroid/fdroiddata/-/blob/master/metadata/net.taler.wallet.fdroid.yml}] [build log@footnote{https://f-droid.org/wiki/page/net.taler.wallet.fdroid/lastbuild}]

@item 
Cashier: [metadata@footnote{https://gitlab.com/fdroid/fdroiddata/-/blob/master/metadata/net.taler.cashier.yml}] [build log@footnote{https://f-droid.org/wiki/page/net.taler.cashier/lastbuild}]

@item 
PoS: [metadata@footnote{https://gitlab.com/fdroid/fdroiddata/-/blob/master/metadata/net.taler.merchantpos.yml}] [build log@footnote{https://f-droid.org/wiki/page/net.taler.merchantpos/lastbuild}]
@end itemize

@node Google Play,,F-Droid,Release process
@anchor{taler-developer-manual google-play}@anchor{57}
@subsection Google Play


Google Play uploads are managed via Fastlane@footnote{https://docs.fastlane.tools/getting-started/android/setup/}.
Before proceeding, ensure that this is properly set up
and that you have access to the Google Play API.

To release an app, enter into its respective folder and run fastlane:

@example
$ bundle exec fastlane
@end example

Then select the deploy option.
Note this requires access to the Google Play upload signing key
set via the various environment variables in $app/fastlane/Fastfile.

All uploads are going to the beta track by default.
These can be promoted to production later or immediately after upload if you feel daring.

@node Code Coverage,Coding Conventions,Android Apps,Top
@anchor{taler-developer-manual id3}@anchor{58}@anchor{taler-developer-manual id4}@anchor{59}
@chapter Code Coverage


Code coverage is done with the Gcov / Lcov
(@indicateurl{http://ltp.sourceforge.net/coverage/lcov.php}) combo, and it is run
nightly (once a day) by a Buildbot worker. The coverage results are
then published at @indicateurl{https://lcov.taler.net/} .

@node Coding Conventions,Testing library,Code Coverage,Top
@anchor{taler-developer-manual coding-conventions}@anchor{5a}
@chapter Coding Conventions


GNU Taler is developed primarily in C, Kotlin, Python, Swift and TypeScript.

@menu
* Components written in C:: 
* Shell Scripts:: 
* Kotlin:: 
* Python:: 
* Swift:: 
* TypeScript:: 

@end menu

@node Components written in C,Shell Scripts,,Coding Conventions
@anchor{taler-developer-manual components-written-in-c}@anchor{5b}
@section Components written in C


These are the general coding style rules for Taler.


@itemize *

@item 
Baseline rules are to follow GNU guidelines, modified or extended
by the GNUnet style: @indicateurl{https://docs.gnunet.org/handbook/gnunet.html#Coding-style}
@end itemize

@menu
* Naming conventions:: 

@end menu

@node Naming conventions,,,Components written in C
@anchor{taler-developer-manual naming-conventions}@anchor{5c}
@subsection Naming conventions



@itemize *

@item 
include files (very similar to GNUnet):


@itemize *

@item 
if installed, must start with “@code{taler_}” (exception: platform.h),
and MUST live in src/include/

@item 
if NOT installed, must NOT start with “@code{taler_}” and
MUST NOT live in src/include/ and
SHOULD NOT be included from outside of their own directory

@item 
end in “_lib” for “simple” libraries

@item 
end in “_plugin” for plugins

@item 
end in “_service” for libraries accessing a service, i.e. the exchange
@end itemize

@item 
binaries:


@itemize *

@item 
taler-exchange-xxx: exchange programs

@item 
taler-merchant-xxx: merchant programs (demos)

@item 
taler-wallet-xxx: wallet programs

@item 
plugins should be libtaler_plugin_xxx_yyy.so: plugin yyy for API xxx

@item 
libtalerxxx: library for API xxx
@end itemize

@item 
logging


@itemize *

@item 
tools use their full name in GNUNET_log_setup
(i.e. ‘taler-exchange-offline’) and log using plain ‘GNUNET_log’.

@item 
pure libraries (without associated service) use ‘GNUNET_log_from’
with the component set to their library name (without lib or ‘.so’),
which should also be their directory name (i.e. ‘util’)

@item 
plugin libraries (without associated service) use ‘GNUNET_log_from’
with the component set to their type and plugin name (without lib or ‘.so’),
which should also be their directory name (i.e. ‘exchangedb-postgres’)

@item 
libraries with associated service) use ‘GNUNET_log_from’
with the name of the service,  which should also be their
directory name (i.e. ‘exchange’)

@item 
for tools with @code{-l LOGFILE}, its absence means write logs to stderr
@end itemize

@item 
configuration


@itemize *

@item 
same rules as for GNUnet
@end itemize

@item 
exported symbols


@itemize *

@item 
must start with TALER_[SUBSYSTEMNAME]_ where SUBSYSTEMNAME
MUST match the subdirectory of src/ in which the symbol is defined

@item 
from libtalerutil start just with @code{TALER_}, without subsystemname

@item 
if scope is ONE binary and symbols are not in a shared library,
use binary-specific prefix (such as TMH = taler-exchange-httpd) for
globals, possibly followed by the subsystem (TMH_DB_xxx).
@end itemize

@item 
structs:


@itemize *

@item 
structs that are ‘packed’ and do not contain pointers and are
thus suitable for hashing or similar operations are distinguished
by adding a “P” at the end of the name. (NEW)  Note that this
convention does not hold for the GNUnet-structs (yet).

@item 
structs that are used with a purpose for signatures, additionally
get an “S” at the end of the name.
@end itemize

@item 
private (library-internal) symbols (including structs and macros)


@itemize *

@item 
must not start with @code{TALER_} or any other prefix
@end itemize

@item 
testcases


@itemize *

@item 
must be called “test_module-under-test_case-description.c”
@end itemize

@item 
performance tests


@itemize *

@item 
must be called “perf_module-under-test_case-description.c”
@end itemize
@end itemize

@node Shell Scripts,Kotlin,Components written in C,Coding Conventions
@anchor{taler-developer-manual shell-scripts}@anchor{5d}
@section Shell Scripts


Shell scripts should be avoided if at all possible.  The only permissible uses of shell scripts
in GNU Taler are:


@itemize *

@item 
Trivial invocation of other commands.

@item 
Scripts for compatibility (e.g. @code{./configure}) that must run on
as many systems as possible.
@end itemize

When shell scripts are used, they @code{MUST} begin with the following @code{set} command:

@example
# Make the shell fail on undefined variables and
# commands with non-zero exit status.
$ set -eu
@end example

@node Kotlin,Python,Shell Scripts,Coding Conventions
@anchor{taler-developer-manual kotlin}@anchor{5e}
@section Kotlin


We so far have no specific guidelines, please follow best practices
for the language.

@node Python,Swift,Kotlin,Coding Conventions
@anchor{taler-developer-manual python}@anchor{5f}
@section Python


@menu
* Supported Python Versions:: 
* Style:: 
* Python for Scripting:: 

@end menu

@node Supported Python Versions,Style,,Python
@anchor{taler-developer-manual supported-python-versions}@anchor{60}
@subsection Supported Python Versions


Python code should be written and build against version 3.7 of Python.

@node Style,Python for Scripting,Supported Python Versions,Python
@anchor{taler-developer-manual style}@anchor{61}
@subsection Style


We use yapf@footnote{https://github.com/google/yapf} to reformat the
code to conform to our style instructions.
A reusable yapf style file can be found in @code{build-common},
which is intended to be used as a git submodule.

@node Python for Scripting,,Style,Python
@anchor{taler-developer-manual python-for-scripting}@anchor{62}
@subsection Python for Scripting


When using Python for writing small utilities, the following libraries
are useful:


@itemize *

@item 
@code{click} for argument parsing (should be preferred over argparse)

@item 
@code{pathlib} for path manipulation (part of the standard library)

@item 
@code{subprocess} for “shelling out” to other programs.  Prefer @code{subprocess.run}
over the older APIs.
@end itemize

@node Swift,TypeScript,Python,Coding Conventions
@anchor{taler-developer-manual swift}@anchor{63}
@section Swift


Please follow best practices for the language.

@node TypeScript,,Swift,Coding Conventions
@anchor{taler-developer-manual typescript}@anchor{64}
@section TypeScript


Please follow best practices for the language.

@node Testing library,User-Facing Terminology,Coding Conventions,Top
@anchor{taler-developer-manual testing-library}@anchor{65}
@chapter Testing library


This chapter is a VERY ABSTRACT description of how testing is
implemented in Taler, and in NO WAY wants to substitute the reading of
the actual source code by the user.

In Taler, a test case is an array of @code{struct TALER_TESTING_Command},
informally referred to as @code{CMD}, that is iteratively executed by the
testing interpreter. This latter is transparently initiated by the
testing library.

However, the developer does not have to defined CMDs manually, but
rather call the proper constructor provided by the library. For example,
if a CMD is supposed to test feature @code{x}, then the library would
provide the @code{TALER_TESTING_cmd_x ()} constructor for it. Obviously,
each constructor has its own particular arguments that make sense to
test @code{x}, and all constructor are thoroughly commented within the
source code.

Internally, each CMD has two methods: @code{run ()} and @code{cleanup ()}. The
former contains the main logic to test feature @code{x}, whereas the latter
cleans the memory up after execution.

In a test life, each CMD needs some internal state, made by values it
keeps in memory. Often, the test has to `share' those values with other
CMDs: for example, CMD1 may create some key material and CMD2 needs this
key material to encrypt data.

The offering of internal values from CMD1 to CMD2 is made by `traits'. A
trait is a @code{struct TALER_TESTING_Trait}, and each CMD contains an array
of traits, that it offers via the public trait interface to other
commands. The definition and filling of such array happens transparently
to the test developer.

For example, the following example shows how CMD2 takes an amount object
offered by CMD1 via the trait interface.

Note: the main interpreter and the most part of CMDs and traits are
hosted inside the exchange codebase, but nothing prevents the developer
from implementing new CMDs and traits within other codebases.

@example
/* Without loss of generality, let's consider the
 * following logic to exist inside the run() method of CMD1 */
...

struct TALER_Amount *a;
/**
 * the second argument (0) points to the first amount object offered,
 * in case multiple are available.
 */
if (GNUNET_OK != TALER_TESTING_get_trait_amount_obj (cmd2, 0, &a))
  return GNUNET_SYSERR;
...

use(a); /* 'a' points straight into the internal state of CMD2 */
@end example

In the Taler realm, there is also the possibility to alter the behaviour
of supposedly well-behaved components. This is needed when, for example,
we want the exchange to return some corrupted signature in order to
check if the merchant backend detects it.

This alteration is accomplished by another service called `twister'. The
twister acts as a proxy between service A and B, and can be programmed
to tamper with the data exchanged by A and B.

Please refer to the Twister codebase (under the @code{test} directory) in
order to see how to configure it.

@node User-Facing Terminology,Developer Glossary,Testing library,Top
@anchor{taler-developer-manual user-facing-terminology}@anchor{66}
@chapter User-Facing Terminology


This section contains terminology that should be used and that should not be
used in the user interface and help materials.

@menu
* Terms to Avoid:: 
* Terms to Use:: 

@end menu

@node Terms to Avoid,Terms to Use,,User-Facing Terminology
@anchor{taler-developer-manual terms-to-avoid}@anchor{67}
@section Terms to Avoid



@table @asis

@item Refreshing

Refreshing is the internal technical terminology for the protocol to
give change for partially spent coins

`Use instead': “Obtaining change”

@item Charge

Charge has two opposite meanings (charge to a credit card vs. charge a battery).
This can confuse users.

`Use instead': “Obtain”, “Credit”, “Debit”, “Withdraw”, “Top up”

@item Coin

Coins are an internal construct, the user should never be aware that their balance
is represented by coins of different denominations.

`Use instead': “(Digital) Cash” or “(Wallet) Balance”

@item Consumer

Has bad connotation of consumption.

`Use instead': Customer or user.

@item Proposal

The term used to describe the process of the merchant facilitating the download
of the signed contract terms for an order.

`Avoid'.  Generally events that relate to proposal downloads
should not be shown to normal users, only developers.  Instead, use
“communication with mechant failed” if a proposed order can’t be downloaded.

@item Anonymous E-Cash

Should be generally avoided, since Taler is only anonymous for
the customer. Also some people are scared of anonymity (which as
a term is also way too absolute, as anonymity is hardly ever perfect).

`Use instead':  “Privacy-preserving”, “Privacy-friendly”

@item Payment Replay

The process of proving to the merchant that the customer is entitled
to view a digital product again, as they already paid for it.

`Use instead':  In the event history, “re-activated digital content purchase”
could be used. (FIXME: this is still not nice.)

@item Session ID

See Payment Replay.

@item Order

Too ambiguous in the wallet.

`Use instead': Purchase

@item Fulfillment URL

URL that the serves the digital content that the user purchased
with their payment.  Can also be something like a donation receipt.
@end table

@node Terms to Use,,Terms to Avoid,User-Facing Terminology
@anchor{taler-developer-manual terms-to-use}@anchor{68}
@section Terms to Use



@table @asis

@item Auditor

Regulatory entity that certifies exchanges and oversees their operation.

@item Exchange Operator

The entity/service that gives out digital cash in exchange for some
other means of payment.

In some contexts, using “Issuer” could also be appropriate.
When showing a balance breakdown,
we can say “100 Eur (issued by exchange.euro.taler.net)”.
Sometimes we may also use the more generic term “Payment Service Provider”
when the concept of an “Exchange” is still unclear to the reader.

@item Refund

A refund is given by a merchant to the customer (rather the customer’s wallet)
and “undoes” a previous payment operation.

@item Payment

The act of sending digital cash to a merchant to pay for an order.

@item Purchase

Used to refer to the “result” of a payment, as in “view purchase”.
Use sparsingly, as the word doesn’t fit for all payments, such as donations.

@item Contract Terms

Partially machine-readable representation of the merchant’s obligation after the
customer makes a payment.

@item Merchant

Party that receives a payment.

@item Wallet

Also “Taler Wallet”.  Software component that manages the user’s digital cash
and payments.
@end table

@node Developer Glossary,Developer Tools,User-Facing Terminology,Top
@anchor{taler-developer-manual developer-glossary}@anchor{69}
@chapter Developer Glossary


This glossary is meant for developers.  It contains some terms that we usually do not
use when talking to end users or even system administrators.


@table @asis
@anchor{taler-developer-manual term-absolute-time}@anchor{6a}
@geindex absolute time

@item absolute time

method of keeping time in @ref{6b,,GNUnet} where the time is represented
as the number of microseconds since 1.1.1970 (UNIX epoch).  Called
absolute time in contrast to @ref{6c,,relative time}.
@anchor{taler-developer-manual term-aggregate}@anchor{6d}
@geindex aggregate

@item aggregate

the @ref{6e,,exchange} combines multiple payments received by the
same @ref{6f,,merchant} into one larger @ref{70,,wire transfer} to
the respective merchant’s @ref{71,,bank} account
@anchor{taler-developer-manual term-auditor}@anchor{72}
@geindex auditor

@item auditor

trusted third party that verifies that the @ref{6e,,exchange} is operating correctly
@anchor{taler-developer-manual term-bank}@anchor{71}
@geindex bank

@item bank

traditional financial service provider who offers
@ref{70,,wire transfers} between accounts
@anchor{taler-developer-manual term-buyer}@anchor{73}
@geindex buyer

@item buyer

individual in control of a Taler @ref{74,,wallet}, usually using it to
@ref{75,,spend} the @ref{76,,coins} on @ref{77,,contracts} (see also @ref{78,,customer}).
@anchor{taler-developer-manual term-close}@anchor{79}
@geindex close

@item close

operation an @ref{6e,,exchange} performs on a @ref{7a,,reserve} that has not been
@ref{7b,,emptied} by @ref{7c,,withdraw} operations. When closing a reserve, the
exchange wires the remaining funds back to the customer, minus a @ref{7d,,fee}
for closing
@anchor{taler-developer-manual term-coin}@anchor{76}
@geindex coin

@item coin

coins are individual token representing a certain amount of value, also known as the @ref{7e,,denomination} of the coin
@anchor{taler-developer-manual term-contract}@anchor{77}
@geindex contract

@item contract

formal agreement between @ref{6f,,merchant} and @ref{78,,customer} specifying the
@ref{7f,,contract terms} and signed by the merchant and the @ref{76,,coins} of the
customer
@anchor{taler-developer-manual term-contract-terms}@anchor{7f}
@geindex contract terms

@item contract terms

the individual clauses specifying what the buyer is purchasing from the
@ref{6f,,merchant}
@anchor{taler-developer-manual term-customer}@anchor{78}
@geindex customer

@item customer

individual that directs the buyer (perhaps the same individual) to make a purchase
@anchor{taler-developer-manual term-denomination}@anchor{7e}
@geindex denomination

@item denomination

unit of currency, specifies both the currency and the face value of a @ref{76,,coin},
as well as associated fees and validity periods
@anchor{taler-developer-manual term-denomination-key}@anchor{80}
@geindex denomination key

@item denomination key

(RSA) key used by the exchange to certify that a given @ref{76,,coin} is valid and of a
particular @ref{7e,,denomination}
@anchor{taler-developer-manual term-deposit}@anchor{81}
@geindex deposit

@item deposit

operation by which a merchant passes coins to an exchange, expecting the
exchange to credit his bank account in the future using an
@ref{6d,,aggregate} @ref{70,,wire transfer}
@anchor{taler-developer-manual term-dirty}@anchor{82}
@geindex dirty

@item dirty

a @ref{76,,coin} is dirty if its public key may be known to an entity other than
the customer, thereby creating the danger of some entity being able to
link multiple transactions of coin’s owner if the coin is not refreshed
@anchor{taler-developer-manual term-drain}@anchor{83}
@geindex drain

@item drain

process by which an exchange operator takes the profits
(from @ref{7d,,fees}) out of the escrow account and moves them into
their regular business account
@anchor{taler-developer-manual term-empty}@anchor{7b}
@geindex empty

@item empty

a @ref{7a,,reserve} is being emptied when a @ref{74,,wallet} is using the
reserve’s private key to @ref{7c,,withdraw} coins from it. This reduces
the balance of the reserve. Once the balance reaches zero, we say that
the reserve has been (fully) emptied.  Reserves that are not emptied
(which is the normal process) are @ref{79,,closed} by the exchange.
@anchor{taler-developer-manual term-exchange}@anchor{6e}
@geindex exchange

@item exchange

Taler’s payment service operator.  Issues electronic coins during
withdrawal and redeems them when they are deposited by merchants
@anchor{taler-developer-manual term-expired}@anchor{84}
@geindex expired

@item expired

Various operations come with time limits. In particular, denomination keys
come with strict time limits for the various operations involving the
coin issued under the denomination. The most important limit is the
deposit expiration, which specifies until when wallets are allowed to
use the coin in deposit or refreshing operations. There is also a “legal”
expiration, which specifies how long the exchange keeps records beyond the
deposit expiration time.  This latter expiration matters for legal disputes
in courts and also creates an upper limit for refreshing operations on
special zombie coin
@anchor{taler-developer-manual term-fakebank}@anchor{85}
@geindex fakebank

@item fakebank

implementation of the @ref{71,,bank} API in memory to be used only for test
cases.
@anchor{taler-developer-manual term-fee}@anchor{7d}
@geindex fee

@item fee

an @ref{6e,,exchange} charges various fees for its service. The different
fees are specified in the protocol. There are fees per coin for
@ref{7c,,withdrawing}, @ref{81,,depositing}, @ref{86,,melting}, and
@ref{87,,refunding}.  Furthermore, there are fees per wire transfer
when a @ref{7a,,reserve} is @ref{79,,closed}
and for @ref{6d,,aggregate} @ref{70,,wire transfers}
to the @ref{6f,,merchant}.
@anchor{taler-developer-manual term-fresh}@anchor{88}
@geindex fresh

@item fresh

a @ref{76,,coin} is fresh if its public key is only known to the customer
@anchor{taler-developer-manual term-GNUnet}@anchor{6b}
@geindex GNUnet

@item GNUnet

Codebase of various libraries for a better Internet, some of which
GNU Taler depends upon.
@anchor{taler-developer-manual term-JSON}@anchor{89}
@geindex JSON

@item JSON

JavaScript Object Notation (JSON) is a
serialization format derived from the JavaScript language which is
commonly used in the Taler protocol as the payload of HTTP requests
and responses.
@anchor{taler-developer-manual term-kappa}@anchor{8a}
@geindex kappa

@item kappa

security parameter used in the @ref{8b,,refresh} protocol. Defined to be 3.
The probability of successfully evading the income transparency with the
refresh protocol is 1:kappa.
@anchor{taler-developer-manual term-libeufin}@anchor{8c}
@geindex libeufin

@item libeufin

Kotlin component that implements a regional currency bank and an
adapter to communicate via EBICS with European core banking systems.
@anchor{taler-developer-manual term-link}@anchor{8d}
@geindex link

@item link

specific step in the @ref{8b,,refresh} protocol that an exchange must offer
to prevent abuse of the @ref{8b,,refresh} mechanism.  The link step is
not needed in normal operation, it just must be offered.
@anchor{taler-developer-manual term-master-key}@anchor{8e}
@geindex master key

@item master key

offline key used by the exchange to certify denomination keys and
message signing keys
@anchor{taler-developer-manual term-melt}@anchor{86}
@geindex melt

@item melt

step of the @ref{8b,,refresh} protocol where a @ref{82,,dirty} @ref{76,,coin}
is invalidated to be reborn @ref{88,,fresh} in a subsequent
@ref{8f,,reveal} step.
@anchor{taler-developer-manual term-merchant}@anchor{6f}
@geindex merchant

@item merchant

party receiving payments (usually in return for goods or services)
@anchor{taler-developer-manual term-message-signing-key}@anchor{90}
@geindex message signing key

@item message signing key

key used by the exchange to sign online messages, other than coins
@anchor{taler-developer-manual term-order}@anchor{91}
@geindex order

@item order

offer made by the merchant to a wallet; pre-cursor to
a contract where the wallet is not yet fixed. Turns
into a @ref{77,,contract} when a wallet claims the order.
@anchor{taler-developer-manual term-owner}@anchor{92}
@geindex owner

@item owner

a coin is owned by the entity that knows the private key of the coin
@anchor{taler-developer-manual term-planchet}@anchor{93}
@geindex planchet

@item planchet

precursor data for a @ref{76,,coin}. A planchet includes the coin’s internal
secrets (coin private key, blinding factor), but lacks the RSA signature
of the @ref{6e,,exchange}.  When @ref{7c,,withdrawing}, a @ref{74,,wallet}
creates and persists a planchet before asking the exchange to sign it to
get the coin.
@anchor{taler-developer-manual term-privacy-policy}@anchor{94}
@geindex privacy policy

@item privacy policy

Statement of an operator how they will protect the privacy of users.
@anchor{taler-developer-manual term-proof}@anchor{95}
@geindex proof

@item proof

Message that cryptographically demonstrates that a particular claim is correct.
@anchor{taler-developer-manual term-proposal}@anchor{96}
@geindex proposal

@item proposal

a list of @ref{7f,,contract terms} that has been completed and signed by the
merchant backend.
@anchor{taler-developer-manual term-purchase}@anchor{97}
@geindex purchase

@item purchase

Refers to the overall process of negotiating a @ref{77,,contract} and then
making a payment with @ref{76,,coins} to a @ref{6f,,merchant}.
@anchor{taler-developer-manual term-recoup}@anchor{98}
@geindex recoup

@item recoup

Operation by which an exchange returns the value of coins affected
by a @ref{99,,revocation} to their @ref{92,,owner}, either by allowing the owner to
withdraw new coins or wiring funds back to the bank account of the @ref{92,,owner}.
@anchor{taler-developer-manual term-refresh}@anchor{8b}
@geindex refresh

@item refresh

operation by which a @ref{82,,dirty} @ref{76,,coin} is converted into one or more
@ref{88,,fresh} coins.  Involves @ref{86,,melting} the @ref{82,,dirty} coins and
then @ref{8f,,revealing} so-called @ref{9a,,transfer keys}.
@anchor{taler-developer-manual term-refresh-commitment}@anchor{9b}
@geindex refresh commitment

@item refresh commitment

data that the wallet commits to during the @ref{86,,melt} stage of the
@ref{8b,,refresh} protocol where it
has to prove to the @ref{6e,,exchange} that it is deriving the @ref{88,,fresh}
coins as specified by the Taler protocol.  The commitment is verified
probabilistically (see: @ref{8a,,kappa}) during the @ref{8f,,reveal} stage.
@anchor{taler-developer-manual term-refund}@anchor{87}
@geindex refund

@item refund

operation by which a merchant steps back from the right to funds that he
obtained from a @ref{81,,deposit} operation, giving the right to the funds back
to the customer
@anchor{taler-developer-manual term-refund-transaction-id}@anchor{9c}
@geindex refund transaction id

@item refund transaction id

unique number by which a merchant identifies a @ref{87,,refund}. Needed
as refunds can be partial and thus there could be multiple refunds for
the same @ref{97,,purchase}.
@anchor{taler-developer-manual term-relative-time}@anchor{6c}
@geindex relative time

@item relative time

method of keeping time in @ref{6b,,GNUnet} where the time is represented
as a relative number of microseconds.  Thus, a relative time specifies
an offset or a duration, but not a date.  Called relative time in
contrast to @ref{6a,,absolute time}.
@anchor{taler-developer-manual term-reserve}@anchor{7a}
@geindex reserve

@item reserve

accounting mechanism used by the exchange to track customer funds
from incoming @ref{70,,wire transfers}.  A reserve is created whenever
a customer wires money to the exchange using a well-formed public key
in the subject.  The exchange then allows the customer’s @ref{74,,wallet}
to @ref{7c,,withdraw} up to the amount received in @ref{88,,fresh}
@ref{76,,coins} from the reserve, thereby emptying the reserve. If a
reserve is not emptied, the exchange will eventually @ref{79,,close} it.

Other definition: Funds set aside for future use; either the balance of a customer at the
exchange ready for withdrawal, or the funds kept in the exchange;s bank
account to cover obligations from coins in circulation.
@anchor{taler-developer-manual term-reveal}@anchor{8f}
@geindex reveal

@item reveal

step in the @ref{8b,,refresh} protocol where some of the transfer private
keys are revealed to prove honest behavior on the part of the wallet.
In the reveal step, the exchange returns the signed @ref{88,,fresh} coins.
@anchor{taler-developer-manual term-revoke}@anchor{99}
@geindex revoke

@item revoke

exceptional operation by which an exchange withdraws a denomination from
circulation, either because the signing key was compromised or because
the exchange is going out of operation; unspent coins of a revoked
denomination are subjected to recoup.
@anchor{taler-developer-manual term-sharing}@anchor{9d}
@geindex sharing

@item sharing

users can share ownership of a @ref{76,,coin} by sharing access to the coin's
private key, thereby allowing all co-owners to spend the coin at any
time.
@anchor{taler-developer-manual term-spend}@anchor{75}
@geindex spend

@item spend

operation by which a customer gives a merchant the right to deposit
coins in return for merchandise
@anchor{taler-developer-manual term-terms}@anchor{9e}
@geindex terms

@item terms

the general terms of service of an operator, possibly including
the @ref{94,,privacy policy}.  Not to be confused with the
@ref{7f,,contract terms} which are about the specific purchase.
@anchor{taler-developer-manual term-transaction}@anchor{9f}
@geindex transaction

@item transaction

method by which ownership is exclusively transferred from one entity
@anchor{taler-developer-manual term-transfer-key}@anchor{9a}
@geindex transfer key

@item transfer key

special cryptographic key used in the @ref{8b,,refresh} protocol, some of which
are revealed during the @ref{8f,,reveal} step. Note that transfer keys have,
despite the name, no relationship to @ref{70,,wire transfers}.  They merely
help to transfer the value from a @ref{82,,dirty} coin to a @ref{88,,fresh} coin
@anchor{taler-developer-manual term-user}@anchor{a0}
@geindex user

@item user

any individual using the Taler payment system
(see @ref{78,,customer}, @ref{73,,buyer}, @ref{6f,,merchant}).
@anchor{taler-developer-manual term-version}@anchor{a1}
@geindex version

@item version

Taler uses various forms of versioning. There is a database
schema version (stored itself in the database, see *-0000.sql) describing
the state of the table structure in the database of an @ref{6e,,exchange},
@ref{72,,auditor} or @ref{6f,,merchant}. There is a protocol
version (CURRENT:REVISION:AGE, see GNU libtool) which specifies
the network protocol spoken by an @ref{6e,,exchange} or @ref{6f,,merchant}
including backwards-compatibility. And finally there is the software
release version (MAJOR.MINOR.PATCH, see @indicateurl{https://semver.org/}) of
the respective code base.
@anchor{taler-developer-manual term-wallet}@anchor{74}
@geindex wallet

@item wallet

software running on a customer’s computer; withdraws, stores and
spends coins
@anchor{taler-developer-manual term-WebExtension}@anchor{a2}
@geindex WebExtension

@item WebExtension

Cross-browser API used to implement the GNU Taler wallet browser extension.
@anchor{taler-developer-manual term-wire-gateway}@anchor{a3}
@geindex wire gateway

@item wire gateway

API used by the exchange to talk with some real-time gross settlement system
(core banking system, blockchain) to notice inbound credits wire transfers
(during withdraw) and to trigger outbound debit wire transfers (primarily
for deposits).
@anchor{taler-developer-manual term-wire-transfer}@anchor{70}
@geindex wire transfer

@item wire transfer

a wire transfer is a method of sending funds between @ref{71,,bank} accounts
@anchor{taler-developer-manual term-wire-transfer-identifier}@anchor{a4}
@geindex wire transfer identifier

@item wire transfer identifier

Subject of a wire transfer from the exchange to a merchant;
set by the aggregator to a random nonce which uniquely
identifies the transfer.
@anchor{taler-developer-manual term-withdraw}@anchor{7c}
@geindex withdraw

@item withdraw

operation by which a @ref{74,,wallet} can convert funds from a @ref{7a,,reserve} to
fresh coins
@anchor{taler-developer-manual term-zombie}@anchor{a5}
@geindex zombie

@item zombie

@ref{76,,coin} where the respective @ref{80,,denomination key} is past its
@ref{81,,deposit} @ref{84,,expiration} time, but which is still (again) valid
for an operation because it was @ref{86,,melted} while it was still
valid, and then later again credited during a @ref{98,,recoup} process
@end table

@node Developer Tools,Index,Developer Glossary,Top
@anchor{taler-developer-manual developer-tools}@anchor{a6}
@chapter Developer Tools


This section describes various internal programs to make life easier for the
developer.

@menu
* taler-harness:: 

@end menu

@node taler-harness,,,Developer Tools
@anchor{taler-developer-manual taler-harness}@anchor{a7}
@section taler-harness


`taler-harness deployment gen-coin-config' is a tool to simplify Taler configuration generation.

`taler-harness deployment gen-coin-config'
[`-min-amount**='‌`VALUE']
[`-max-amount**='‌`VALUE']

@node Index,,Developer Tools,Top
@unnumbered Index


@printindex ge


@c %**end of body
@bye