Changeset 74 for trunk/standards

Show
Ignore:
Timestamp:
02/01/08 00:50:49 (4 years ago)
Author:
ocnils
Message:

Replace MINT_REQUEST with TRANSFER_TOKEN_REQUEST

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/standards/protocol.txt

    r73 r74  
    151151#4 wallet send minting request to issuer   
    152152 
    153 * Send  
    154  
    155     MINT_REQUEST(request_id, list( (blind1.key_id, blind1), ... ) ) 
     153* Send (was: MINT_REQUEST) 
     154 
     155    TRANSFER_TOKEN_REQUEST( transaction_id, list_of_options, target, \ 
     156                            list_of_blinds, (empty list) ) 
    156157 
    157158  to issuer service 
    158159 
    159 * Issuer: if key_id is not current: 
    160  
    161     MINT_REJECT( list( (blind1.key_id, "Bad Key ID"), ... ) ) 
    162  
    163   Elif request will not be minted (e.g., payment not yet received): 
    164  
    165     MINT_REJECT( list( (blind1.key_id, "Reason1"), ... ) ) 
    166    
    167   Else: IS passes (maybe asynchronous) request to mint and: 
    168     MINT_ACCEPT(request_id) 
     160* Issuer: if request will not be minted (e.g., "Bad Key ID" if the key_id 
     161  is not current): 
     162 
     163    TRANSFER_TOKEN_REJECT( transaction_id, reason, 
     164                           list( (blind1.key_id, reason1), ... ), \ 
     165                           (empty list1)  ) 
     166 
     167  ElseIf minting is done just-in-time, IS answers 
     168 
     169    TRANSFER_TOKEN_ACCEPT( transaction_id, message, list_of_singed_blinds) 
     170 
     171  Else IS queues blind to the mint and tells wallet to wait 
     172 
     173    TRANSFER_TOKEN_DELAY( transaction_id, message ) 
    169174 
    170175  Session is terminated. 
    171176 
    172177 
    173  
    174   Mint processes request (signs blind with key_id) 
    175  
    176   Mint passes "signed blind"="blind coin" back to IS  
     178  In case of delayed minting, mint processes request (signs blind with key_id) 
     179  some time later and passes "signed blind"="blind coin" back to IS  
    177180 
    178181