Changeset 18 for trunk/standards
- Timestamp:
- 12/15/07 18:56:42 (4 years ago)
- Location:
- trunk/standards/messages
- Files:
-
- 4 modified
-
DSDB.to.wallet.txt (modified) (4 diffs)
-
IS.to.wallet.txt (modified) (9 diffs)
-
all.txt (modified) (19 diffs)
-
wallet.to.wallet.txt (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/standards/messages/DSDB.to.wallet.txt
r15 r18 15 15 #key_identifier1 #encrypted_serial1 16 16 #key_identifier2 #encrypted_serial2 17 Prior: Hello 18 Follow: LOCK_COINS_ACCEPT 19 LOCK_COINS_FAILURE 17 20 18 21 DSDB: 19 22 LOCK_COINS_ACCEPT #hex_string(transaction_id) TIME(lock_expires) 23 Prior: LOCK_COINS_REQUEST 24 Follow: Goodbye 20 25 21 26 LOCK_COINS_FAILURE #hex_sting(transaction_id) #hex_string(number_of_failures) … … 28 33 Serial already redeemed Permanant 29 34 Serial locked (not spent) Temporary 35 Prior: LOCK_COINS_REQUEST 36 Follow: Goodbye 30 37 31 38 … … 36 43 Wallet: 37 44 UNLOCK_COINS_REQUEST #hex_string(transaction_id) 45 Prior: Hello 46 Follow: UNLOCK_COINS_PASS 47 UNLOCK_COINS_FAILURE 38 48 39 49 DSDB: 40 50 UNLOCK_COINS_PASS 51 Prior: UNLOCK_COINS_REQUEST 52 Follow: Goodbye 53 41 54 UNLOCK_COINS_FAILURE #hex_string(transaction_id) "Reason" 42 55 Reasons: … … 44 57 Transaction already completed 45 58 Lock expired *Not really a failure...* 59 Prior: UNLOCK_COINS_REQUEST 60 Follow: Goodbye -
trunk/standards/messages/IS.to.wallet.txt
r16 r18 16 16 Wallet: 17 17 MINTING_KEY_FETCH_DENOMINATION #string(denomination) 18 Prior: Hello 19 Follow: MINTING_KEY_PASS 20 MINTING_KEY_FAILURE 21 18 22 MINTING_KEY_FETCH_KEYID #hexstring(key_id)} 23 Prior: Hello 24 Follow: MINTING_KEY_PASS 25 MINTING_KEY_FAILURE 19 26 20 27 IS: 21 28 MINTING_KEY_PASS keycertificate 29 Prior: MINTING_KEY_FETCH_DENOMINATION 30 MINTING_KEY_FETCH_KEYID 31 Follow: Goodbye 32 22 33 MINTING_KEY_FAILURE "Reason" 23 34 Reasons: 24 35 Unknown denomination 25 36 Unknown key_id 37 Prior: MINTING_KEY_FETCH_DENOMINATION 38 MINTING_KEY_FETCH_KEYID 39 Follow: Goodbye 26 40 27 41 … … 34 48 #key_id(blind1) #base64(blind1) 35 49 #key_id(blind2) #base64(blind2) 50 Prior: Hello 51 Follow: MINT_REJECT 52 MINT_ACCEPT 36 53 37 54 IS: … … 43 60 Unable to blind 44 61 Question: if the IS doesn't have the minting key, use a similar key to test? 62 Prior: MINT_REQUEST 63 Follow: Goodbye 45 64 46 65 MINT_ACCEPT #base64(request_id) 66 Prior: MINT_REQUEST 67 Follow: Goodbye 47 68 48 69 … … 53 74 Wallet: 54 75 FETCH_MINTED_REQUEST #base64(request_id) 76 Prior: Hello 77 Follow: FETCH_MINTED_FAILURE 78 FETCH_MINTED_WAIT 79 FETCH_MINTED_ACCEPT 55 80 56 81 … … 62 87 Unknown request_id 63 88 Unable to blind (note: redundant? maybe not for all signatures) 89 Prior: FETCH_MINTED_REQUEST 90 Follow: Goodbye 64 91 65 92 FETCH_MINTED_WAIT #base64(request_id) "Reason" … … 68 95 Request not credited 69 96 Note: this message may be a permanant failure (FETCH_MINTED_FAILURE) 97 Prior: FETCH_MINTED_REQUEST 98 Follow: Goodbye 70 99 71 100 FETCH_MINTED_ACCEPT #base64(request_id) #hex_string(number_of_blinds) 72 101 #base64(signature_of_blind1) 73 102 #base64(signature_of_blind2) 103 Prior: FETCH_MINTED_REQUEST 104 Follow: Goodbye 74 105 75 106 … … 80 111 Wallet: 81 112 DSDB_KEY_REQUEST 113 Prior: Hello 114 Follow: DSDB_KEY_PASS 82 115 83 116 IS: 84 117 DSDB_KEY_PASS keycertificate 118 Prior: DSDB_KEY_REQUEST 119 Follow: Goodbye 85 120 86 121 … … 98 133 The only required defined target is for another transaction to the mint. 99 134 MINT_REQUEST=#string(request_id) 135 Prior: Hello 136 Follow: REDEEM_COINS_REJECT 137 REDEEM_COINS_ACCEPT 100 138 IS: 101 139 REDEEM_COINS_REJECT #hex_string(number_of_coins) … … 109 147 Unknown target 110 148 Note: Can be used if Mint requires request_id to already be awaiting minting 149 Prior: REDEEM_COINS_REQUEST 150 Follow: Goodbye 111 151 112 152 REDEEM_COINS_ACCEPT 153 Prior: REDEEM_COINS_REQUEST 154 Follow: Goodbye -
trunk/standards/messages/all.txt
r16 r18 11 11 = REDEEM_COINS = 12 12 ===================== 13 14 Prior: All messages between two entities that can occur directly before this one 15 Follow: All messages between two entities that can occur directly after this one 16 17 Hello is the initial handshake between two entities or the state after a Goodbye 18 Goodbye is the end of a transaction, although also a Hello for a new transaction 13 19 14 20 ============================================================================ … … 31 37 blank1 32 38 blank2 39 Prior: Hello 40 Follow: BLANK_FAILURE 41 BLANK_REJECT 42 BLANK_ACCEPT 33 43 34 44 B: … … 40 50 Unknown issuer 41 51 Note: Also used for an untrusted issuer 52 Prior: BLANK_PRESENT 53 Follow: Goodbye 42 54 43 55 BLANK_FAILURE #hex_string(0) "reason" 44 56 Reason: 45 57 Cancelled 58 Prior: BLANK_PRESENT 59 Follow: Goodbye 46 60 47 61 … … 55 69 DSDB: Serial already redeemed Permanant 56 70 DSDB: Serial locked (not spent) Temporary 71 Prior: BLANK_PRESENT 72 Follow: Goodbye 57 73 58 74 BLANK_REJECT #hex_string(0) "reason" 59 75 Reasons: 60 76 Cancelled 77 Prior: BLANK_PRESENT 78 BLANK_ACCEPT (Message from self) 79 Follow: Goodbye 61 80 62 81 BLANK_ACCEPT 63 Note: After ACCEPT, a REJECT #hex_string(0) can be given to abort the transaction 82 Note: After ACCEPT, a REJECT #hex_string(0) can be given to abort the transaction 83 Prior: BLANK_PRESENT 84 Follow: COINS_REDEEM 85 BLANK_REJECT (Message from self) 64 86 65 87 … … 72 94 #base64(coin1) 73 95 #base64(coin2) 96 Prior: BLANK_ACCEPT 97 Follow: COINS_REJECT 98 COINS_ACCEPT 74 99 75 100 B: … … 81 106 Unknown coin 82 107 Note: Used when the coin we are given is different than the blank 108 Prior: COINS_REDEEM 109 Follow: COINS_REDEEM 110 Goodbye 83 111 84 112 COINS_REJECT #hex_string(0) "Reason" 85 113 Reasons: 86 114 *I can't think of anything valid* 115 Prior: COINS_REDEEM 116 Follow: COINS_REDEEM 117 Goodbye 87 118 88 119 COINS_ACCEPT 120 Prior: COINS_REDEEM 121 Follow: Goodbye 89 122 90 123 … … 109 142 Wallet: 110 143 MINTING_KEY_FETCH_DENOMINATION #string(denomination) 144 Prior: Hello 145 Follow: MINTING_KEY_PASS 146 MINTING_KEY_FAILURE 147 111 148 MINTING_KEY_FETCH_KEYID #hexstring(key_id)} 149 Prior: Hello 150 Follow: MINTING_KEY_PASS 151 MINTING_KEY_FAILURE 112 152 113 153 IS: 114 154 MINTING_KEY_PASS keycertificate 155 Prior: MINTING_KEY_FETCH_DENOMINATION 156 MINTING_KEY_FETCH_KEYID 157 Follow: Goodbye 158 115 159 MINTING_KEY_FAILURE "Reason" 116 160 Reasons: 117 161 Unknown denomination 118 162 Unknown key_id 163 Prior: MINTING_KEY_FETCH_DENOMINATION 164 MINTING_KEY_FETCH_KEYID 165 Follow: Goodbye 119 166 120 167 … … 127 174 #key_id(blind1) #base64(blind1) 128 175 #key_id(blind2) #base64(blind2) 176 Prior: Hello 177 Follow: MINT_REJECT 178 MINT_ACCEPT 129 179 130 180 IS: … … 136 186 Unable to blind 137 187 Question: if the IS doesn't have the minting key, use a similar key to test? 188 Prior: MINT_REQUEST 189 Follow: Goodbye 138 190 139 191 MINT_ACCEPT #base64(request_id) 192 Prior: MINT_REQUEST 193 Follow: Goodbye 140 194 141 195 … … 146 200 Wallet: 147 201 FETCH_MINTED_REQUEST #base64(request_id) 202 Prior: Hello 203 Follow: FETCH_MINTED_FAILURE 204 FETCH_MINTED_WAIT 205 FETCH_MINTED_ACCEPT 148 206 149 207 … … 155 213 Unknown request_id 156 214 Unable to blind (note: redundant? maybe not for all signatures) 215 Prior: FETCH_MINTED_REQUEST 216 Follow: Goodbye 157 217 158 218 FETCH_MINTED_WAIT #base64(request_id) "Reason" … … 161 221 Request not credited 162 222 Note: this message may be a permanant failure (FETCH_MINTED_FAILURE) 223 Prior: FETCH_MINTED_REQUEST 224 Follow: Goodbye 163 225 164 226 FETCH_MINTED_ACCEPT #base64(request_id) #hex_string(number_of_blinds) 165 227 #base64(signature_of_blind1) 166 228 #base64(signature_of_blind2) 229 Prior: FETCH_MINTED_REQUEST 230 Follow: Goodbye 167 231 168 232 … … 173 237 Wallet: 174 238 DSDB_KEY_REQUEST 239 Prior: Hello 240 Follow: DSDB_KEY_PASS 175 241 176 242 IS: 177 243 DSDB_KEY_PASS keycertificate 244 Prior: DSDB_KEY_REQUEST 245 Follow: Goodbye 178 246 179 247 … … 191 259 The only required defined target is for another transaction to the mint. 192 260 MINT_REQUEST=#string(request_id) 261 Prior: Hello 262 Follow: REDEEM_COINS_REJECT 263 REDEEM_COINS_ACCEPT 193 264 IS: 194 265 REDEEM_COINS_REJECT #hex_string(number_of_coins) … … 202 273 Unknown target 203 274 Note: Can be used if Mint requires request_id to already be awaiting minting 275 Prior: REDEEM_COINS_REQUEST 276 Follow: Goodbye 204 277 205 278 REDEEM_COINS_ACCEPT 279 Prior: REDEEM_COINS_REQUEST 280 Follow: Goodbye 206 281 207 282 … … 225 300 #key_identifier1 #encrypted_serial1 226 301 #key_identifier2 #encrypted_serial2 302 Prior: Hello 303 Follow: LOCK_COINS_ACCEPT 304 LOCK_COINS_FAILURE 227 305 228 306 DSDB: 229 307 LOCK_COINS_ACCEPT #hex_string(transaction_id) TIME(lock_expires) 308 Prior: LOCK_COINS_REQUEST 309 Follow: Goodbye 230 310 231 311 LOCK_COINS_FAILURE #hex_sting(transaction_id) #hex_string(number_of_failures) … … 238 318 Serial already redeemed Permanant 239 319 Serial locked (not spent) Temporary 320 Prior: LOCK_COINS_REQUEST 321 Follow: Goodbye 240 322 241 323 … … 246 328 Wallet: 247 329 UNLOCK_COINS_REQUEST #hex_string(transaction_id) 330 Prior: Hello 331 Follow: UNLOCK_COINS_PASS 332 UNLOCK_COINS_FAILURE 248 333 249 334 DSDB: 250 335 UNLOCK_COINS_PASS 336 Prior: UNLOCK_COINS_REQUEST 337 Follow: Goodbye 338 251 339 UNLOCK_COINS_FAILURE #hex_string(transaction_id) "Reason" 252 340 Reasons: … … 254 342 Transaction already completed 255 343 Lock expired *Not really a failure...* 256 257 258 344 Prior: UNLOCK_COINS_REQUEST 345 Follow: Goodbye 346 347 348 349 -
trunk/standards/messages/wallet.to.wallet.txt
r15 r18 15 15 blank1 16 16 blank2 17 Prior: Hello 18 Follow: BLANK_FAILURE 19 BLANK_REJECT 20 BLANK_ACCEPT 17 21 18 22 B: … … 24 28 Unknown issuer 25 29 Note: Also used for an untrusted issuer 30 Prior: BLANK_PRESENT 31 Follow: Goodbye 26 32 27 33 BLANK_FAILURE #hex_string(0) "reason" 28 34 Reason: 29 35 Cancelled 36 Prior: BLANK_PRESENT 37 Follow: Goodbye 30 38 31 39 … … 39 47 DSDB: Serial already redeemed Permanant 40 48 DSDB: Serial locked (not spent) Temporary 49 Prior: BLANK_PRESENT 50 Follow: Goodbye 41 51 42 52 BLANK_REJECT #hex_string(0) "reason" 43 53 Reasons: 44 54 Cancelled 55 Prior: BLANK_PRESENT 56 BLANK_ACCEPT (Message from self) 57 Follow: Goodbye 45 58 46 59 BLANK_ACCEPT 47 Note: After ACCEPT, a REJECT #hex_string(0) can be given to abort the transaction 60 Note: After ACCEPT, a REJECT #hex_string(0) can be given to abort the transaction 61 Prior: BLANK_PRESENT 62 Follow: COINS_REDEEM 63 BLANK_REJECT (Message from self) 48 64 49 65 … … 56 72 #base64(coin1) 57 73 #base64(coin2) 74 Prior: BLANK_ACCEPT 75 Follow: COINS_REJECT 76 COINS_ACCEPT 58 77 59 78 B: … … 65 84 Unknown coin 66 85 Note: Used when the coin we are given is different than the blank 86 Prior: COINS_REDEEM 87 Follow: COINS_REDEEM 88 Goodbye 67 89 68 90 COINS_REJECT #hex_string(0) "Reason" 69 91 Reasons: 70 92 *I can't think of anything valid* 93 Prior: COINS_REDEEM 94 Follow: COINS_REDEEM 95 Goodbye 71 96 72 97 COINS_ACCEPT 98 Prior: COINS_REDEEM 99 Follow: Goodbye
