root / trunk / standards / messages / wallet.to.wallet.txt

Revision 210, 1.2 kB (checked in by ocmathew, 4 years ago)

Updated wallet to wallet with SPEND_TOKEN_* from TOKEN_*

Line 
1********************
2* Wallet to Wallet *
3********************
4
5=================
6= SUM           =
7= SPEND_TOKEN   =
8=================
9
10SUM
11-----
12
13A:
14  SUM_ANNOUNCE  #base64(transaction_id)
15                standard identifier
16                currency identifier
17                amount
18                target (what exactly is the target? Should it be base64 encoded?)
19        Prior:  Hello
20        Follow: SUM_ACCEPT
21                SUM_REJECT
22
23B:
24  SUM_ACCEPT
25        Prior:  SUM_ANNOUNCE
26        Follow: TOKEN_REDEEM
27                       
28  SUM_REJECT
29        Prior:  SUM_ANNOUNCE
30        Follow: Goodbye
31                       
32
33
34SPEND_TOKEN
35-----------
36
37A:
38  SPEND_TOKEN_REQUEST   list(token)
39        Prior:  SUM_ACCEPT
40        Follow: TOKEN_REJECT
41                TOKEN_ACCEPT
42
43B:
44  SPEND_TOKEN_REJECT    type
45                        list(detail-reason) | list()
46                    Reasons:
47                        'Rejected'
48                        'Invalid token'
49                        'See detail':
50                            'None'
51                            All options of Reason, except 'See detail'
52        Prior:  TOKEN_REDEEM
53        Follow: TOKEN_REDEEM
54                Goodbye
55
56  SPEND_TOKEN_ACCEPT
57        Prior:  TOKEN_REDEEM
58        Follow: Goodbye
Note: See TracBrowser for help on using the browser.