Changeset 15 for trunk/standards
- Timestamp:
- 12/13/07 17:15:51 (4 years ago)
- Location:
- trunk/standards/messages
- Files:
-
- 4 modified
-
DSDB.to.wallet.txt (modified) (2 diffs)
-
IS.to.wallet.txt (modified) (4 diffs)
-
all.txt (modified) (8 diffs)
-
wallet.to.wallet.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/standards/messages/DSDB.to.wallet.txt
r11 r15 22 22 #key_identifier1 #encrypted_serial1 "Reason 1" 23 23 #key_identifier2 #encrypted_serial2 "Reason 2" 24 Reasons:25 Key ID of DSDB is unknown or expiredPermanant26 Key ID of blank is unknown or expiredPermanant27 Decryption of serial failedPermanant28 Serial already spentPermanant29 Serial locked (not spent)Temporary24 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 30 30 31 31 … … 38 38 39 39 DSDB: 40 UNLOCK_COINS_PASS 40 41 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 21 21 MINTING_KEY_PASS keycertificate 22 22 MINTING_KEY_FAILURE "Reason" 23 Reasons: 24 Unknown denomination 25 Unknown key_id 23 26 24 27 … … 34 37 IS: 35 38 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? 38 45 39 46 MINT_ACCEPT #base64(request_id) … … 50 57 IS: 51 58 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 53 65 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) 54 70 55 56 71 FETCH_MINTED_ACCEPT #base64(request_id) #hex_string(number_of_blinds) 57 72 #base64(signature_of_blind1) … … 78 93 #base64(coin1) 79 94 #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) 81 100 IS: 82 101 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 85 110 86 111 REDEEM_COINS_ACCEPT -
trunk/standards/messages/all.txt
r12 r15 34 34 B: 35 35 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 40 47 41 48 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 46 61 47 62 BLANK_ACCEPT … … 60 75 B: 61 76 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 64 83 65 84 COINS_REJECT #hex_string(0) "Reason" 85 Reasons: 86 *I can't think of anything valid* 66 87 67 88 COINS_ACCEPT … … 93 114 MINTING_KEY_PASS keycertificate 94 115 MINTING_KEY_FAILURE "Reason" 116 Reasons: 117 Unknown denomination 118 Unknown key_id 95 119 96 120 … … 106 130 IS: 107 131 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? 110 138 111 139 MINT_ACCEPT #base64(request_id) … … 122 150 IS: 123 151 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 125 158 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) 126 163 127 128 164 FETCH_MINTED_ACCEPT #base64(request_id) #hex_string(number_of_blinds) 129 165 #base64(signature_of_blind1) … … 150 186 #base64(coin1) 151 187 #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) 153 193 IS: 154 194 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 157 203 158 204 REDEEM_COINS_ACCEPT … … 185 231 #key_identifier1 #encrypted_serial1 "Reason 1" 186 232 #key_identifier2 #encrypted_serial2 "Reason 2" 187 Reasons:188 Key ID of DSDB is unknown or expiredPermanant189 Key ID of blank is unknown or expiredPermanant190 Decryption of serial failedPermanant191 Serial already spentPermanant192 Serial locked (not spent)Temporary233 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 193 239 194 240 … … 201 247 202 248 DSDB: 249 UNLOCK_COINS_PASS 203 250 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 18 18 B: 19 19 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 24 31 25 32 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 28 41 29 BLANK_REJECT #hex_string(0) "reason" 42 BLANK_REJECT #hex_string(0) "reason" 43 Reasons: 44 Cancelled 30 45 31 46 BLANK_ACCEPT … … 44 59 B: 45 60 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 48 67 49 68 COINS_REJECT #hex_string(0) "Reason" 69 Reasons: 70 *I can't think of anything valid* 50 71 51 72 COINS_ACCEPT
