Changeset 208

Show
Ignore:
Timestamp:
03/15/08 16:38:25 (4 years ago)
Author:
ocnils
Message:

replaced "COIN_SPEND" with "SPEND_TOKEN"

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/standards/protocol.txt

    r207 r208  
    2828   - "Introduction", including scope of protocol 
    2929   - JSON, 7-bit ASCII 
    30    - define coin/certificate format, encryption padding 
     30   - define token/certificate format, encryption padding 
    3131   - add note on randomness 
    3232   - add PROTOCOL_ERROR 
    3333   - add HANDSHAKE, CONTINUE, GOODBYE; warning that GOODBYE will disappear 
    34    - replace "COIN_SPEND" with "SPEND_TOKEN" 
     34   - replace "SPEND_TOKEN_REQUEST" with "SPEND_TOKEN" 
    3535   - throw out reduntant "TRANSFER_TOKEN" explanatoins 
    3636   - add authentication and authorization, at least for "target" 
     
    270270Bob   - receives the token 
    271271 
    272 Note:  
    273   The request type "COIN_SPEND" may get exchanged by "TRANSFER_TOKEN_REQUEST" 
    274   of type "redeem" in future versions of this protocol. 
     272  [ Warning:  
     273    The messages "SPEND_TOKEN_*" may get exchanged by "TRANSFER_TOKEN_*" of  
     274    type "redeem" or "spend" in future versions of this protocol. ] 
    275275 
    276276* Prerequisites 
     
    297297  serial and signature) 
    298298   
    299     A:      COIN_SPEND( transaction_id, list(token1, ...) ) 
    300  
    301 * The atom for a COIN_SPEND is the entire list of tokens 
     299    A:      SPEND_TOKEN_REQUEST( transaction_id, list(token1, ...) ) 
     300 
     301* The atom for a SPEND_TOKEN_REQUEST is the entire list of tokens 
    302302 
    303303* Wallet Bob checks if the sum of their values matches the announced sum, if  
     
    308308  them: 
    309309 
    310     B:      COIN_REJECT( transaction_id, list( (tokenN, "ReasonN") ) ) 
    311         or  COIN_REJECT( transaction_id, emptylist, "Reason") 
    312         or  COIN_ACCEPT( transaction_id ) 
     310    B:      SPEND_TOKEN_REJECT( transaction_id, list( (tokenN, "ReasonN") ) ) 
     311        or  SPEND_TOKEN_REJECT( transaction_id, emptylist, "Reason") 
     312        or  SPEND_TOKEN_ACCEPT( transaction_id ) 
    313313 
    314314  Possible reasons are "unknown", "invalid" ... [ToDo].