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