commit f67be95d65e8e705c32821b6c7895adfbb905a18
parent 6cca6f2490d772b7328f2e4253928505ab7001a1
Author: Martin Schanzenbach <schanzen@gnunet.org>
Date: Sat, 8 Nov 2025 11:32:18 +0100
add TS taler singatures
Diffstat:
6 files changed, 47 insertions(+), 1 deletion(-)
diff --git a/gnunet-signatures/.gitignore b/gnunet-signatures/.gitignore
@@ -1,3 +1,4 @@
gnunet_signatures.h
gnunet_signatures.h.tmp
taler_signatures.go*
+taler_signatures.ts*
diff --git a/gnunet-signatures/Makefile b/gnunet-signatures/Makefile
@@ -1,4 +1,4 @@
-FILES=gnunet_signatures.h gnunet_signatures.rst taler_signatures.go
+FILES=gnunet_signatures.h gnunet_signatures.rst taler_signatures.go taler_signatures.ts
all: check $(FILES)
check:
recfix --check registry.rec
@@ -28,5 +28,11 @@ taler_signatures.go: go.header taler_signatures.go.tmp go.footer
cat $^ > taler_signatures.go.oct.tmp
sed -r 's/= 00*([0-9])/= \1/g' taler_signatures.go.oct.tmp > $@
+taler_signatures.ts.tmp: registry.rec ts-taler.template
+ ../format.sh ts-taler.template 'Package = "GNU Taler"' < registry.rec > $@ $@
+
+taler_signatures.ts: ts.header taler_signatures.ts.tmp ts.footer
+ cat $^ | sed -e "s/= 0000/= 0/" -e "s/= 000/= /" -e "s/= 00/= /" > $@
+
.PHONY: check clean distclean
diff --git a/gnunet-signatures/ts-taler.template b/gnunet-signatures/ts-taler.template
@@ -0,0 +1,6 @@
+
+
+ /**
+ * {{Comment}}
+ */
+ {{Name}} = {{Number}},
diff --git a/gnunet-signatures/ts.footer b/gnunet-signatures/ts.footer
@@ -0,0 +1,3 @@
+
+
+}
diff --git a/gnunet-signatures/ts.header b/gnunet-signatures/ts.header
@@ -0,0 +1,24 @@
+/*
+ This file is part of GNU Taler
+ Copyright (C) 2012-2025 Taler Systems SA
+
+ GNU Taler is free software: you can redistribute it and/or modify it
+ under the terms of the GNU Lesser General Public License as published
+ by the Free Software Foundation, either version 3 of the License,
+ or (at your option) any later version.
+
+ GNU Taler is distributed in the hope that it will be useful, but
+ WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+ SPDX-License-Identifier: LGPL3.0-or-later
+
+ Note: the LGPL does not apply to all components of GNU Taler,
+ but it does apply to this file.
+ */
+
+export enum TalerSignaturePurpose {
diff --git a/gnunet-signatures/ts.template b/gnunet-signatures/ts.template
@@ -0,0 +1,6 @@
+
+
+ /**
+ * {{Comment}}
+ */
+ {{Name}} = {{Number}},