commit 6a13d33ba13e36dac5313ee26da204afe76d6952
parent ff6fe34c8e781a9378eb4667f4494c3dfc0da2f4
Author: Martin Schanzenbach <schanzen@gnunet.org>
Date: Wed, 23 Apr 2025 13:09:06 +0200
add taler_signature generation
Diffstat:
5 files changed, 41 insertions(+), 1 deletion(-)
diff --git a/gnunet-signatures/.gitignore b/gnunet-signatures/.gitignore
@@ -1,2 +1,3 @@
gnunet_signatures.h
gnunet_signatures.h.tmp
+taler_signatures.go*
diff --git a/gnunet-signatures/Makefile b/gnunet-signatures/Makefile
@@ -1,4 +1,4 @@
-FILES=gnunet_signatures.h gnunet_signatures.rst
+FILES=gnunet_signatures.h gnunet_signatures.rst taler_signatures.go
all: check $(FILES)
check:
recfix --check registry.rec
@@ -21,5 +21,11 @@ rst.header.tmp:
gnunet_signatures.rst: rst.header.tmp gnunet_signatures.rst.tmp rst.footer
cat rst.header.tmp gnunet_signatures.rst.tmp rst.footer > $@
+taler_signatures.go.tmp: registry.rec go-taler.template
+ ../format.sh go-taler.template 'Package = "GNU Taler"' < registry.rec > $@
+
+taler_signatures.go: go.header taler_signatures.go.tmp go.footer
+ cat $^ > $@
+
.PHONY: check clean distclean
diff --git a/gnunet-signatures/go-taler.template b/gnunet-signatures/go-taler.template
@@ -0,0 +1,6 @@
+
+
+ /**
+ * {{Comment}} ({{Package}})
+ */
+ TALER_SIGNATURE_PURPOSE_{{Name}} = {{Number}}
diff --git a/gnunet-signatures/go.footer b/gnunet-signatures/go.footer
@@ -0,0 +1 @@
+)
diff --git a/gnunet-signatures/go.header b/gnunet-signatures/go.header
@@ -0,0 +1,26 @@
+/*
+ This file is part of GNU Taler
+ Copyright (C) 2012-2022 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.
+ */
+
+package gana
+
+const (