taler_signatures.go (14228B)
1 /* 2 This file is part of Gnu Taler 3 Copyright (C) 2012-2025 Taler Systems Sa 4 5 Gnu Taler is free software: you can redistribute it and/or modify it 6 under the terms of the Gnu Lesser General Public License as published 7 by the Free Software Foundation, either version 3 of the License, 8 or (at your option) any later version. 9 10 Gnu Taler is distributed in the hope that it will be useful, but 11 Without Any Warranty; without even the implied warranty of 12 Merchantability or Fitness For A Particular Purpose. See the Gnu 13 Lesser General Public License for more details. 14 15 You should have received a copy of the Gnu Lesser General Public License 16 along with this program. If not, see <http://www.gnu.org/licenses/>. 17 18 Spdx-License-Identifier: Lgpl3.0-or-later 19 20 Note: the Lgpl does not apply to all components of Gnu Taler, 21 but it does apply to this file. 22 */ 23 24 package gana 25 26 const ( 27 28 29 /** 30 * Initialize or update the status of an Aml key for an Aml officer (Gnu Taler) 31 */ 32 TalerSignaturePurposeMasterAmlKey = 1017 33 34 35 /** 36 * Affirm wiring of exchange profits to operator account. (Gnu Taler) 37 */ 38 TalerSignaturePurposeMasterDrainProfit = 1018 39 40 41 /** 42 * Signature affirming a partner configuration for wads. (Gnu Taler) 43 */ 44 TalerSignaturePurposeMasterPartnerDetails = 1019 45 46 47 /** 48 * The given revocation key was revoked and must no longer be used. (Gnu Taler) 49 */ 50 TalerSignaturePurposeMasterSigningKeyRevoked = 1020 51 52 53 /** 54 * Add payto Uri to the list of our wire methods. (Gnu Taler) 55 */ 56 TalerSignaturePurposeMasterAddWire = 1021 57 58 59 /** 60 * Signature over global set of fees charged by the exchange. (Gnu Taler) 61 */ 62 TalerSignaturePurposeMasterGlobalFees = 1022 63 64 65 /** 66 * Remove payto Uri from the list of our wire methods. (Gnu Taler) 67 */ 68 TalerSignaturePurposeMasterDelWire = 1023 69 70 71 /** 72 * Purpose for signing public keys signed by the exchange master key. (Gnu Taler) 73 */ 74 TalerSignaturePurposeMasterSigningKeyValidity = 1024 75 76 77 /** 78 * Purpose for denomination keys signed by the exchange master key. (Gnu Taler) 79 */ 80 TalerSignaturePurposeMasterDenominationKeyValidity = 1025 81 82 83 /** 84 * Add an auditor to the list of our auditors. (Gnu Taler) 85 */ 86 TalerSignaturePurposeMasterAddAuditor = 1026 87 88 89 /** 90 * Remove an auditor from the list of our auditors. (Gnu Taler) 91 */ 92 TalerSignaturePurposeMasterDelAuditor = 1027 93 94 95 /** 96 * Fees charged per (aggregate) wire transfer to the merchant. (Gnu Taler) 97 */ 98 TalerSignaturePurposeMasterWireFees = 1028 99 100 101 /** 102 * The given revocation key was revoked and must no longer be used. (Gnu Taler) 103 */ 104 TalerSignaturePurposeMasterDenominationKeyRevoked = 1029 105 106 107 /** 108 * Signature where the Exchange confirms its Iban details in the /wire response. (Gnu Taler) 109 */ 110 TalerSignaturePurposeMasterWireDetails = 1030 111 112 113 /** 114 * Set the configuration of an extension (age-restriction or peer2peer) (Gnu Taler) 115 */ 116 TalerSignaturePurposeMasterExtension = 1031 117 118 119 /** 120 * Purpose for the state of a reserve, signed by the exchange's signing key. (Gnu Taler) 121 */ 122 TalerSignaturePurposeExchangeReserveStatus = 1032 123 124 125 /** 126 * Signature where the Exchange confirms a deposit request. (Gnu Taler) 127 */ 128 TalerSignaturePurposeExchangeConfirmDeposit = 1033 129 130 131 /** 132 * Signature where the exchange (current signing key) confirms the no-reveal index for cut-and-choose and the validity of the melted coins. (Gnu Taler) 133 */ 134 TalerSignaturePurposeExchangeConfirmMelt = 1034 135 136 137 /** 138 * Signature where the Exchange confirms the full /keys response set. (Gnu Taler) 139 */ 140 TalerSignaturePurposeExchangeKeySet = 1035 141 142 143 /** 144 * Signature where the Exchange confirms the /track/transaction response. (Gnu Taler) 145 */ 146 TalerSignaturePurposeExchangeConfirmWire = 1036 147 148 149 /** 150 * Signature where the Exchange confirms the /wire/deposit response. (Gnu Taler) 151 */ 152 TalerSignaturePurposeExchangeConfirmWireDeposit = 1037 153 154 155 /** 156 * Signature where the Exchange confirms a refund request. (Gnu Taler) 157 */ 158 TalerSignaturePurposeExchangeConfirmRefund = 1038 159 160 161 /** 162 * Signature where the Exchange confirms a recoup. (Gnu Taler) 163 */ 164 TalerSignaturePurposeExchangeConfirmRecoup = 1039 165 166 167 /** 168 * Signature where the Exchange confirms it closed a reserve. (Gnu Taler) 169 */ 170 TalerSignaturePurposeExchangeReserveClosed = 1040 171 172 173 /** 174 * Signature where the Exchange confirms a recoup-refresh operation. (Gnu Taler) 175 */ 176 TalerSignaturePurposeExchangeConfirmRecoupRefresh = 1041 177 178 179 /** 180 * Signature where the Exchange confirms that it does not know a denomination (hash). (Gnu Taler) 181 */ 182 TalerSignaturePurposeExchangeAffirmDenomUnknown = 1042 183 184 185 /** 186 * Signature where the Exchange confirms that it does not consider a denomination valid for the given operation at this time. (Gnu Taler) 187 */ 188 TalerSignaturePurposeExchangeAffirmDenomExpired = 1043 189 190 191 /** 192 * Signature by which the exchange affirms that a purse was created with a certain amount deposited into it. (Gnu Taler) 193 */ 194 TalerSignaturePurposeExchangeConfirmPurseCreation = 1045 195 196 197 /** 198 * Signature by which the exchange affirms that a purse was merged into a reserve with a certain amount in it. (Gnu Taler) 199 */ 200 TalerSignaturePurposeExchangeConfirmPurseMerged = 1046 201 202 203 /** 204 * Purpose for the state of a purse, signed by the exchange's signing key. (Gnu Taler) 205 */ 206 TalerSignaturePurposeExchangePurseStatus = 1047 207 208 209 /** 210 * Signature by which the exchange attests identity attributes of a particular reserve owner. (Gnu Taler) 211 */ 212 TalerSignaturePurposeExchangeReserveAttestDetails = 1048 213 214 215 /** 216 * Signature by which the exchange confirms that a purse expired and a coin was refunded. (Gnu Taler) 217 */ 218 TalerSignaturePurposeExchangeConfirmPurseRefund = 1049 219 220 221 /** 222 * Signature where the Exchange confirms an (age-)withdraw. (Gnu Taler) 223 */ 224 TalerSignaturePurposeExchangeConfirmWithdraw = 1050 225 226 227 /** 228 * Signature where the Exchange confirms a batch recoup of coins to the reserve they were withdrawn from. (Gnu Taler) 229 */ 230 TalerSignaturePurposeExchangeConfirmRecoupWithdrawBatch = 1051 231 232 233 /** 234 * Signature where the Exchange confirms a batch recoup of coins to the old coin they were refreshed from. (Gnu Taler) 235 */ 236 TalerSignaturePurposeExchangeConfirmRecoupRefreshBatch = 1052 237 238 239 /** 240 * Signature where the auditor confirms that he is aware of certain denomination keys from the exchange. (Gnu Taler) 241 */ 242 TalerSignaturePurposeAuditorExchangeKeys = 1064 243 244 245 /** 246 * Signature where the merchant confirms a contract (to the customer). (Gnu Taler) 247 */ 248 TalerSignaturePurposeMerchantContract = 1101 249 250 251 /** 252 * Signature where the merchant confirms a refund (of a coin). (Gnu Taler) 253 */ 254 TalerSignaturePurposeMerchantRefund = 1102 255 256 257 /** 258 * Signature where the merchant confirms that he needs the wire transfer identifier for a deposit operation. (Gnu Taler) 259 */ 260 TalerSignaturePurposeMerchantTrackTransaction = 1103 261 262 263 /** 264 * Signature where the merchant confirms that the payment was successful (Gnu Taler) 265 */ 266 TalerSignaturePurposeMerchantPaymentOk = 1104 267 268 269 /** 270 * Signature where the merchant confirms its own (salted) wire details (not yet really used). (Gnu Taler) 271 */ 272 TalerSignaturePurposeMerchantWireDetails = 1107 273 274 275 /** 276 * Signature where the merchant issues a token by blindly signing it. Signed with the token issue private key. (Gnu Taler) 277 */ 278 TalerSignaturePurposeMerchantTokenIssue = 1108 279 280 281 /** 282 * Signature where the reserve key confirms a withdraw request. Signed with the reserve private key. (Gnu Taler) 283 */ 284 TalerSignaturePurposeWalletReserveWithdraw = 1200 285 286 287 /** 288 * Signature made by the wallet of a user to confirm a deposit of a coin. (Gnu Taler) 289 */ 290 TalerSignaturePurposeWalletCoinDeposit = 1201 291 292 293 /** 294 * Signature using a coin key confirming the melting of a coin. Signed with the coin's private key. (Gnu Taler) 295 */ 296 TalerSignaturePurposeWalletCoinMelt = 1202 297 298 299 /** 300 * Signature using a coin key requesting recoup. Signed with the coin's private key. (Gnu Taler) 301 */ 302 TalerSignaturePurposeWalletCoinRecoup = 1203 303 304 305 /** 306 * Signature using a coin key authenticating link data. Signed with the old coin's private key. (Gnu Taler) 307 */ 308 TalerSignaturePurposeWalletCoinLink = 1204 309 310 311 /** 312 * Signature using a reserve key by which a wallet requests a payment target Uuid for itself. Signs over just a purpose (no body), as the signature only serves to demonstrate that the request comes from the wallet controlling the private key, and not some third party. (Gnu Taler) 313 */ 314 TalerSignaturePurposeWalletAccountSetup = 1205 315 316 317 /** 318 * Signature using a coin key requesting recoup-refresh. Signed with the coin private key. (Gnu Taler) 319 */ 320 TalerSignaturePurposeWalletCoinRecoupRefresh = 1206 321 322 323 /** 324 * Signature using a age restriction key for attestation of a particular age/age-group. (Gnu Taler) 325 */ 326 TalerSignaturePurposeWalletAgeAttestation = 1207 327 328 329 /** 330 * Request full or partial reserve history. Signed with the reserve private key. (Gnu Taler) 331 */ 332 TalerSignaturePurposeWalletReserveHistory = 1208 333 334 335 /** 336 * Request full or partial coin history. Signed with the coin private key. (Gnu Taler) 337 */ 338 TalerSignaturePurposeWalletCoinHistory = 1209 339 340 341 /** 342 * Request purse creation (without reserve). Signed by the purse private key. (Gnu Taler) 343 */ 344 TalerSignaturePurposeWalletPurseCreate = 1210 345 346 347 /** 348 * Request coin to be deposited into a purse. Signed with the coin private key. (Gnu Taler) 349 */ 350 TalerSignaturePurposeWalletPurseDeposit = 1211 351 352 353 /** 354 * Request purse status. Signed with the purse private key. (Gnu Taler) 355 */ 356 TalerSignaturePurposeWalletPurseStatus = 1212 357 358 359 /** 360 * Request purse to be merged with a reserve. Signed with the purse private key. (Gnu Taler) 361 */ 362 TalerSignaturePurposeWalletPurseMerge = 1213 363 364 365 /** 366 * Request purse to be merged with a reserve. Signed by the reserve private key. (Gnu Taler) 367 */ 368 TalerSignaturePurposeWalletAccountMerge = 1214 369 370 371 /** 372 * Request account to be closed. Signed with the reserve private key. (Gnu Taler) 373 */ 374 TalerSignaturePurposeWalletReserveClose = 1215 375 376 377 /** 378 * Associates encrypted contract with a purse. Signed with the purse private key. (Gnu Taler) 379 */ 380 TalerSignaturePurposeWalletPurseEcontract = 1216 381 382 383 /** 384 * Request reserve to be kept open. Signed with the reserve private key. (Gnu Taler) 385 */ 386 TalerSignaturePurposeWalletReserveOpen = 1217 387 388 389 /** 390 * Request coin to be used to pay for reserve to be kept open. Signed with the coin private key. (Gnu Taler) 391 */ 392 TalerSignaturePurposeWalletReserveOpenDeposit = 1218 393 394 395 /** 396 * Request attestation about reserve owner. Signed by the reserve private key. (Gnu Taler) 397 */ 398 TalerSignaturePurposeWalletReserveAttestDetails = 1219 399 400 401 /** 402 * Signature by which a wallet requests a purse to be deleted. (Gnu Taler) 403 */ 404 TalerSignaturePurposeWalletPurseDelete = 1220 405 406 407 /** 408 * Signature where the reserve key confirms an age-withdraw request. Signed with the reserve private key. (Gnu Taler) 409 */ 410 TalerSignaturePurposeWalletReserveAgeWithdraw = 1221 411 412 413 /** 414 * Signature where the token use key confirms the usage of a token on a pay request. Signed with the token use private key. (Gnu Taler) 415 */ 416 TalerSignaturePurposeWalletTokenUse = 1222 417 418 419 /** 420 * Signature used to unclaim an order, allowing other wallets to claim it. Signed with the private key of the claim nonce. (Gnu Taler) 421 */ 422 TalerSignaturePurposeWalletOrderUnclaim = 1223 423 424 425 /** 426 * Signature used to set an account public key as new target of a given wire transfer subject identified by the respective authorization key. Used when shortening wire transfer subjects as per Dd80. The public keypair used for signing corresponds to the wire transfer subject, while the account key is the reserve public key or the merchant public key the wire transfer should be mapped to. Note that despite its name, this signature is not only created by wallets, but also by merchant backends. (Gnu Taler) 427 */ 428 TalerSignaturePurposeWalletPreparedTransferRegister = 1224 429 430 431 /** 432 * Fixme-Antoine. (Gnu Taler) 433 */ 434 TalerSignaturePurposeWalletPreparedTransferUnregister = 1225 435 436 437 /** 438 * Signature on a denomination key announcement. (Gnu Taler) 439 */ 440 TalerSignaturePurposeSmRsaDenominationKey = 1250 441 442 443 /** 444 * Signature on an exchange message signing key announcement. (Gnu Taler) 445 */ 446 TalerSignaturePurposeSmSigningKey = 1251 447 448 449 /** 450 * Signature on a denomination key announcement. (Gnu Taler) 451 */ 452 TalerSignaturePurposeSmCsDenominationKey = 1252 453 454 455 /** 456 * EdDsa test signature. (Gnu Taler) 457 */ 458 TalerSignaturePurposeClientTestEddsa = 1302 459 460 461 /** 462 * EdDsa test signature. (Gnu Taler) 463 */ 464 TalerSignaturePurposeExchangeTestEddsa = 1303 465 466 467 /** 468 * Signature by which an Aml officer signs an Aml decision. (Gnu Taler) 469 */ 470 TalerSignaturePurposeAmlDecision = 1350 471 472 473 /** 474 * Signature by which an Aml officer requests Aml data. (Gnu Taler) 475 */ 476 TalerSignaturePurposeAmlQuery = 1351 477 478 479 /** 480 * Signature by which an account owner authorizes access to a Kyc operation. (Gnu Taler) 481 */ 482 TalerSignaturePurposeKycAuth = 1360 483 484 485 /** 486 * EdDsa signature for a policy upload. (Gnu Taler) 487 */ 488 TalerSignaturePurposeAnastasisPolicyUpload = 1400 489 490 491 /** 492 * EdDsa signature for a backup upload. (Gnu Taler) 493 */ 494 TalerSignaturePurposeSyncBackupUpload = 1450 495 496 497 /** 498 * EdDsa signature for uploading or updating a block in a backup. (Gnu Taler) 499 */ 500 TalerSignaturePurposeSyncBlockUpload = 1452 501 502 503 /** 504 * EdDsa signature for deleting a block from a backup. (Gnu Taler) 505 */ 506 TalerSignaturePurposeSyncBlockDelete = 1453 507 508 509 /** 510 * EdDsa signature for uploading a blob to the hash-indexed object store. (Gnu Taler) 511 */ 512 TalerSignaturePurposeSyncObjectUpload = 1454 513 514 515 /** 516 * Signature over messages to delete in the mailbox service (Gnu Taler) 517 */ 518 TalerSignaturePurposeMailboxMessagesDelete = 1551 519 520 521 /** 522 * Signature for mailbox registration request (Gnu Taler) 523 */ 524 TalerSignaturePurposeMailboxRegister = 1552 525 )