Changeset 15 for trunk/standards

Show
Ignore:
Timestamp:
12/13/07 17:15:51 (4 years ago)
Author:
ocmathew
Message:

Add reasons to all messages

Location:
trunk/standards/messages
Files:
4 modified

Legend:

Unmodified
Added
Removed
  • trunk/standards/messages/DSDB.to.wallet.txt

    r11 r15  
    2222                                                #key_identifier1 #encrypted_serial1 "Reason 1" 
    2323                                                #key_identifier2 #encrypted_serial2 "Reason 2" 
    24                                                 Reasons: 
    25                                                         Key ID of DSDB is unknown or expired       Permanant 
    26                                                         Key ID of blank is unknown or expired      Permanant 
    27                                                         Decryption of serial failed                Permanant 
    28                                                         Serial already spent                       Permanant 
    29                                                         Serial locked (not spent)                  Temporary 
     24                                                        Reasons: 
     25                                                                Key ID of DSDB is unknown or expired            Permanant 
     26                                                                Key ID of blank is unknown or expired           Permanant 
     27                                                                Decryption of serial failed                                     Permanant 
     28                                                                Serial already redeemed                                         Permanant 
     29                                                                Serial locked (not spent)                                       Temporary 
    3030 
    3131 
     
    3838 
    3939DSDB: 
     40  UNLOCK_COINS_PASS 
    4041  UNLOCK_COINS_FAILURE  #hex_string(transaction_id) "Reason" 
    41   UNLOCK_COINS_PASS 
     42                                                        Reasons: 
     43                                                                Unknown transaction_id 
     44                                                                Transaction already completed 
     45                                                                Lock expired *Not really a failure...* 
  • trunk/standards/messages/IS.to.wallet.txt

    r12 r15  
    2121  MINTING_KEY_PASS      keycertificate 
    2222  MINTING_KEY_FAILURE   "Reason" 
     23                                                Reasons: 
     24                                                        Unknown denomination 
     25                                                        Unknown key_id 
    2326   
    2427 
     
    3437IS: 
    3538  MINT_REJECT   #hex_string(number_of_rejected_blinds) 
    36                                 #key_id(blind1) "Bad Key ID" 
    37                                 #key_id(blind2) "Bad Key ID" 
     39                                #key_id(blind1) "Reason1" 
     40                                #key_id(blind2) "Reason2" 
     41                                        Reasons: 
     42                                                Unknown key_id 
     43                                                Unable to blind 
     44                                                        Question: if the IS doesn't have the minting key, use a similar key to test? 
    3845 
    3946  MINT_ACCEPT   #base64(request_id) 
     
    5057IS: 
    5158  FETCH_MINTED_FAILURE  #base64(request_id) "Reason" 
    52  
     59                                                        Reasons: 
     60                                                                Request not credited 
     61                                                                        Note: this message may be a temporary failure (FETCH_MINTED_WAIT) 
     62                                                                Unknown request_id 
     63                                                                Unable to blind (note: redundant? maybe not for all signatures) 
     64                                                                 
    5365  FETCH_MINTED_WAIT     #base64(request_id) "Reason" 
     66                                                        Reasons: 
     67                                                                Not yet minted 
     68                                                                Request not credited 
     69                                                                        Note: this message may be a permanant failure (FETCH_MINTED_FAILURE) 
    5470   
    55  
    5671  FETCH_MINTED_ACCEPT   #base64(request_id) #hex_string(number_of_blinds) 
    5772                                                #base64(signature_of_blind1) 
     
    7893                                                #base64(coin1) 
    7994                                                #base64(coin2) 
    80  
     95                                                        Targets: 
     96                                                                Strings which refer to a specific target for the redeeming of the coins. 
     97                                                                i.e. an account somewhere, a request for more coins, etc. 
     98                                                                The only required defined target is for another transaction to the mint. 
     99                                                                        MINT_REQUEST=#string(request_id) 
    81100IS: 
    82101  REDEEM_COINS_REJECT   #hex_string(number_of_coins) 
    83                                                 #base64(coin1) "Reason" 
    84                                                 #base64(coin2) "Reason" 
     102                                                #base64(coin1) "Reason1" 
     103                                                #base64(coin2) "Reason2" 
     104                                                        Reasons: 
     105                                                                Unknown key_id 
     106                                                                Coin expired 
     107                                                                Coin already redeemed 
     108                                                                Invalid coin 
     109                                                                Unknown target 
    85110 
    86111  REDEEM_COINS_ACCEPT 
  • trunk/standards/messages/all.txt

    r12 r15  
    3434B: 
    3535  BLANK_FAILURE #hex_string(number_of_failures) 
    36                                 #base64(encrypted serial of blank1) "Why did we fail?!?" 
    37                                 #base64(encrypted serial of blank2) "Why did we fail?!?" 
    38  
    39   BLANK_FAILURE #hex_string(0) "reason"   
     36                                #base64(encrypted serial of blank1) "Reason1" 
     37                                #base64(encrypted serial of blank2) "Reason2" 
     38                                        Reasons: 
     39                                                Malformed blank 
     40                                                Unknown issuer 
     41                                                        Note: Also used for an untrusted issuer 
     42                                                 
     43  BLANK_FAILURE #hex_string(0) "reason" 
     44                                        Reason: 
     45                                                Cancelled 
     46                                                 
    4047 
    4148  BLANK_REJECT  #hex_string(number_of_failures) 
    42                                 #base64(encrypted serial of blank1) "Why did we fail?!?" 
    43                                 #base64(encrypted serial of blank2) "Why did we fail?!?" 
    44  
    45   BLANK_REJECT  #hex_string(0) "reason"   
     49                                #base64(encrypted serial of blank1) "Reason1" 
     50                                #base64(encrypted serial of blank2) "Reason2" 
     51                                        Reasons: 
     52                                                DSDB: Key ID of DSDB is unknown or expired              Permanant 
     53                                                DSDB: Key ID of blank is unknown or expired             Permanant 
     54                                                DSDB: Decryption of serial failed                               Permanant 
     55                                                DSDB: Serial already redeemed                                   Permanant 
     56                                                DSDB: Serial locked (not spent)                                 Temporary 
     57 
     58  BLANK_REJECT  #hex_string(0) "reason" 
     59                                        Reasons: 
     60                                                Cancelled 
    4661 
    4762  BLANK_ACCEPT 
     
    6075B: 
    6176  COINS_REJECT  #hex_string(number_of) 
    62                                 #base64(coin1) "Reason" 
    63                                 #base64(coin2) "Reason" 
     77                                #base64(coin1) "Reason1" 
     78                                #base64(coin2) "Reason2" 
     79                                        Reasons: 
     80                                                Invalid coin 
     81                                                Unknown coin 
     82                                                        Note: Used when the coin we are given is different than the blank 
    6483 
    6584  COINS_REJECT  #hex_string(0) "Reason" 
     85                                        Reasons: 
     86                                                *I can't think of anything valid* 
    6687 
    6788  COINS_ACCEPT 
     
    93114  MINTING_KEY_PASS      keycertificate 
    94115  MINTING_KEY_FAILURE   "Reason" 
     116                                                Reasons: 
     117                                                        Unknown denomination 
     118                                                        Unknown key_id 
    95119   
    96120 
     
    106130IS: 
    107131  MINT_REJECT   #hex_string(number_of_rejected_blinds) 
    108                                 #key_id(blind1) "Bad Key ID" 
    109                                 #key_id(blind2) "Bad Key ID" 
     132                                #key_id(blind1) "Reason1" 
     133                                #key_id(blind2) "Reason2" 
     134                                        Reasons: 
     135                                                Unknown key_id 
     136                                                Unable to blind 
     137                                                        Question: if the IS doesn't have the minting key, use a similar key to test? 
    110138 
    111139  MINT_ACCEPT   #base64(request_id) 
     
    122150IS: 
    123151  FETCH_MINTED_FAILURE  #base64(request_id) "Reason" 
    124  
     152                                                        Reasons: 
     153                                                                Request not credited 
     154                                                                        Note: this message may be a temporary failure (FETCH_MINTED_WAIT) 
     155                                                                Unknown request_id 
     156                                                                Unable to blind (note: redundant? maybe not for all signatures) 
     157                                                                 
    125158  FETCH_MINTED_WAIT     #base64(request_id) "Reason" 
     159                                                        Reasons: 
     160                                                                Not yet minted 
     161                                                                Request not credited 
     162                                                                        Note: this message may be a permanant failure (FETCH_MINTED_FAILURE) 
    126163   
    127  
    128164  FETCH_MINTED_ACCEPT   #base64(request_id) #hex_string(number_of_blinds) 
    129165                                                #base64(signature_of_blind1) 
     
    150186                                                #base64(coin1) 
    151187                                                #base64(coin2) 
    152  
     188                                                        Targets: 
     189                                                                Strings which refer to a specific target for the redeeming of the coins. 
     190                                                                i.e. an account somewhere, a request for more coins, etc. 
     191                                                                The only required defined target is for another transaction to the mint. 
     192                                                                        MINT_REQUEST=#string(request_id) 
    153193IS: 
    154194  REDEEM_COINS_REJECT   #hex_string(number_of_coins) 
    155                                                 #base64(coin1) "Reason" 
    156                                                 #base64(coin2) "Reason" 
     195                                                #base64(coin1) "Reason1" 
     196                                                #base64(coin2) "Reason2" 
     197                                                        Reasons: 
     198                                                                Unknown key_id 
     199                                                                Coin expired 
     200                                                                Coin already redeemed 
     201                                                                Invalid coin 
     202                                                                Unknown target 
    157203 
    158204  REDEEM_COINS_ACCEPT 
     
    185231                                                #key_identifier1 #encrypted_serial1 "Reason 1" 
    186232                                                #key_identifier2 #encrypted_serial2 "Reason 2" 
    187                                                 Reasons: 
    188                                                         Key ID of DSDB is unknown or expired       Permanant 
    189                                                         Key ID of blank is unknown or expired      Permanant 
    190                                                         Decryption of serial failed                Permanant 
    191                                                         Serial already spent                       Permanant 
    192                                                         Serial locked (not spent)                  Temporary 
     233                                                        Reasons: 
     234                                                                Key ID of DSDB is unknown or expired            Permanant 
     235                                                                Key ID of blank is unknown or expired           Permanant 
     236                                                                Decryption of serial failed                                     Permanant 
     237                                                                Serial already redeemed                                         Permanant 
     238                                                                Serial locked (not spent)                                       Temporary 
    193239 
    194240 
     
    201247 
    202248DSDB: 
     249  UNLOCK_COINS_PASS 
    203250  UNLOCK_COINS_FAILURE  #hex_string(transaction_id) "Reason" 
    204   UNLOCK_COINS_PASS 
    205  
    206  
     251                                                        Reasons: 
     252                                                                Unknown transaction_id 
     253                                                                Transaction already completed 
     254                                                                Lock expired *Not really a failure...* 
     255 
     256 
     257 
  • trunk/standards/messages/wallet.to.wallet.txt

    r12 r15  
    1818B: 
    1919  BLANK_FAILURE #hex_string(number_of_failures) 
    20                                 #base64(encrypted serial of blank1) "Why did we fail?!?" 
    21                                 #base64(encrypted serial of blank2) "Why did we fail?!?" 
    22  
    23   BLANK_FAILURE #hex_string(0) "reason"   
     20                                #base64(encrypted serial of blank1) "Reason1" 
     21                                #base64(encrypted serial of blank2) "Reason2" 
     22                                        Reasons: 
     23                                                Malformed blank 
     24                                                Unknown issuer 
     25                                                        Note: Also used for an untrusted issuer 
     26                                                 
     27  BLANK_FAILURE #hex_string(0) "reason" 
     28                                        Reason: 
     29                                                Cancelled 
     30                                                 
    2431 
    2532  BLANK_REJECT  #hex_string(number_of_failures) 
    26                                 #base64(encrypted serial of blank1) "Why did we fail?!?" 
    27                                 #base64(encrypted serial of blank2) "Why did we fail?!?" 
     33                                #base64(encrypted serial of blank1) "Reason1" 
     34                                #base64(encrypted serial of blank2) "Reason2" 
     35                                        Reasons: 
     36                                                DSDB: Key ID of DSDB is unknown or expired              Permanant 
     37                                                DSDB: Key ID of blank is unknown or expired             Permanant 
     38                                                DSDB: Decryption of serial failed                               Permanant 
     39                                                DSDB: Serial already redeemed                                   Permanant 
     40                                                DSDB: Serial locked (not spent)                                 Temporary 
    2841 
    29   BLANK_REJECT  #hex_string(0) "reason"   
     42  BLANK_REJECT  #hex_string(0) "reason" 
     43                                        Reasons: 
     44                                                Cancelled 
    3045 
    3146  BLANK_ACCEPT 
     
    4459B: 
    4560  COINS_REJECT  #hex_string(number_of) 
    46                                 #base64(coin1) "Reason" 
    47                                 #base64(coin2) "Reason" 
     61                                #base64(coin1) "Reason1" 
     62                                #base64(coin2) "Reason2" 
     63                                        Reasons: 
     64                                                Invalid coin 
     65                                                Unknown coin 
     66                                                        Note: Used when the coin we are given is different than the blank 
    4867 
    4968  COINS_REJECT  #hex_string(0) "Reason" 
     69                                        Reasons: 
     70                                                *I can't think of anything valid* 
    5071 
    5172  COINS_ACCEPT