Changeset 77 for trunk/standards

Show
Ignore:
Timestamp:
02/01/08 01:10:04 (4 years ago)
Author:
ocnils
Message:

Replace REDEEM_COINS with TRANSFER_TOKEN in #7 and #8
Introduce token exchange via TRANSFER_TOKEN at the end

of "#6 Wallet to Wallet"

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/standards/protocol.txt

    r76 r77  
    116116* Send  
    117117 
    118     TRANSFER_TOKEN_REQUEST( transaction_id, list_of_options, target, \ 
     118   TRANSFER_TOKEN_REQUEST( transaction_id, list_of_options, target, \ 
    119119                            list_of_blinds, list_of_coins ) 
    120120 
     
    337337        UNLOCK_COINS_REQUEST(transaction_id) 
    338338 
    339     * Wallet Bob sends buy request (blanks + coins) (Wallet Bob continues as in #4 and #8) 
    340         (REDEEM_COINS+MINT_REQUEST) 
     339    * Wallet Bob sends buy request (blanks + coins) 
     340     
     341        TRANSFER_TOKEN_REQUEST( transaction_id, list_of_options, "", \ 
     342                                list_of_blinds, list_of_coins ) 
    341343 
    342344    * IS has to check if sum of blanks and coins are equal 
    343345 
     346    * (Wallet Bob and IS continue as in #4 and #8) 
     347 
     348 
    344349 
    345350#7 Redeeming Coins  
     
    347352* Wallet locks serials at IS (see above LOCK_COINS) 
    348353 
    349 * Wallet sends coins + target to IS 
    350    
    351   - target can be an account 
    352     REDEEM_COINS_REQUEST(transaction_id, target, list(coin1, ...) 
    353  
    354     target is of the form: 
     354* Wallet sends coins + target to IS (was: REDEEM_COINS_REQUEST) 
     355 
     356   TRANSFER_TOKEN_REQUEST( transaction_id, list_of_options, target, \ 
     357                           (empty list), list_of_coins ) 
     358 
     359    target may be an account and is of the form: 
    355360        MINT_REQUEST=#base64(request_id) 
    356361        ONLINE_BANKING_ACCOUNT=#string(account_identifier) 
     
    370375    - if target is valid 
    371376 
    372 * IS rejects with reason (key id unknown, coin outdated, coin spent, signature invalid) per coin or  
    373      REDEEM_COINS_REJECT( list(coin1, ...) ) 
     377* IS rejects with reason (key id unknown, coin outdated, coin spent, signature 
     378  invalid) per coin or [was: REDEEM_COINS_REJECT] 
     379 
     380    TRANSFER_TOKEN_REJECT( transaction_id, reason, 
     381                           (empty list), list( (coin1.key_id,  reason1), ... )  ) 
    374382 
    375383* (IS tries to service target, rejects with reason if not possible) 
     
    377385* IS enters serials into DSDB 
    378386 
    379 * IS sends accept to Wallet 
    380       REDEEM_COINS_ACCEPT 
    381  
     387* IS sends accept to Wallet [was: REDEEM_COINS_ACCEPT] 
     388 
     389    TRANSFER_TOKEN_ACCEPT( transaction_id, message, (empty list)) 
     390