aboutsummaryrefslogtreecommitdiff
path: root/gnunet-signatures
diff options
context:
space:
mode:
Diffstat (limited to 'gnunet-signatures')
-rw-r--r--gnunet-signatures/Makefile12
-rw-r--r--gnunet-signatures/POLICY11
-rw-r--r--gnunet-signatures/README4
-rw-r--r--gnunet-signatures/registry.rec145
-rw-r--r--gnunet-signatures/rst.footer0
-rw-r--r--gnunet-signatures/rst.header.template12
-rw-r--r--gnunet-signatures/rst.template5
7 files changed, 161 insertions, 28 deletions
diff --git a/gnunet-signatures/Makefile b/gnunet-signatures/Makefile
index d3eef80..509febf 100644
--- a/gnunet-signatures/Makefile
+++ b/gnunet-signatures/Makefile
@@ -1,4 +1,4 @@
1FILES=gnunet_signatures.h 1FILES=gnunet_signatures.h gnunet_signatures.rst
2all: check $(FILES) 2all: check $(FILES)
3check: 3check:
4 recfix --check registry.rec 4 recfix --check registry.rec
@@ -12,4 +12,14 @@ gnunet_signatures.h.tmp: registry.rec h.template
12gnunet_signatures.h: h.header gnunet_signatures.h.tmp h.footer 12gnunet_signatures.h: h.header gnunet_signatures.h.tmp h.footer
13 cat h.header gnunet_signatures.h.tmp h.footer > $@ 13 cat h.header gnunet_signatures.h.tmp h.footer > $@
14 14
15gnunet_signatures.rst.tmp: registry.rec rst.template
16 ../format.sh rst.template 'Package = "GNUnet"' < registry.rec > $@
17
18rst.header.tmp:
19 cat README POLICY rst.header.template > $@
20
21gnunet_signatures.rst: rst.header.tmp gnunet_signatures.rst.tmp rst.footer
22 cat rst.header.tmp gnunet_signatures.rst.tmp rst.footer > $@
23
24
15.PHONY: check clean distclean 25.PHONY: check clean distclean
diff --git a/gnunet-signatures/POLICY b/gnunet-signatures/POLICY
new file mode 100644
index 0000000..4308df6
--- /dev/null
+++ b/gnunet-signatures/POLICY
@@ -0,0 +1,11 @@
1Policy
2^^^^^^
3
4Developers working on GNUnet or packages based on GNUnet should
5feel free to extend this registry. Entries may be deleted if
6no code using them is still expected to be in production anywhere.
7
8Updating the name of the package or subsystem is allowed provided
9that the code using the signature is being moved, as those fields
10are merely informational or used for code generation.
11
diff --git a/gnunet-signatures/README b/gnunet-signatures/README
index 99587b7..b68b960 100644
--- a/gnunet-signatures/README
+++ b/gnunet-signatures/README
@@ -1,3 +1,6 @@
1GNUnet Signature Purposes
2-------------------------
3
1GNUnet signature purpose registry. 4GNUnet signature purpose registry.
2 5
3Every time a signature is created or verified with libgnunetutil's 6Every time a signature is created or verified with libgnunetutil's
@@ -5,3 +8,4 @@ signature functions, the signer must provide a "purpose" that provides
5the context for the signature. By signing over the "purpose", it is 8the context for the signature. By signing over the "purpose", it is
6not possible for an adversary to use a signature made in one context 9not possible for an adversary to use a signature made in one context
7in another context. 10in another context.
11
diff --git a/gnunet-signatures/registry.rec b/gnunet-signatures/registry.rec
index d9bb568..ec3950a 100644
--- a/gnunet-signatures/registry.rec
+++ b/gnunet-signatures/registry.rec
@@ -39,10 +39,10 @@ Package: GNUnet
39Subsystem: GNUnet-TRANSPORT 39Subsystem: GNUnet-TRANSPORT
40 40
41Number: 3 41Number: 3
42Name: REVOCATION 42Name: GNS_REVOCATION
43Comment: Signature for confirming a key revocation. 43Comment: GNS zone key revocation
44Package: GNUnet 44Package: GNUnet
45Subsystem: GNUnet-Revocation 45Subsystem: GNS
46 46
47Number: 4 47Number: 4
48Name: NAMESPACE_ADVERTISEMENT 48Name: NAMESPACE_ADVERTISEMENT
@@ -94,9 +94,9 @@ Subsystem: GNUnet-NSE
94 94
95Number: 15 95Number: 15
96Name: GNS_RECORD_SIGN 96Name: GNS_RECORD_SIGN
97Comment: Signature of a gnunet naming system record block 97Comment: GNS record set signature
98Package: GNUnet 98Package: GNUnet
99Subsystem: GNUnet-GNSRECORD 99Subsystem: GNS
100 100
101Number: 16 101Number: 16
102Name: SET_ECC_KEY 102Name: SET_ECC_KEY
@@ -219,12 +219,27 @@ Package: GNUnet
219Subsystem: GNUnet-TRANSPORT-TCP 219Subsystem: GNUnet-TRANSPORT-TCP
220 220
221#----------------------------------------------------------------------------- 221#-----------------------------------------------------------------------------
222# GNU Taler 222# GNU Taler, >= 1000
223 223
224# 224#
225# Exchange offline signatures (with master key) 225# Exchange offline signatures (with master key)
226# 226#
227 227
228Number: 1017
229Name: MASTER_AML_KEY
230Comment: Initialize or update the status of an AML key for an AML officer
231Package: GNU Taler
232
233Number: 1018
234Name: MASTER_DRAIN_PROFIT
235Comment: Affirm wiring of exchange profits to operator account.
236Package: GNU Taler
237
238Number: 1019
239Name: MASTER_PARTNER_DETAILS
240Comment: Signature affirming a partner configuration for wads.
241Package: GNU Taler
242
228Number: 1020 243Number: 1020
229Name: MASTER_SIGNING_KEY_REVOKED 244Name: MASTER_SIGNING_KEY_REVOKED
230Comment: The given revocation key was revoked and must no longer be used. 245Comment: The given revocation key was revoked and must no longer be used.
@@ -285,10 +300,6 @@ Name: MASTER_EXTENSION
285Comment: Set the configuration of an extension (age-restriction or peer2peer) 300Comment: Set the configuration of an extension (age-restriction or peer2peer)
286Package: GNU Taler 301Package: GNU Taler
287 302
288Number: 1048
289Name: MASTER_PARTNER_DETAILS
290Comment: Signature affirming a partner configuration for wads.
291Package: GNU Taler
292 303
293# 304#
294# Exchange online signatures (with signing key) 305# Exchange online signatures (with signing key)
@@ -374,6 +385,21 @@ Name: EXCHANGE_PURSE_STATUS
374Comment: Purpose for the state of a purse, signed by the exchange's signing key. 385Comment: Purpose for the state of a purse, signed by the exchange's signing key.
375Package: GNU Taler 386Package: GNU Taler
376 387
388Number: 1048
389Name: EXCHANGE_RESERVE_ATTEST_DETAILS
390Comment: Signature by which the exchange attests identity attributes of a particular reserve owner.
391Package: GNU Taler
392
393Number: 1049
394Name: EXCHANGE_CONFIRM_PURSE_REFUND
395Comment: Signature by which the exchange confirms that a purse expired and a coin was refunded.
396Package: GNU Taler
397
398Number: 1050
399Name: EXCHANGE_CONFIRM_AGE_WITHDRAW
400Comment: Signature where the Exchange confirms an age-withdraw.
401Package: GNU Taler
402
377# 403#
378# Auditor signatures 404# Auditor signatures
379# 405#
@@ -412,13 +438,18 @@ Name: MERCHANT_WIRE_DETAILS
412Comment: Signature where the merchant confirms its own (salted) wire details (not yet really used). 438Comment: Signature where the merchant confirms its own (salted) wire details (not yet really used).
413Package: GNU Taler 439Package: GNU Taler
414 440
441Number: 1108
442Name: MERCHANT_TOKEN_ISSUE
443Comment: Signature where the merchant issues a token by blindly signing it. Signed with the token issue private key.
444Package: GNU Taler
445
415# 446#
416# Wallet signatures 447# Wallet signatures
417# 448#
418 449
419Number: 1200 450Number: 1200
420Name: WALLET_RESERVE_WITHDRAW 451Name: WALLET_RESERVE_WITHDRAW
421Comment: Signature where the reserve key confirms a withdraw request. 452Comment: Signature where the reserve key confirms a withdraw request. Signed with the reserve private key.
422Package: GNU Taler 453Package: GNU Taler
423 454
424Number: 1201 455Number: 1201
@@ -428,17 +459,17 @@ Package: GNU Taler
428 459
429Number: 1202 460Number: 1202
430Name: WALLET_COIN_MELT 461Name: WALLET_COIN_MELT
431Comment: Signature using a coin key confirming the melting of a coin. 462Comment: Signature using a coin key confirming the melting of a coin. Signed with the coin's private key.
432Package: GNU Taler 463Package: GNU Taler
433 464
434Number: 1203 465Number: 1203
435Name: WALLET_COIN_RECOUP 466Name: WALLET_COIN_RECOUP
436Comment: Signature using a coin key requesting recoup. 467Comment: Signature using a coin key requesting recoup. Signed with the coin's private key.
437Package: GNU Taler 468Package: GNU Taler
438 469
439Number: 1204 470Number: 1204
440Name: WALLET_COIN_LINK 471Name: WALLET_COIN_LINK
441Comment: Signature using a coin key authenticating link data. 472Comment: Signature using a coin key authenticating link data. Signed with the old coin's private key.
442Package: GNU Taler 473Package: GNU Taler
443 474
444Number: 1205 475Number: 1205
@@ -448,7 +479,7 @@ Package: GNU Taler
448 479
449Number: 1206 480Number: 1206
450Name: WALLET_COIN_RECOUP_REFRESH 481Name: WALLET_COIN_RECOUP_REFRESH
451Comment: Signature using a coin key requesting recoup-refresh. 482Comment: Signature using a coin key requesting recoup-refresh. Signed with the coin private key.
452Package: GNU Taler 483Package: GNU Taler
453 484
454Number: 1207 485Number: 1207
@@ -458,47 +489,77 @@ Package: GNU Taler
458 489
459Number: 1208 490Number: 1208
460Name: WALLET_RESERVE_HISTORY 491Name: WALLET_RESERVE_HISTORY
461Comment: Request full reserve history and pay for it. 492Comment: Request full or partial reserve history. Signed with the reserve private key.
462Package: GNU Taler 493Package: GNU Taler
463 494
464Number: 1209 495Number: 1209
465Name: WALLET_RESERVE_STATUS 496Name: WALLET_COIN_HISTORY
466Comment: Request detailed account status (for free). 497Comment: Request full or partial coin history. Signed with the coin private key.
467Package: GNU Taler 498Package: GNU Taler
468 499
469Number: 1210 500Number: 1210
470Name: WALLET_PURSE_CREATE 501Name: WALLET_PURSE_CREATE
471Comment: Request purse creation (without reserve). 502Comment: Request purse creation (without reserve). Signed by the purse private key.
472Package: GNU Taler 503Package: GNU Taler
473 504
474Number: 1211 505Number: 1211
475Name: WALLET_PURSE_DEPOSIT 506Name: WALLET_PURSE_DEPOSIT
476Comment: Request coin to be deposited into a purse. 507Comment: Request coin to be deposited into a purse. Signed with the coin private key.
477Package: GNU Taler 508Package: GNU Taler
478 509
479Number: 1212 510Number: 1212
480Name: WALLET_PURSE_STATUS 511Name: WALLET_PURSE_STATUS
481Comment: Request purse status. 512Comment: Request purse status. Signed with the purse private key.
482Package: GNU Taler 513Package: GNU Taler
483 514
484Number: 1213 515Number: 1213
485Name: WALLET_PURSE_MERGE 516Name: WALLET_PURSE_MERGE
486Comment: Request purse to be merged with a reserve (by purse). 517Comment: Request purse to be merged with a reserve. Signed with the purse private key.
487Package: GNU Taler 518Package: GNU Taler
488 519
489Number: 1214 520Number: 1214
490Name: WALLET_ACCOUNT_MERGE 521Name: WALLET_ACCOUNT_MERGE
491Comment: Request purse to be merged with a reserve (by account). 522Comment: Request purse to be merged with a reserve. Signed by the reserve private key.
492Package: GNU Taler 523Package: GNU Taler
493 524
494Number: 1215 525Number: 1215
495Name: WALLET_RESERVE_CLOSE 526Name: WALLET_RESERVE_CLOSE
496Comment: Request account to be closed. 527Comment: Request account to be closed. Signed with the reserve private key.
497Package: GNU Taler 528Package: GNU Taler
498 529
499Number: 1216 530Number: 1216
500Name: WALLET_PURSE_ECONTRACT 531Name: WALLET_PURSE_ECONTRACT
501Comment: Associates encrypted contract with a purse. 532Comment: Associates encrypted contract with a purse. Signed with the purse private key.
533Package: GNU Taler
534
535Number: 1217
536Name: WALLET_RESERVE_OPEN
537Comment: Request reserve to be kept open. Signed with the reserve private key.
538Package: GNU Taler
539
540Number: 1218
541Name: WALLET_RESERVE_OPEN_DEPOSIT
542Comment: Request coin to be used to pay for reserve to be kept open. Signed with the coin private key.
543Package: GNU Taler
544
545Number: 1219
546Name: WALLET_RESERVE_ATTEST_DETAILS
547Comment: Request attestation about reserve owner. Signed by the reserve private key.
548Package: GNU Taler
549
550Number: 1220
551Name: WALLET_PURSE_DELETE
552Comment: Signature by which a wallet requests a purse to be deleted.
553Package: GNU Taler
554
555Number: 1221
556Name: WALLET_RESERVE_AGE_WITHDRAW
557Comment: Signature where the reserve key confirms an age-withdraw request. Signed with the reserve private key.
558Package: GNU Taler
559
560Number: 1222
561Name: WALLET_TOKEN_USE
562Comment: Signature where the token use key confirms the usage of a token on a pay request. Signed with the token use private key.
502Package: GNU Taler 563Package: GNU Taler
503 564
504# 565#
@@ -535,7 +596,22 @@ Comment: EdDSA test signature.
535Package: GNU Taler 596Package: GNU Taler
536 597
537# 598#
538# Anastasis signatures 599# AML officer signatures
600#
601
602Number: 1350
603Name: AML_DECISION
604Comment: Signature by which an AML officer signs an AML decision.
605Package: GNU Taler
606
607Number: 1351
608Name: AML_QUERY
609Comment: Signature by which an AML officer requests AML data.
610Package: GNU Taler
611
612
613#
614# GNU Anastasis signatures, >= 1400
539# 615#
540 616
541Number: 1400 617Number: 1400
@@ -544,10 +620,25 @@ Comment: EdDSA signature for a policy upload.
544Package: GNU Taler 620Package: GNU Taler
545 621
546# 622#
547# Sync signatures 623# Sync signatures, >= 1450
548# 624#
549 625
550Number: 1450 626Number: 1450
551Name: SYNC_BACKUP_UPLOAD 627Name: SYNC_BACKUP_UPLOAD
552Comment: EdDSA signature for a backup upload. 628Comment: EdDSA signature for a backup upload.
553Package: GNU Taler 629Package: GNU Taler
630
631
632#
633# Donau signatures, >= 1500
634#
635
636Number: 1500
637Name: DONAU_DONATION_STATEMENT
638Comment: The signature is done by the Donau. The Donau signes over the total amount of the corresponding year, the corresponding year and the donation identifier of a specific donor. The statement confirms that the donor made this total in donations for the given year.
639Package: Donau
640
641Number: 1501
642Name: CHARITY_DONATION_CONFIRMATION
643Comment: The signature is made by a charity and shows that the charity is in agreement with the donation request which it sends to the Donau. The charity signs over all blinded identifiers and key pairs which it has received from the donor. The signature affirms that the charity wants the donation receipts to be issued on its behalf.
644Package: Donau
diff --git a/gnunet-signatures/rst.footer b/gnunet-signatures/rst.footer
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/gnunet-signatures/rst.footer
diff --git a/gnunet-signatures/rst.header.template b/gnunet-signatures/rst.header.template
new file mode 100644
index 0000000..1f2f336
--- /dev/null
+++ b/gnunet-signatures/rst.header.template
@@ -0,0 +1,12 @@
1Entries
2^^^^^^^
3
4.. list-table:: GNS Signature Purposes
5 :widths: auto
6 :header-rows: 1
7
8 * - Name
9 - Number
10 - Package
11 - Subsystem
12 - Comment
diff --git a/gnunet-signatures/rst.template b/gnunet-signatures/rst.template
new file mode 100644
index 0000000..7e4af96
--- /dev/null
+++ b/gnunet-signatures/rst.template
@@ -0,0 +1,5 @@
1 * - {{Name}}
2 - {{Number}}
3 - {{Package}}
4 - {{Subsystem}}
5 - {{Comment}}