aboutsummaryrefslogtreecommitdiff
path: root/doc/flows/int-pull.tex
blob: 8c9b66b1b729f6c6239b5dbb51ed0d80e6af05dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
\section{Pull payment (aka invoicing)}

\begin{figure}[h!]
  \begin{sequencediagram}
    \newinst{payer}{\shortstack{Payer \\
      \\ \begin{tikzpicture}
        \node [fill=gray!20,draw=black,thick,align=center] {Pre-funded \\ Wallet};
      \end{tikzpicture}
    }}
    \newinst[2]{exchange}{\shortstack{Taler (exchange) \\
       \\ \begin{tikzpicture}[shape aspect=.5]
        \tikzset{every node/.style={cylinder,shape border rotate=90, draw,fill=gray!25}}
        \node at (1.5,0) {\shortstack{{{\tiny Database}}}};
       \end{tikzpicture}
    }}
    \newinst[2]{payee}{\shortstack{Payee \\
      \\ \begin{tikzpicture}
        \node [fill=gray!20,draw=black,thick,align=center] { Unique \\ Wallet ID};
      \end{tikzpicture}
    }}
    \postlevel
    \begin{callself}{payee}{Review pull payment fees}{}
    \end{callself}
    \mess[0]{payee}{{Create invoice (Wallet ID)}}{exchange}

    \mess[0]{exchange}{{Invoice ready}}{payee}
    \mess[0]{payee}{{Send invoice (e.g. via QR code)}}{payer}

    \begin{callself}{payer}{Review invoice}{}
    \end{callself}
    \mess[0]{payer}{{Make payment (Coins)}}{exchange}

    \begin{sdblock}{Domestic wallet?}{}
    \begin{callself}{exchange}{Figure~\ref{fig:proc:domestic}}{}
    \end{callself}
    \end{sdblock}
    \begin{sdblock}{KYC/AML required?}{}
    \begin{callself}{exchange}{Figures~\ref{fig:proc:kyc}, \ref{fig:proc:aml}}{}
    \end{callself}
    \end{sdblock}

    \mess[0]{exchange}{{Distribute digital cash}}{payee}

\end{sequencediagram}
  \caption{Interactions between wallets and Taler exchange
    in a pull payment.}
  \label{fig:int:pull}
\end{figure}

We do {\bf not} permit the payer to regain control over their funds, once the
payment was made they are locked {\em until} the payee passes the KYC/AML
checks.  We only do the AML/KYC process once the funds are locked at the
exchange. This ensures we know the actual transacted amounts (which may be
lower than the total amounts requested) and prevents risk-free probing
attacks.