2015-09-26 16:57:16 +02:00
% RMS wrote:
%The text does not mention GNU anywhere. This paper is an opportunity
%to make people aware of GNU, but the current text fails to use the
%opportunity.
%
%It should say that Taler is a GNU package.
%
%I suggest using the term "GNU Taler" in the title, once in the
%abstract, and the first time the name is mentioned in the body text.
%In the body text, it can have a footnote with more information
%including a reference to http://gnu.org/gnu/the-gnu-project.html.
%
%At the top of page 3, where it says "a free software implementation",
%it should add "(free as in freedom)", with a reference to
%http://gnu.org/philosophy/free-sw.html and
%http://gnu.org/philosophy/free-software-even-more-important.html.
%
%Would you please include these things in every article or posting?
%
% CG adds:
% We SHOULD do this for the FINAL paper, not for the anon submission.
2015-09-16 09:37:47 +02:00
% Relate to:
% http://fc14.ifca.ai/papers/fc14_submission_124.pdf
2015-01-08 18:37:20 +01:00
% Terminology:
% - SEPA-transfer -- avoid 'SEPA transaction' as we use
% 'transaction' already when we talk about taxable
% transfers of Taler coins and database 'transactions'.
% - wallet = coins at customer
2016-03-01 15:21:30 +01:00
% - reserve = currency entrusted to exchange waiting for withdrawal
% - deposit = SEPA to exchange
% - withdrawal = exchange to customer
2015-01-08 18:37:20 +01:00
% - spending = customer to merchant
2016-03-01 15:21:30 +01:00
% - redeeming = merchant to exchange (and then exchange SEPA to merchant)
% - refreshing = customer-exchange-customer
2015-01-08 18:37:20 +01:00
% - dirty coin = coin with exposed public key
% - fresh coin = coin that was refreshed or is new
2016-05-22 16:55:11 +02:00
% - denomination key = exchange's online key used to (blindly) sign coin
2016-11-09 16:05:18 +01:00
% - reserve key = key used to authorize withdrawals from a reserve
2016-03-01 15:21:30 +01:00
% - message signing key = exchange's online key to sign exchange messages
% - exchange master key = exchange's key used to sign other exchange keys
2015-01-08 18:37:20 +01:00
% - owner = entity that knows coin private key
% - transaction = coin ownership transfer that should be taxed
% - sharing = coin copying that should not be taxed
2017-05-16 13:39:12 +02:00
% FIXME: As a general comment, I think we're mixing the crypto stuff and the systems
% stuff too much. It might be more appropriate to have to systems stuff in a separate
% section, and the "pure" crypto stuff for the crypto people?
2015-01-08 18:37:20 +01:00
2017-05-16 13:39:12 +02:00
\documentclass [sigconf, authordraft] { acmart}
\usepackage { booktabs} % For formal tables
\usepackage { tikz}
\usetikzlibrary { shapes,arrows}
\usetikzlibrary { positioning}
\usetikzlibrary { calc}
\usepackage { eurosym}
% Copyright
%\setcopyright{none}
%\setcopyright{acmcopyright}
%\setcopyright{acmlicensed}
\setcopyright { rightsretained}
%\setcopyright{usgov}
%\setcopyright{usgovmixed}
%\setcopyright{cagov}
%\setcopyright{cagovmixed}
% DOI
\acmDOI { 10.475/123_ 4}
% ISBN
\acmISBN { 123-4567-24-567/08/06}
%Conference
2017-05-16 16:46:07 +02:00
\acmConference [CCS'2017] { ACM Conference on Computer and Communications Security} { October 2017} { %
Dallas, Texas USA}
\acmYear { 2017}
\copyrightyear { 2017}
2017-05-16 13:39:12 +02:00
\acmPrice { 15.00}
\acmSubmissionID { 123-A12-B3}
2015-01-08 18:37:20 +01:00
\begin { document}
2017-05-16 13:39:12 +02:00
\title { Refreshing Coins for Giving Change and Refunds \\ in Chaum-style Anonymous Payment Systems}
2017-05-16 16:46:07 +02:00
%\subtitle{Authors' names blinded for review}
2015-01-08 18:37:20 +01:00
2017-05-16 13:39:12 +02:00
%\author{Ben Trovato}
%\affiliation{%
% \institution{Institute for Clarity in Documentation}
% \streetaddress{P.O. Box 1212}
2017-05-16 14:00:26 +02:00
% \city{Dublin}
% \state{Ohio}
2017-05-16 13:39:12 +02:00
% \postcode{43017-6221}
%}
%\email{trovato@corporation.com}
2017-05-16 16:46:07 +02:00
%
%
%% The default list of authors is too long for headers}
2017-05-16 13:39:12 +02:00
%\renewcommand{\shortauthors}{B. Trovato et al.}
2016-11-09 04:29:20 +01:00
2017-05-16 16:46:07 +02:00
\author { Anonymized for blind review}
2016-11-09 04:29:20 +01:00
2015-01-08 18:37:20 +01:00
\begin { abstract}
2016-11-07 15:24:58 +01:00
This paper introduces { \em Taler} , a Chaum-style digital payment system that
2016-05-29 17:07:04 +02:00
enables anonymous payments while ensuring that entities that receive
2016-10-25 14:01:20 +02:00
payments are auditable. In Taler, customers can
2016-05-29 17:07:04 +02:00
never defraud anyone, merchants can only fail to deliver the
2016-11-09 14:13:21 +01:00
merchandise to the customer, and payment service providers are
audited.
2016-11-09 04:29:20 +01:00
All parties receive cryptographic evidence for all
2016-05-29 17:07:04 +02:00
transactions; still, each party only receives the minimum information
required to execute transactions. Enforcement of honest behavior is
timely, and is at least as strict as with legacy credit card payment
2016-10-07 13:34:54 +02:00
systems that do not provide for privacy.
The key technical contribution underpinning Taler is a new { \em
refresh protocol} which allows fractional payments and refunds while
2016-10-25 14:01:20 +02:00
maintaining untraceability of the customer and unlinkability of
transactions. The refresh protocol combines an
efficient cut-and-choose mechanism with a { \em link} step to ensure
that refreshing is not abused for transactional payments.
2016-10-07 13:34:54 +02:00
2016-11-07 15:24:58 +01:00
We argue that Taler provides a secure digital payment system for modern
2016-09-12 14:36:38 +02:00
liberal societies as it is a flexible, libre and efficient protocol
2016-10-07 13:34:54 +02:00
and adequately balances the state's need for monetary control with the
citizen's needs for private economic activity.
2015-01-08 18:37:20 +01:00
\end { abstract}
2017-05-16 13:39:12 +02:00
%
% The code below should be generated by the tool at
% http://dl.acm.org/ccs.cfm
2017-05-16 14:00:26 +02:00
% Please copy and paste the code instead of the example below.
2017-05-16 13:39:12 +02:00
%
\begin { CCSXML}
<ccs2012>
2017-05-16 16:46:07 +02:00
<concept>
<concept_ id>10002978.10002991.10002994</concept_ id>
<concept_ desc>Security and privacy~Pseudonymity, anonymity and untraceability</concept_ desc>
<concept_ significance>300</concept_ significance>
</concept>
<concept>
<concept_ id>10010405.10003550.10003551</concept_ id>
<concept_ desc>Applied computing~Digital cash</concept_ desc>
<concept_ significance>500</concept_ significance>
</concept>
<concept>
<concept_ id>10003456.10003462.10003544.10003545</concept_ id>
<concept_ desc>Social and professional topics~Taxation</concept_ desc>
<concept_ significance>300</concept_ significance>
</concept>
2017-05-16 14:00:26 +02:00
</ccs2012>
2017-05-16 13:39:12 +02:00
\end { CCSXML}
2017-05-16 16:46:07 +02:00
\ccsdesc [500] { Security and privacy~Pseudonymity, anonymity and untraceability}
\ccsdesc [500] { Applied computing~Digital cash}
\ccsdesc [300] { Social and professional topics~Taxation}
2017-05-16 13:39:12 +02:00
2017-05-16 16:46:07 +02:00
\keywords { electronic cash, refreshing, refunds}
2017-05-16 13:39:12 +02:00
\maketitle
2015-01-08 18:37:20 +01:00
\section { Introduction}
2016-07-03 12:01:39 +02:00
The design of payment systems shapes economies and societies. Strong,
2016-09-12 14:37:34 +02:00
developed nation states have adopted highly transparent payment systems,
such as the MasterCard and VisaCard credit card schemes and computerized
bank transactions such as SWIFT. These systems enable mass surveillance
by both governments and private companies. Aspects of this surveillance
2016-10-25 14:01:20 +02:00
sometimes benefit society by providing information about tax evasion or
2016-11-09 11:30:22 +01:00
crimes like extortion.
%
%In particular, bribery and corruption are limited to elites who can
%afford to escape the dragnet.
2016-10-25 14:01:20 +02:00
%
2016-05-21 16:56:22 +02:00
At the other extreme, weaker developing nation states have economic
2016-07-03 12:01:39 +02:00
activity based largely on coins, paper money or even barter. Here,
the state is often unable to effectively monitor or tax economic
activity, and this limits the ability of the state to shape the
2016-11-09 11:30:22 +01:00
society.
% If we remove the sentence above, this one also needs to go as it
% is the dual...
% As bribery is virtually impossible to detect, corruption is
% widespread and not limited to social elites.
%
2016-05-21 16:56:22 +02:00
%
2016-11-09 11:30:22 +01:00
% SHORTER: Zerocash need not be mentioned so early?
2016-11-08 16:58:03 +01:00
% Zerocash~\cite{zerocash} is an example for translating an
% anarchistic economy into the digital realm.
2015-01-08 18:37:20 +01:00
2016-11-09 11:30:22 +01:00
This paper describes Taler, a simple and practical payment system
which balances accountability and privacy.
2015-09-24 11:40:23 +02:00
2016-11-09 11:30:22 +01:00
The Taler protocol is an improvement over Chaum's original
design~\cite { chaum1983blind} and also follows Chaum's basic
2016-10-25 14:01:20 +02:00
architecture of customer, merchant and exchange
2016-11-09 11:30:22 +01:00
(Figure~\ref { fig:cmm} ). The two designs share the key first step
2016-10-25 14:01:20 +02:00
where the { \em customer} withdraws digital { \em coins} from the { \em
exchange} with unlinkability provided via blind signatures. The
coins can then be spent at a { \em merchant} who { \em deposits} them at
the exchange. Taler uses online detection of double-spending and
2016-11-09 11:30:22 +01:00
provides fair exchange and exculpability via cryptographic proofs.
% Thus merchants are instantly assured that a transaction is valid.
2015-09-24 11:40:23 +02:00
\begin { figure} [h]
\centering
\begin { tikzpicture}
2017-05-16 13:39:12 +02:00
\tikzstyle { def} = [node distance= 2em and 6.5em, inner sep=1em, outer sep=.3em];
2015-09-24 11:40:23 +02:00
\node (origin) at (0,0) { } ;
2016-03-01 15:21:30 +01:00
\node (exchange) [def,above=of origin,draw]{ Exchange} ;
2015-09-24 11:40:23 +02:00
\node (customer) [def, draw, below left=of origin] { Customer} ;
\node (merchant) [def, draw, below right=of origin] { Merchant} ;
\node (auditor) [def, draw, above right=of origin]{ Auditor} ;
\tikzstyle { C} = [color=black, line width=1pt]
2016-03-01 15:21:30 +01:00
\draw [<-, C] (customer) -- (exchange) node [midway, above, sloped] (TextNode) { withdraw coins} ;
\draw [<-, C] (exchange) -- (merchant) node [midway, above, sloped] (TextNode) { deposit coins} ;
2015-09-24 11:40:23 +02:00
\draw [<-, C] (merchant) -- (customer) node [midway, above, sloped] (TextNode) { spend coins} ;
2016-03-01 15:21:30 +01:00
\draw [<-, C] (exchange) -- (auditor) node [midway, above, sloped] (TextNode) { verify} ;
2015-09-24 11:40:23 +02:00
\end { tikzpicture}
\caption { Taler's system model for the payment system is based on Chaum~\cite { chaum1983blind} .}
\label { fig:cmm}
\end { figure}
2016-05-29 17:07:04 +02:00
A key issue for an efficient Chaumian digital payment system is the
2016-11-09 14:13:21 +01:00
need to provide change and existing systems for ``practical
divisible'' electronic cash have transaction costs that are linear in
the amount of value being transacted, sometimes hidden in the double
spending detection logic of the payment service
provider~\cite { martens2015practical} . The customer should also not be
expected to withdraw exact change, as doing so reduces anonymity due
to the obvious correlation.
2016-11-09 14:44:50 +01:00
% FIXME: explain the logarithmic claim! It's only
% true for a certain denomination structure.
% This denomination structure potentially introduces privacy risks
2016-11-09 14:13:21 +01:00
Taler solves the problem of giving change by introducing a new { \em
refresh protocol} allowing for ``divisible'' transactions with
amortized costs logarithmic in the amount of value being transacted.
Using this protocol, a customer can obtain change or refunds in the
form of fresh coins that other parties cannot link to the original
transaction, the original coin, or each other. Additionally, the
refresh protocol ensures that the change is owned by the same entity
which owned the original coin.
%\vspace{-0.3cm}
2017-05-16 13:39:12 +02:00
2015-01-08 18:37:20 +01:00
\section { Related Work}
2016-11-09 14:13:21 +01:00
%\vspace{-0.3cm}
2015-01-08 18:37:20 +01:00
2016-10-29 14:24:16 +02:00
%\subsection{Blockchain-based currencies}
2015-01-08 18:37:20 +01:00
2016-11-09 04:29:20 +01:00
% FIXME: SHORTEN. This is probably too much information for the audience, they
% all know this
2015-01-08 18:37:20 +01:00
In recent years, a class of decentralized electronic payment systems,
based on collectively recorded and verified append-only public
ledgers, have gained immense popularity. The most well-known protocol
2016-11-09 14:13:21 +01:00
in this class is Bitcoin~\cite { nakamoto2008bitcoin} . The key
contribution of blockchain-based protocols is that they dispense with
the need for a central, trusted authority. Yet, there are several
major irredeemable problems inherent in their designs:
2015-01-08 18:37:20 +01:00
\begin { itemize}
\item The computational puzzles solved by Bitcoin nodes with the purpose
2016-10-27 15:11:14 +02:00
of securing the blockchain consume a considerable amount of energy.
2016-05-29 17:07:04 +02:00
So Bitcoin is an environmentally irresponsible design.
2016-11-12 13:26:07 +01:00
\item Bitcoin transactions have pseudonymous recipients, making taxation
2016-05-29 17:07:04 +02:00
hard to systematically enforce.
2016-07-03 12:13:18 +02:00
\item Bitcoin introduces a new currency, creating additional
financial risks from currency fluctuation.
2016-05-21 16:56:22 +02:00
\item Anyone can start an alternative Bitcoin transaction chain,
2015-10-07 16:39:03 +02:00
called an AltCoin, and, if successful, reap the benefits of the low
2016-05-29 17:07:04 +02:00
cost to initially create coins cheaply as the proof-of-work
difficulty adjusts to the computation power of all
miners in the network. As participants are
2016-11-12 13:26:07 +01:00
de facto investors, AltCoins become a form of Ponzi scheme.
2015-10-07 16:39:03 +02:00
% As a result, dozens of
% AltCoins have been created, often without any significant changes to the
% technology. A large number of AltCoins creates additional overheads for
% currency exchange and exacerbates the problems with currency fluctuations.
2015-01-08 18:37:20 +01:00
\end { itemize}
2016-11-09 14:13:21 +01:00
Bitcoin also lacks anonymity, as all Bitcoin transactions are recorded
for eternity, which can enable identification of users. Anonymous
2016-11-12 13:26:07 +01:00
payment systems based on Bitcoin such as CryptoNote~\cite { cryptonote}
2016-11-09 16:32:43 +01:00
(Monero), Zerocash~\cite { zerocash} (ZCash) and BOLT~\cite { BOLT}
exacerbate the design issues we mention above. These systems exploit the
2016-11-09 11:30:22 +01:00
blockchain's decentralized nature to escape anti-money laundering
2016-11-09 14:13:21 +01:00
regulation~\cite { molander1998cyberpayments} as they provide anonymous,
disintermediated transactions.
2016-10-25 14:01:20 +02:00
2017-05-17 23:39:10 +02:00
Unlike Taler, Zerocash hides transacted amounts as well as both the
sender and receiver, giving it a larger anonymity set than Taler under
equal usage levels. A Taler exchange can process transactions many
orders of magnitude faster and more cheaply than any blockchain-based
cryptocurrency like Zerocash. It follows that, assuming reasonable
adoption levels for both, Taler will yield stronger anonymity for
2017-05-17 23:40:44 +02:00
ordinary purchases, although Zerocash should retain an advantage for
2017-05-17 23:39:10 +02:00
large transactions that never get cashed out into another currency.
2017-05-17 23:40:44 +02:00
In addition, Zerocash's anonymity for the receiver facilitates illegal
activities like extortion, money laundering, and tax evasion.
2017-05-17 15:21:49 +02:00
2017-05-16 14:00:26 +02:00
GreenCoinX\footnote { \url { https://www.greencoinx.com/} } is a more
recent AltCoin where the company promises to identify the owner of
each coin via e-mail addresses and phone numbers. While it is unclear
from their technical description how this identification would be
enforced against a determined adversary, the resulting payment system
would also merely impose a financial panopticon on a Bitcoin-style
money supply and transaction model.
2015-09-24 11:40:23 +02:00
2016-10-29 14:24:16 +02:00
%\subsection{Chaum-style electronic cash}
2015-01-08 18:37:20 +01:00
2016-05-29 17:07:04 +02:00
Chaum~\cite { chaum1983blind} proposed a digital payment system that
would provide some customer anonymity while disclosing the identity of
the merchants. DigiCash, a commercial implementation of Chaum's
2016-11-09 16:37:09 +01:00
proposal ultimately failed to be widely adopted. In our assessment,
key reasons for DigiCash's failure include:
2015-09-24 11:40:23 +02:00
\begin { itemize}
\item The use of patents to protect the technology; a payment system
2015-10-07 16:39:03 +02:00
should be free software (libre) to have a chance for widespread adoption.
2016-05-21 16:56:22 +02:00
\item Support for payments to off-line merchants, and thus deferred
detection of double-spending, requires the exchange to attempt to
2016-05-29 21:25:08 +02:00
recover funds from delinquent customers via the legal system.
2016-05-29 17:07:04 +02:00
Any system that fails to be self-enforcing creates a major
2016-05-29 21:25:08 +02:00
business risk for the exchange and merchants.
2016-07-03 12:13:18 +02:00
% In 1983, there were merchants without network connectivity, making that
% feature relevant, but today network connectivity is feasible for most
% merchants, and saves both the exchange and merchants the business risks
% associated with deferred fraud detection.
2016-11-12 13:26:07 +01:00
\item % In addition to the risk of legal disputes wh fraudulent
2015-09-24 11:40:23 +02:00
% merchants and customers,
Chaum's published design does not clearly
2017-05-17 15:23:26 +02:00
limit the financial damage an exchange might suffer from the
2015-09-24 11:40:23 +02:00
disclosure of its private online signing key.
\item Chaum did not support fractional payments or refunds without
2016-05-29 17:07:04 +02:00
weakening customer anonymity.
2015-09-24 11:40:23 +02:00
%, and Brand's
% extensions for fractional payments broke unlinkability and thus
% limited anonymity.
% \item Chaum's system was implemented at a time where the US market
% was still dominated by paper checks and the European market was
% fragmented into dozens of currencies. Today, SEPA provides a
% unified currency and currency transfer method for most of Europe,
% significantly lowering the barrier to entry into this domain for
% a larger market.
\end { itemize}
2016-11-09 11:30:22 +01:00
To our knowledge, the only publicly available effort to implement
Chaum's idea is Opencoin~\cite { dent2008extensions} . However, Opencoin
is neither actively developed nor used, and it is not clear
to what degree the implementation is even complete. Only a partial
description of the Opencoin protocol is available to date.
% FIXME: ask OpenCoin dev's about this! Then make statement firmer!
2016-11-09 14:44:50 +01:00
% FIXME: not only by brands. this formulation sounds like
% we're unaware of the huge body of work in the area that is still growing.
2015-01-08 18:37:20 +01:00
Chaum's original digital cash system~\cite { chaum1983blind} was
2015-09-24 11:40:23 +02:00
extended by Brands~\cite { brands1993efficient} with the ability to { \em
2015-10-07 16:39:03 +02:00
divide} coins and thus spend certain fractions of a coin using
2016-05-29 17:07:04 +02:00
restrictive blind signatures. Restrictive blind signatures create
2016-11-09 11:30:22 +01:00
privacy risks: if a transaction is interrupted, then any coins sent
to the merchant become tainted, but may never arrive or be spent.
2016-11-07 17:37:00 +01:00
It becomes tricky to extract the value of the tainted coins without
2016-05-29 17:07:04 +02:00
linking to the aborted transaction and risking deanonymization.
Ian Goldberg's HINDE system allowed the merchant to provide change,
but the mechanism could be abused to hide income from
taxation.\footnote { Description based on personal communication. HINDE
2016-11-09 11:30:22 +01:00
was never published.}
2016-11-09 14:13:21 +01:00
In~\cite { brands1993efficient} , $ k $ -show signatures were proposed to
2016-11-07 17:37:00 +01:00
achieve divisibility for coins. However, with $ k $ -show signatures
2016-11-09 11:30:22 +01:00
multiple transactions can be linked to each other.
Performing fractional payments using $ k $ -show signatures is also
2016-11-07 17:37:00 +01:00
rather expensive.
2016-05-29 17:07:04 +02:00
2016-11-08 15:41:06 +01:00
In pure blind signature based schemes like Taler, withdrawal and spend
operations require bandwidth logarithmic in the value being withdrawn
2016-11-12 13:26:07 +01:00
or spent. In~\cite { Camenisch05compacte-cash} , there is a zero-knowledge
2016-11-08 15:41:06 +01:00
scheme that improves upon this, requiring only constant bandwidth for
2016-11-09 04:29:20 +01:00
withdrawals and spend operations, but unfortunately the exchanges' storage and
2016-11-09 11:30:22 +01:00
search costs become linear in the total value of all transactions.
%In principle, one could correct this by adding multiple denominations,
%an open problem stated already in~\cite{Camenisch05compacte-cash}.
% NO: he cannot give change, so that does not really work!
2016-11-08 15:41:06 +01:00
As described, the scheme employs offline double spending protection,
2016-11-12 13:26:07 +01:00
which inherently makes it fragile and creates an unnecessary
2016-11-09 16:37:09 +01:00
deanonymization risk (see Section~\ref { sec:offline} ).
2016-11-09 11:30:22 +01:00
%We believe the offline protection from double
%spending could be removed, thus switching the scheme to only protection
2016-11-12 13:26:07 +01:00
%against online double spending, like Taler.
2016-11-09 11:30:22 +01:00
% TOO much detail...
%
%Along with fixing these two issues, an interesting applied research project
%would be to add partial spending and a form of Taler's refresh protocol.
%At present, we feel these relatively new cryptographic techniques incur
%unacceptable financial risks to the exchange, due to underdeveloped
%implementation practice.
%
2016-11-12 13:26:07 +01:00
% SHORTER: Maybe some of the above could be thinned since
% they do not know much about Taler's refresh protocol yet.
2016-11-09 11:30:22 +01:00
% -- yeah, in particular the feeling/speculative parts are not needed...
2016-11-08 15:41:06 +01:00
2016-11-12 13:26:07 +01:00
%In this vein, there are pure also zero-knowledge proof based schemes
2016-11-09 11:30:22 +01:00
%like~\cite{ST99}, and subsequently Zerocash~\cite{zerocash}, and maybe
2016-11-12 13:26:07 +01:00
%variations on BOLT~\cite{BOLT}, that avoid using any denomination-like
2016-11-09 11:30:22 +01:00
%constructs, slightly reducing metadata leakage. At present, these all
%incur excessive bandwidth or computational costs however.
% -- commented out, seems excessive.
2016-11-07 17:51:15 +01:00
2015-01-08 18:37:20 +01:00
%Some argue that the focus on technically perfect but overwhelmingly
%complex protocols, as well as the the lack of usable, practical
%solutions lead to an abandonment of these ideas by
%practitioners~\cite{selby2004analyzing}.
2015-09-24 11:40:23 +02:00
2015-01-08 18:37:20 +01:00
2016-11-09 04:29:20 +01:00
% FIXME: If we ever add peppercoin stuff, cite Matt Green paper
% and talk about economics when encoding a punishment-coin
2016-11-12 13:26:07 +01:00
% as the identity, with limited ticket lifespan
2016-11-09 04:29:20 +01:00
2016-07-03 12:13:18 +02:00
%\subsection{Peppercoin}
2015-01-08 18:37:20 +01:00
2016-07-03 12:13:18 +02:00
%Peppercoin~\cite{rivest2004peppercoin} is a microdonation protocol.
%The main idea of the protocol is to reduce transaction costs by
%minimizing the number of transactions that are processed directly by
%the exchange. Instead of always paying, the customer ``gambles'' with the
%merchant for each microdonation. Only if the merchant wins, the
%microdonation is upgraded to a macropayment to be deposited at the
%exchange. Peppercoin does not provide customer-anonymity. The proposed
%statistical method by which exchanges detect fraudulent cooperation between
%customers and merchants at the expense of the exchange not only creates
%legal risks for the exchange, but would also require that the exchange learns
%about microdonations where the merchant did not get upgraded to a
%macropayment. It is therefore unclear how Peppercoin would actually
%reduce the computational burden on the exchange.
2015-01-08 18:37:20 +01:00
2017-05-17 16:14:53 +02:00
The use of refunds for fractional payments has been suggested in the context of
payment systems for public transit fees \cite { rupp2013p4r} . This approach
relies on 2-showable coins that can be used one time for fractional spending
and another time for refunding the remaining amount without losing anonymity.
Unfortunately this approach cannot be used for a general-purpose payment
2017-05-17 16:18:02 +02:00
system, since the refund operation of Rupp et al. allows transferring money
2017-05-17 16:14:53 +02:00
in a way that hides income from taxation. Refunding a coin into a wallet that
didn't withdraw the coin is possible in their system, but consitutes a
transaction between two parties that is not recognized by the system for the
purpose of income taxation.
2016-10-29 14:24:16 +02:00
%\vspace{-0.3cm}
2015-01-08 18:37:20 +01:00
\section { Design}
2016-10-29 14:24:16 +02:00
%\vspace{-0.3cm}
2015-01-08 18:37:20 +01:00
2016-05-29 17:07:04 +02:00
The Taler system comprises three principal types of actors
(Figure~\ref { fig:cmm} ): The \emph { customer} is interested in receiving
goods or services from the \emph { merchant} in exchange for payment.
2016-10-25 14:01:20 +02:00
To pay, the customer { \em spends} digital coins at the merchant. When
making a transaction, both the customer and the merchant use the same
\emph { exchange} , which serves as a payment service provider for the
financial transaction between the two. The exchange is responsible
for allowing the customer to withdraw anonymous digital coins from the
customer's financial reserves, and for enabling the merchant to
deposit digital coins in return for receiving credit at the merchant's
financial reserve. In addition, Taler includes an \emph { auditor} who
assures customers and merchants that the exchange operates correctly.
2015-01-08 18:37:20 +01:00
2016-10-29 14:24:16 +02:00
%\vspace{-0.3cm}
2017-05-18 09:35:16 +02:00
\subsection { Security considerations}
2016-10-29 14:24:16 +02:00
%\vspace{-0.3cm}
2017-04-07 14:59:41 +02:00
As a payment system, Taler naturally needs to make sure that coins are
unforgeable and prevent double-spending. More precisely, as the same
coin is allowed to be involved in multiple operations, Taler needs to
ensure that the amounts spent per coin remain below the denomination
value and amounts credited to the coin from refunds. Furthermore,
transactions should be unlinkable; in particular, if a coin has been
partially spent or if a transaction was aborted, Taler must provide a
mechanism for customers to spend the remaining value in another
transaction that remains unlinkable to the first transaction. Finally,
this mechanism must not introduce a new loophole that might be used to
hide transactions in a way that would enable tax-evasion.
As a practical system, Taler needs to be concerned with transient
network failures or loss of power. Thus, it must be possible to
resume protocols and recover from such failures at any point in time,
without any party suffering financial losses. We require that parties
are able to securely persist information and assume that after
errors they can resume from the previous state that was persisted.
We will explicitly state in the protocol when what state has
to be persisted. Participants that fail to recover data they were
expected to persist may suffer financial losses in proportion to the
value of the transactions involved.
2016-10-29 14:24:16 +02:00
Taler assumes that each participant has full control over their
system. We assume the contact information of the exchange is known to
both customer and merchant from the start, including that the customer
can authenticate the merchant, for example by using X.509
certificates~\cite { rfc6818} . A Taler merchant is trusted to deliver
the service or goods to the customer upon receiving payment. The
customer can seek legal relief to achieve this, as the customer
receives cryptographic evidence of the contract and the associated
payment. We assume each Taler customer has an anonymous
bi-directional channel, such as Tor, to communicate with both the
exchange and the merchant.
2016-05-22 16:52:56 +02:00
2016-10-28 17:58:55 +02:00
A Taler exchange is trusted to hold funds of its customers and to
forward them when receiving the respective deposit instructions from
the merchants. Customer and merchant can have assurances about the
exchange's liquidity and operation though published audits by
2016-10-29 14:24:16 +02:00
financial regulators or other trusted third parties. An exchange's
signing keys expire regularly, allowing the exchange to eventually
destroy the corresponding accumulated cryptographic proofs, and
limiting the exchange's financial liability.
On the cryptographic side, a Taler exchange demands that coins use a
2016-10-28 17:58:55 +02:00
full domain hash (FDH) to make so-called ``one-more forgery'' attacks
provably hard, assuming the RSA known-target inversion problem is
2016-10-29 14:24:16 +02:00
hard~\cite [Theorem 12] { RSA-HDF-KTIvCTI} . For a withdrawn coin,
2017-04-07 14:59:41 +02:00
violating the customers anonymity cryptographically requires recognizing
2016-10-29 14:24:16 +02:00
a random blinding factor from a random element of the group of
integers modulo the denomination key's RSA modulus, which appears
impossible even with a quantum computers. For a refreshed coin,
2016-11-12 13:26:07 +01:00
unlinkability requires the hardness of the discrete logarithm for
2016-10-29 14:24:16 +02:00
Curve25519.
The cut-and-choose protocol prevents merchants and customers from
conspiring to conceal a merchants income. We assume that the maximum
tax rate is below $ 1 / \kappa $ , and that expected transaction losses of
a factor of $ \kappa $ for tax evasion are thus unacceptable.
2015-01-08 18:37:20 +01:00
\subsection { Taxability and Entities}
2016-05-29 17:07:04 +02:00
Taler ensures that the state can tax { \em transactions} . We must,
2016-11-09 14:19:29 +01:00
however, clarify what constitutes a transaction that can be taxed.
2016-11-09 16:05:18 +01:00
% As we believe citizens should be in control of their computing, as well as for practical reasons,
We assume that coins can freely be
2016-05-29 17:07:04 +02:00
copied between machines, and that coin deletion cannot be verified.
2016-05-22 16:52:56 +02:00
Avoiding these assumptions would require extreme measures, like custom
2016-05-29 17:07:04 +02:00
hardware supplied by the exchange. Also, it would be inappropriate to
tax the moving of funds between two computers owned by the same
entity. Finally, we assume that at the time digital coins are
withdrawn, the wallet receiving the coins is owned by the individual
who is performing the authentication to authorize the withdrawal.
Preventing the owner of the reserve from deliberately authorizing
2016-11-08 17:03:46 +01:00
someone else to withdraw electronic coins would require even more
2017-05-17 14:21:58 +02:00
extreme measures.
2016-11-08 17:03:46 +01:00
% SHORTER:
% including preventing them from communicating with anyone but
2016-11-09 11:30:22 +01:00
% the exchange terminal during withdrawal.
% FIXME: Oddly phrased:
2016-11-08 17:03:46 +01:00
% As such measures would be
% totally impractical for a minor loophole, we are not concerned with
% enabling the state to strongly identify the recipient of coins
% from a withdrawal operation.
2015-01-08 18:37:20 +01:00
2016-11-08 17:03:46 +01:00
% SHORTER: There might be a shorter way to say this and the previous
% paragraph together, but now I see why they were kept apart.
2016-05-22 16:52:56 +02:00
We view ownership of a coin's private key as a ``capability'' to spend
2016-05-29 17:07:04 +02:00
the funds. A taxable transaction occurs when a merchant entity gains
control over the funds while at the same time a customer entity looses
control over the funds in a manner verifiable to the merchant. In
other words, we restrict the definition of taxable transactions to
those transfers of funds where the recipient merchant is distrustful
of the spending customer, and requires verification that the customer
lost the capability to spend the funds.
2016-05-22 16:52:56 +02:00
Conversely, if a coin's private key is shared between two entities,
then both entities have equal access to the credentials represented by
the private key. In a payment system, this means that either entity
2016-05-29 17:07:04 +02:00
could spend the associated funds. Assuming the payment system has
effective double-spending detection, this means that either entity has
to constantly fear that the funds might no longer be available to it.
2016-05-22 16:52:56 +02:00
It follows that sharing coins by copying a private key implies mutual
2016-10-25 14:20:27 +02:00
trust between the two parties.
2016-05-22 16:52:56 +02:00
2015-10-08 02:43:42 +02:00
In Taler, making funds available by copying a private key and thus
2016-05-29 17:07:04 +02:00
sharing control is { \bf not} considered a { \em transaction} and thus
{ \bf not} recorded for taxation. Taler does, however, ensure
taxability when a merchant entity acquires exclusive control over the
value represented by a digital coins. For such transactions, the state
2016-10-25 14:21:53 +02:00
can obtain information from the exchange that identifies
2016-05-29 17:07:04 +02:00
the entity that received the digital coins as well as the exact value
of those coins. Taler also allows the exchange, and hence the state,
to learn the value of digital coins withdrawn by a customer---but not
how, where, or when they were spent.
2015-01-08 18:37:20 +01:00
\subsection { Anonymity}
2016-05-29 17:07:04 +02:00
We assume that an anonymous communication channel
such as Tor~\cite { tor-design} is
2016-05-22 16:52:56 +02:00
used for all communication between the customer and the merchant,
as well as for refreshing tainted coins with the exchange and for
retrieving the exchange's denomination key.
2015-10-08 02:43:42 +02:00
Ideally, the customer's anonymity is limited only by this channel;
however, the payment system does additionally reveal that the customer
2016-11-09 11:30:22 +01:00
is one of the patrons of the exchange who withdrew enough coin of
2016-11-07 18:07:19 +01:00
given denominations.
2016-11-09 16:05:18 +01:00
There are naturally risks that the business operation that the
merchant runs on behalf of the customer
may require the merchant to learn identifying information about the customer.
2015-10-08 02:43:42 +02:00
We consider information leakage specific to the business logic to be
outside of the scope of the design of Taler.
2016-05-22 16:52:56 +02:00
Aside from refreshing and obtaining denomination key, the customer
should ideally use an anonymous communication channel with the exchange
2016-05-29 21:25:08 +02:00
to obscure their IP address for location privacy, but naturally
2016-05-22 16:52:56 +02:00
the exchange would typically learn the customer's identity from the wire
transfer that funds the customer's withdrawal of anonymous digital coins.
2016-05-29 17:07:04 +02:00
We believe this may even be desirable as there are laws, or bank policies,
that limit the amount of cash that an individual customer can withdraw
in a given time period~\cite { france2015cash,greece2015cash} .
Taler is thus only anonymous with respect to { \em payments} .
In particular, the exchange
is unable to link the known identity of the customer that withdrew
anonymous digital coins to the { \em purchase} performed later at the
2016-05-29 21:25:08 +02:00
merchant.
2015-01-08 18:37:20 +01:00
2016-10-25 14:01:20 +02:00
While the customer thus has untraceability for purchases, the exchange will
2015-09-24 11:40:23 +02:00
always learn the merchant's identity in order to credit the merchant's
2016-05-29 17:07:04 +02:00
account. This is also necessary for taxation, as Taler deliberately
exposes these events as anchors for tax audits on income.
2015-01-08 18:37:20 +01:00
% Technically, the merchant could still
2016-03-01 15:21:30 +01:00
%use an anonymous communication channel to communicate with the exchange.
%However, in order to receive the traditional currency the exchange will
2015-01-08 18:37:20 +01:00
%require (SEPA) account details for the deposit.
2016-03-01 15:21:30 +01:00
%As both the initial transaction between the customer and the exchange as
%well as the transactions between the merchant and the exchange do not have
2015-01-08 18:37:20 +01:00
%to be done anonymously, there might be a formal business contract
2016-03-01 15:21:30 +01:00
%between the customer and the exchange and the merchant and the exchange. Such
2015-01-08 18:37:20 +01:00
%a contract may provide customers and merchants some assurance that
2016-03-01 15:21:30 +01:00
%they will actually receive the traditional currency from the exchange
2015-01-08 18:37:20 +01:00
%given cryptographic proof about the validity of the transaction(s).
%However, given the business overheads for establishing such contracts
2016-03-01 15:21:30 +01:00
%and the natural goal for the exchange to establish a reputation and to
%minimize cost, it is more likely that the exchange will advertise its
2015-01-08 18:37:20 +01:00
%external auditors and proven reserves and thereby try to convince
%customers and merchants to trust it without a formal contract.
\subsection { Coins}
2016-05-29 17:07:04 +02:00
A \emph { coin} in Taler is a public-private key pair where the private
key is only known to the owner of the coin. A coin derives its
2016-11-12 13:26:07 +01:00
financial value from an RSA signature over the full domain hash (FDH)
2016-11-09 11:30:22 +01:00
of the coin's public key. The exchange has multiple RSA
2016-11-07 18:14:37 +01:00
{ \em denomination key} pairs available for blind-signing coins of
different values.
2016-05-29 17:07:04 +02:00
Denomination keys have an expiration date, before which any coins
signed with it must be spent or refreshed. This allows the exchange
to eventually discard records of old transactions, thus limiting the
records that the exchange must retain and search to detect
2016-10-25 14:37:07 +02:00
double-spending attempts. If a private denomination key were to be
compromised, the exchange can detect this once more coins are redeemed
than the total that was signed into existence using that denomination
key. In this case, the exchange can allow authentic customers to
redeem their unspent coins that were signed with the compromised
private key, while refusing further deposits involving coins signed by
the compromised denomination key. As a result, the financial damage
of losing a private signing key is limited to at most the amount
originally signed with that key, and denomination key rotation can be
used to bound that risk.
We ensure that the exchange cannot deanonymize users by signing
2016-05-29 17:07:04 +02:00
each coin with a fresh denomination key. For this, exchanges are
2016-10-25 14:37:07 +02:00
required to publicly announce their denomination keys in advance
with validity periods that imply sufficiently strong anonymity sets.
2016-05-22 16:52:56 +02:00
These announcements are expected to be signed with an off-line
long-term private { \em master signing key} of the exchange and the
2016-05-29 17:07:04 +02:00
auditor. Additionally, customers should obtain these announcements
using an anonymous communication channel.
Before a customer can withdraw a coin from the exchange, he has to pay
the exchange the value of the coin, as well as processing fees. This
is done using other means of payment, such as wire transfers or by
having a financial { \em reserve} at the exchange. Taler assumes that
2016-11-09 16:05:18 +01:00
the customer has a { \em reserve key} to identify
2016-05-29 17:07:04 +02:00
himself as authorized to withdraw funds from the reserve. By signing
the withdrawal request using this withdrawal authorization key, the
customer can prove to the exchange that he is authorized to withdraw
anonymous digital coins from his reserve. The exchange records the
withdrawal message as proof that the reserve was debited correctly.
2015-09-24 15:40:27 +02:00
%To put it differently, unlike
%modern cryptocurrencies like BitCoin, Taler's design simply
%acknowledges that primitive accumulation~\cite{engels1844} predates
%the system and that a secure method to authenticate owners exists.
2015-01-08 18:37:20 +01:00
2016-05-22 17:12:17 +02:00
After a coin is issued, the customer is the only entity that knows the
2016-05-29 17:07:04 +02:00
private key of the coin, making him the \emph { owner} of the coin. Due
2016-10-29 14:24:16 +02:00
to the use of blind signatures, the exchange does not learn the
2016-05-29 17:07:04 +02:00
public key during the withdrawal process. If the private key is
shared with others, they become co-owners of the coin. Knowledge of
2016-10-25 14:40:20 +02:00
the private key of the coin and the signature over the coin's public
2016-10-29 14:24:16 +02:00
key by an exchange's denomination key enables spending the
2016-10-25 14:40:20 +02:00
coin.
2015-01-08 18:37:20 +01:00
2016-05-22 16:52:56 +02:00
2016-07-03 12:13:18 +02:00
% \subsection{Coin spending}
2015-01-08 18:37:20 +01:00
2016-05-29 17:07:04 +02:00
A customer spends a coin at a merchant by cryptographically signing a
{ \em deposit authorization} with the coin's private key. A deposit
authorization specifies the fraction of the coin's value to be paid to
the merchant, the salted hash of a merchant's financial reserve
routing information and a { \em business transaction-specific hash} .
Taler exchanges ensure that all transactions involving the same coin
do not exceed the total value of the coin simply by requiring that
merchants clear transactions immediately with the exchange.
If the customer is cheating and the coin was already spent, the
exchange provides the previous deposit authorization as cryptographic
proof of the fraud to the merchant. If the deposit authorization is
correct, the exchange transfers the funds to the merchant by crediting
the merchant's financial reserve, e.g. using a wire transfer.
2015-01-08 18:37:20 +01:00
\subsection { Refreshing Coins}
2016-05-29 17:07:04 +02:00
If only a fraction of a coin's value has been spent, or if a
transaction fails for other reasons, it is possible that a customer
has revealed the public key of a coin to a merchant, but not
ultimately spent the full value of the coin. If the customer then
2015-09-24 15:40:27 +02:00
continues to directly use the coin in other transactions, merchants
2016-05-29 17:07:04 +02:00
and the exchange could link the various transactions as they all share
the same public key for the coin. We call a coin { \em dirty} if its
public key is known to anyone but the owner.
To avoid linkability of transactions, Taler allows the owner of a
dirty coin to exchange it for a { \em fresh} coin using the { \em coin
refreshing protocol} . Even if a coin is not dirty, the owner of a
coin may want to exchange it if the respective denomination key is
about to expire. The { \em coin refreshing protocol} , allows the owner
of a coin to { \em melt} it for fresh coins of the same total value with a
new public-private key pairs. Refreshing does not use the ordinary
spending operation as the owner of a coin should not have to pay
(income) taxes for refreshing. However, to ensure that refreshing is
not used for money laundering or tax evasion, the refreshing protocol
assures that the owner stays the same.
2017-05-16 11:01:00 +02:00
% FIXME: This paragraph could likely be removed and be replaced
% by the proof if we have space.
2016-05-29 17:07:04 +02:00
The refresh protocol has two key properties: First, the exchange is
unable to link the fresh coin's public key to the public key of the
dirty coin. Second, it is assured that the owner of the dirty coin
can determine the private key of the fresh coin, thereby preventing
the refresh protocol from being used to transfer ownership.
2015-01-08 18:37:20 +01:00
\section { Taler's Cryptographic Protocols}
2016-08-08 14:57:34 +02:00
\def \KDF { \textrm { KDF} }
\def \FDH { \textrm { FDH} }
2015-01-08 18:37:20 +01:00
% In this section, we describe the protocols for Taler in detail.
2016-05-29 17:07:04 +02:00
For the sake of brevity we omit explicitly saying each time that a
recipient of a signed message always first checks that the signature
is valid. Furthermore, the receiver of a signed message is either
told the respective public key, or knows it from the context. Also,
all signatures contain additional identification as to the purpose of
the signature, making it impossible to use a signature in a different
2017-05-17 20:55:25 +02:00
context. A summary of the notation used is in Appendix~\ref { sec:notation} .
2016-05-29 17:07:04 +02:00
An exchange has a long-term offline key which is used to certify
denomination keys and { \em online message signing keys} of the
exchange. { \em Online message signing keys} are used for signing
protocol messages; denomination keys are used for blind-signing coins.
The exchange's long-term offline key is assumed to be known to both
customers and merchants and is certified by the auditors.
2015-01-08 18:37:20 +01:00
2016-11-12 13:26:07 +01:00
We avoid asking either customers or merchants to make trust decisions
2016-06-14 16:52:03 +02:00
about individual exchanges. Instead, they need only select the auditors.
2017-05-16 11:01:00 +02:00
Auditors must sign all the exchange's public keys.
2016-06-14 16:52:03 +02:00
2015-09-09 20:33:34 +02:00
As we are dealing with financial transactions, we explicitly describe
2017-04-07 14:59:41 +02:00
whenever entities need to safely write data to persistent storage.
As long as the data persists, the protocol can be safely
resumed at any step. Persisting data is cumulative, that is an
additional persist operation does not erase the previously stored
2015-01-08 18:37:20 +01:00
information. Keys and thus coins always have a well-known expiration
2017-04-07 14:59:41 +02:00
date; information persisted can be discarded after the
2016-05-29 21:25:08 +02:00
expiration date of the respective public key.
2016-05-22 17:13:44 +02:00
Customers may discard information once the respective coins have been
2016-05-29 21:25:08 +02:00
fully spent, so long as refunds are not required.
2016-05-22 17:13:44 +02:00
Merchants may discard information once payments from the exchange have
2015-10-13 18:39:43 +02:00
been received, assuming the records are also no longer needed for tax
2016-03-01 15:21:30 +01:00
purposes. The exchange's bank transfers dealing in traditional currency
2015-10-13 18:39:43 +02:00
are expected to be recorded for tax authorities to ensure taxability.
2016-06-14 16:52:03 +02:00
% FIXME: Auditor?
2017-05-18 09:35:16 +02:00
$ S _ K $ denotes RSA signing with denomination key $ K $ and EdDSA~\cite { eddsa,rfc8032}
2016-11-12 13:26:07 +01:00
over elliptic curve $ \mathbb { E } $ for other types of keys.
2016-10-25 14:49:20 +02:00
$ G $ denotes the generator of elliptic curve $ \mathbb { E } $ .
2016-06-14 16:52:03 +02:00
2015-01-08 18:37:20 +01:00
\subsection { Withdrawal}
2016-06-14 16:52:03 +02:00
To withdraw anonymous digital coins, the customer first selects an
exchange and one of its public denomination public keys $ K _ p $ whose
value $ K _ v $ corresponds to an amount the customer wishes to withdraw.
We let $ K _ s $ denote the exchange's private key corresponding to $ K _ p $ .
2017-05-16 14:40:06 +02:00
We use $ \FDH _ K $ to denote a full-domain hash where the domain is the
2017-04-07 14:59:41 +02:00
public key $ K _ p $ . Now the customer carries out the following
interaction with the exchange:
2015-01-08 18:37:20 +01:00
2016-05-22 17:13:44 +02:00
% FIXME: These steps occur at very different points in time, so probably
2016-11-12 13:26:07 +01:00
% they should be restructured into more of a protocol description.
2016-11-09 16:05:18 +01:00
% It does create some confusion, like is a reserve key semi-ephemeral
2016-05-22 17:13:44 +02:00
% like a linking key?
2016-11-09 16:17:54 +01:00
\begin { enumerate}
\item The customer randomly generates:
2016-08-08 14:57:34 +02:00
\begin { itemize}
2017-04-07 14:59:41 +02:00
\item reserve key $ W : = ( w _ s,W _ p ) $ with private key $ w _ s $ and public key $ W _ p : = w _ sG $ ,
2016-08-08 14:57:34 +02:00
\item coin key $ C : = ( c _ s,C _ p ) $ with private key $ c _ s $ and public key $ C _ p : = c _ s G $ ,
2017-05-17 16:31:41 +02:00
\item blinding factor $ b $
2016-08-08 14:57:34 +02:00
\end { itemize}
2017-05-17 16:31:41 +02:00
The customer first persists\footnote { When we say ``persist'', we mean that the value
is stored in such a way that it can be recovered after a system crash, and
the protocol execution can be re-tried from a checkpoint
without losing money sent in the next step.} $ \langle W, C, b \rangle $ .
Then the customer transfers an amount of money corresponding to
2016-09-12 15:53:20 +02:00
at least $ K _ v $ to the exchange, with $ W _ p $ in the subject line
of the transaction.
2016-11-09 16:17:54 +01:00
\item
2016-09-12 15:53:20 +02:00
The exchange receives the transaction and credits the reserve $ W _ p $
with the respective amount in its database.
2016-11-09 16:17:54 +01:00
\item
2016-11-07 18:14:37 +01:00
The customer computes $ B : = B _ b ( \FDH _ K ( C _ p ) ) $ and sends $ S _ W ( B ) $ to
2016-10-07 13:34:54 +02:00
the exchange to request withdrawal of $ C $ ; here, $ B _ b $ denotes
2016-09-12 15:53:20 +02:00
Chaum-style blinding with blinding factor $ b $ .
2016-11-09 16:17:54 +01:00
\item
2017-05-17 16:53:36 +02:00
The exchange checks its database if there is an existing withdraw record $ \langle S _ W ( B ) , x \rangle $
with existing withdraw response $ x $ ; in this case it sends back $ x $ .\\
Otherwise if this is a fresh withdrawal request, the exchange performs the following transaction:
2016-08-08 14:57:34 +02:00
\begin { enumerate}
\item checks if the reserve $ W _ p $ has sufficient funds
2016-10-25 14:58:24 +02:00
for a coin of value corresponding to $ K $ ,
2016-08-08 14:57:34 +02:00
\item stores the withdrawal request and response
$ \langle S _ W ( B ) , S _ K ( B ) \rangle $ in its database
for future reference,
\item deducts the amount corresponding to $ K $ from the reserve,
\end { enumerate}
2017-05-17 16:53:36 +02:00
and then sends Chaum-style blind signature $ S _ K ( B ) $ to the customer.
2016-08-08 14:57:34 +02:00
If the guards for the transaction fail, the exchange sends a descriptive
error back to the customer, with proof that it operated correctly.
Assuming the signature was valid, this would involve showing the transaction
history for the reserve.
2016-11-09 16:17:54 +01:00
\item The customer computes the unblinded signature $ U _ b ( S _ K ( B ) ) $ and
2016-11-07 18:14:37 +01:00
verifies that $ S _ K ( \FDH _ K ( C _ p ) ) = U _ b ( S _ K ( B ) ) $ .
2017-04-07 14:59:41 +02:00
Finally the customer persists the coin $ \langle S _ K ( \FDH _ K ( C _ p ) ) , c _ s \rangle $
in their local wallet.
2016-11-09 16:17:54 +01:00
\end { enumerate}
2015-01-08 18:37:20 +01:00
2015-05-09 22:51:12 +02:00
\subsection { Exact and partial spending}
2015-01-08 18:37:20 +01:00
A customer can spend coins at a merchant, under the condition that the
2016-06-14 16:52:03 +02:00
merchant trusts the exchange that issued the coin.
% FIXME: Auditor here?
2016-10-25 15:17:33 +02:00
Merchants are identified by their public key $ M _ p $ which the
2016-11-12 13:26:07 +01:00
customer's wallet learns through the merchant's Web page, which itself
2016-10-25 15:17:33 +02:00
should be authenticated with X.509c.
2016-06-20 17:40:28 +02:00
% FIXME: Is this correct?
2015-01-08 18:37:20 +01:00
2016-03-01 15:21:30 +01:00
We now describe the protocol between the customer, merchant, and exchange
2015-10-13 18:39:43 +02:00
for a transaction in which the customer spends a coin $ C : = ( c _ s, C _ p ) $
2016-08-08 14:57:34 +02:00
with signature $ \widetilde { C } : = S _ K ( \FDH _ K ( C _ p ) ) $
2016-11-12 13:26:07 +01:00
where $ K $ is the exchange's denomination key.
2015-01-08 18:37:20 +01:00
2016-05-22 17:13:44 +02:00
% FIXME: Again, these steps occur at different points in time, maybe
% that's okay, but refresh is slightly different.
2016-11-09 16:17:54 +01:00
\begin { enumerate}
\item \label { contract}
2016-08-09 00:48:08 +02:00
Let $ \vec { X } : = \langle X _ 1 , \ldots , X _ n \rangle $ denote the list of
exchanges accepted by the merchant where each $ X _ j $ is a exchange's
2016-10-07 13:34:54 +02:00
public key.
2016-11-09 16:17:54 +01:00
\item
2016-11-07 18:14:37 +01:00
The merchant creates a signed contract
2017-05-16 15:01:13 +02:00
\begin { equation*}
\mathcal { A} := S_ M(m, f, a, H(p, r), \vec { X} )
\end { equation*}
2016-10-25 15:17:33 +02:00
where $ m $ is an identifier for this transaction, $ f $ is the price of the offer,
and $ a $ is data relevant
2015-10-13 18:39:43 +02:00
to the contract indicating which services or goods the merchant will
2016-11-09 16:17:54 +01:00
deliver to the customer, including the merchant specific URI for the payment.
2015-10-13 18:39:43 +02:00
$ p $ is the merchant's payment information (e.g. his IBAN number), and
2017-04-07 14:59:41 +02:00
$ r $ is a random nonce. The merchant persists $ \langle \mathcal { A } \rangle $
and sends $ \mathcal { A } $ to the customer.
2016-11-09 16:17:54 +01:00
\item
2016-10-25 15:17:33 +02:00
The customer should already possess a coin $ \widetilde { C } $ issued by a exchange that is
accepted by the merchant, meaning $ K $ of $ \widetilde { C } $ should be publicly signed by
2016-08-09 00:48:08 +02:00
some $ X _ j $ from $ \vec { X } $ , and has a value $ \geq f $ .
2016-11-09 16:17:54 +01:00
% \item
2016-10-25 15:17:33 +02:00
Let $ X _ j $ be the exchange which signed $ \widetilde { C } $ with $ K $ .
2016-09-12 15:53:20 +02:00
The customer generates a \emph { deposit-permission}
2016-11-09 16:17:54 +01:00
$$ \mathcal { D } : = S _ c ( \widetilde { C } , m, f, H ( a ) , H ( p,r ) , M _ p ) $$
and sends $ \langle \mathcal { D } , X _ j \rangle $ to the merchant. \label { step:first-post}
\item
2016-09-12 15:53:20 +02:00
The merchant gives $ ( \mathcal { D } , p, r ) $ to the exchange, thereby
2016-06-14 16:52:03 +02:00
revealing $ p $ only to the exchange.
2016-11-09 16:17:54 +01:00
\item
2016-09-12 15:53:20 +02:00
The exchange validates $ \mathcal { D } $ and checks for double spending.
2015-09-28 08:53:01 +02:00
If the coin has been involved in previous transactions and the new
2016-11-09 16:17:54 +01:00
one would exceed its remaining value, it sends an error
2016-09-12 15:53:20 +02:00
with the records from the previous transactions back to the merchant. \\
%
2017-04-07 14:59:41 +02:00
If double spending is not found, the exchange persists $ \langle \mathcal { D } \rangle $
2016-11-09 16:17:54 +01:00
and signs a message affirming the deposit operation was successful.
\item
2017-04-07 14:59:41 +02:00
The merchant persists the response and forwards the notification from the exchange to the
2016-11-09 16:17:54 +01:00
customer, confirming the success or failure
2016-11-07 15:24:58 +01:00
of the operation.
2016-11-09 16:17:54 +01:00
\end { enumerate}
2015-01-08 18:37:20 +01:00
2016-05-29 17:07:04 +02:00
We have simplified the exposition by assuming that one coin suffices,
but in practice a customer can use multiple coins from the same
exchange where the total value adds up to $ f $ by running the above
steps for each of the coins.
2015-10-13 18:39:43 +02:00
2016-11-09 16:17:54 +01:00
If a transaction is aborted after step~\ref { step:first-post} , subsequent
2016-10-25 15:17:33 +02:00
transactions with the same coin could be linked to this operation.
The same applies to partially spent coins where $ f $ is smaller than
the actual value of the coin. To unlink subsequent transactions from
a coin, the customer has to execute the following coin refreshing
protocol with the exchange.
2015-01-08 18:37:20 +01:00
%\begin{figure}[h]
%\centering
%\begin{tikzpicture}
%
%\tikzstyle{def} = [node distance= 1em, inner sep=.5em, outer sep=.3em];
%\node (origin) at (0,0) {};
%\node (offer) [def,below=of origin]{make offer (merchant $\rightarrow$ customer)};
%\node (A) [def,below=of offer]{permit lock (customer $\rightarrow$ merchant)};
2016-03-01 15:21:30 +01:00
%\node (B) [def,below=of A]{apply lock (merchant $\rightarrow$ exchange)};
%\node (C) [def,below=of B]{confirm (or refuse) lock (exchange $\rightarrow$ merchant)};
2015-01-08 18:37:20 +01:00
%\node (D) [def,below=of C]{sign contract (merchant $\rightarrow$ customer)};
%\node (E) [def,below=of D]{permit deposit (customer $\rightarrow$ merchant)};
2016-03-01 15:21:30 +01:00
%\node (F) [def,below=of E]{make deposit (merchant $\rightarrow$ exchange)};
%\node (G) [def,below=of F]{transfer confirmation (exchange $\rightarrow$ merchant)};
2015-01-08 18:37:20 +01:00
%
%\tikzstyle{C} = [color=black, line width=1pt]
%\draw [->,C](offer) -- (A);
%\draw [->,C](A) -- (B);
%\draw [->,C](B) -- (C);
%\draw [->,C](C) -- (D);
%\draw [->,C](D) -- (E);
%\draw [->,C](E) -- (F);
%\draw [->,C](F) -- (G);
%
%\draw [->,C, bend right, shorten <=2mm] (E.east)
% to[out=-135,in=-45,distance=3.8cm] node[left] {aggregate} (D.east);
%\end{tikzpicture}
2016-03-01 15:21:30 +01:00
%\caption{Interactions between a customer, merchant and exchange in the coin spending
2015-01-08 18:37:20 +01:00
% protocol}
%\label{fig:spending_protocol_interactions}
%\end{figure}
2015-09-09 20:33:34 +02:00
\subsection { Refreshing} \label { sec:refreshing}
2015-01-08 18:37:20 +01:00
2016-03-01 15:21:30 +01:00
We now describe the refresh protocol whereby a dirty coin $ C' $ of
2017-04-07 14:59:41 +02:00
denomination $ K $ is melted to obtain a fresh coin $ \widetilde { C } $ . To
simplify the description, this section describes the case where one
{ \em unspent} dirty coin (for example, from an aborted transaction) is
2017-05-16 11:01:00 +02:00
exchanged for a fresh coin of the same denomination. We have again
simplified the exposition by creating only one fresh coin. In practice,
2017-04-07 14:59:41 +02:00
Taler uses a natural extension where multiple fresh coins of possibly
many different denominations are generated at the same time. For this,
the wallet simply specifies an array of coins wherever the protocol
below specifies only a single coin. The different denominations of the
fresh coins must be chosen by the wallet such that their value adds up
to the remaining balance of the dirty coin. This way, refreshing
enables giving precise change matching any amount, assuming the
exchange offers an adequate value range in its denominations.
2016-10-25 15:23:46 +02:00
In the protocol, $ \kappa \ge 2 $ is a security parameter for the
cut-and-choose part of the protocol. $ \kappa = 3 $ is actually
perfectly sufficient in most cases in practice, as the cut-and-choose
protocol does not need to provide cryptographic security: If the
2016-10-25 15:32:15 +02:00
maximum applicable tax is less than $ \frac { 2 } { 3 } $ , then $ \kappa = 3 $
ensures that cheating results in a negative financial return on
average as $ \kappa - 1 $ out of $ \kappa $ attempts to hide from taxation
2016-10-27 15:25:10 +02:00
are detected and penalized by a total loss. This makes our use of
2017-05-18 13:31:20 +02:00
cut-and-choose practical and efficient, orders of magnitude faster
than comparable proposed uses of zk-SNARKs in ZeroCash~\cite { zerocash}
and orders of magnitude more more bandwidth efficient than
comparable proposed uses of zero-knowledge proof in BOLT~\cite { BOLT} .
% TODO: Mention Zerocash linkability ideas?
2016-10-07 13:34:54 +02:00
2016-05-22 17:13:44 +02:00
% FIXME: I'm explicit about the rounds in postquantum.tex
2016-11-09 16:17:54 +01:00
\begin { enumerate}
\item %[POST {\tt /refresh/melt}]
2016-09-12 15:53:20 +02:00
For each $ i = 1 , \ldots , \kappa $ , the customer randomly generates
a transfer private key $ t ^ { ( i ) } _ s $ and computes
2016-11-09 16:17:54 +01:00
\begin { enumerate}
2016-08-08 14:57:34 +02:00
\item the transfer public key $ T ^ { ( i ) } _ p : = t ^ { ( i ) } _ s G $ and
2016-10-25 15:32:15 +02:00
\item the new coin secret seed $ L ^ { ( i ) } : = H ( c' _ s T _ p ^ { ( i ) } ) $ .
2016-11-09 16:17:54 +01:00
\end { enumerate}
2017-04-07 14:59:41 +02:00
We have computed $ L ^ { ( i ) } $ as a Diffie-Hellman shared secret between
2016-08-08 14:57:34 +02:00
the transfer key pair $ T ^ { ( i ) } : = \left ( t ^ { ( i ) } _ s,T ^ { ( i ) } _ p \right ) $
2016-08-10 01:01:21 +02:00
and old coin key pair $ C' : = \left ( c _ s', C _ p' \right ) $ ;
2016-10-25 15:32:15 +02:00
as a result, $ L ^ { ( i ) } = H ( t ^ { ( i ) } _ s C' _ p ) $ also holds.
Now the customer applies key derivation functions $ \KDF _ { \textrm { blinding } } $ and $ \KDF _ { \textrm { Ed 25519 } } $ to $ L ^ { ( i ) } $ to generate
2016-11-09 16:17:54 +01:00
\begin { enumerate}
2016-10-25 15:32:15 +02:00
\item a blinding factor $ b ^ { ( i ) } = \FDH _ K ( \KDF _ { \textrm { blinding } } ( L ^ { ( i ) } ) ) $ .
\item $ c _ s ^ { ( i ) } = \KDF _ { \textrm { Ed 25519 } } ( L ^ { ( i ) } ) $
2016-11-09 16:17:54 +01:00
\end { enumerate}
2016-08-08 14:57:34 +02:00
Now the customer can compute her new coin key pair
$ C ^ { ( i ) } : = \left ( c _ s ^ { ( i ) } , C _ p ^ { ( i ) } \right ) $
where $ C ^ { ( i ) } _ p : = c ^ { ( i ) } _ s G $ .
2017-04-07 14:59:41 +02:00
The customer persists $ \langle C', \vec { t } \rangle $ where
2016-08-08 14:57:34 +02:00
$ \vec { t } = \langle t ^ { ( 1 ) } _ s, \ldots , t ^ { ( \kappa ) } _ s \rangle $ .
We observe that $ t ^ { ( i ) } _ s $ suffices to regenerate $ C ^ { ( i ) } $ and $ b ^ { ( i ) } $
2016-08-10 01:01:21 +02:00
using the same key derivation functions.
2016-08-08 14:57:34 +02:00
% \item
2016-10-07 13:34:54 +02:00
The customer computes $ B ^ { ( i ) } : = B _ { b ^ { ( i ) } } ( \FDH _ K ( C ^ { ( i ) } _ p ) ) $
2017-04-07 14:59:41 +02:00
for $ i \in \{ 1 , \ldots , \kappa \} $ and sends a signed commitment
2016-08-08 14:57:34 +02:00
$ S _ { C' } ( \vec { B } , \vec { T _ p } ) $ to the exchange.
2016-11-09 16:17:54 +01:00
\item % [200 OK / 409 CONFLICT]
2017-05-16 15:07:37 +02:00
The exchange checks that $ C' _ p $ is a valid coin of sufficient balance
to cover the value of the fresh coins to be generated and prevent
double-spending. Then,
the exchange generates a random $ \gamma $ with $ 1 \le \gamma \le \kappa $ and
2017-05-16 14:45:03 +02:00
marks $ C' _ p $ as spent by persisting the \emph { refresh-record}
$ \mathcal { F } = \langle C', \gamma , S _ { C' } ( \vec { B } , \vec { T _ p } ) \rangle $ .
2015-10-13 18:39:43 +02:00
Auditing processes should assure that $ \gamma $ is unpredictable until
2016-09-12 15:53:20 +02:00
this time to prevent the exchange from assisting tax evasion. \\
%
The exchange sends $ S _ { K' } ( C' _ p, \gamma ) $ to the customer where
2016-11-12 13:26:07 +01:00
$ K' $ is the exchange's message signing key, thereby committing the exchange to $ \gamma $ .
2016-11-09 16:17:54 +01:00
\item % [POST {\tt /refresh/reveal}]
2017-04-07 14:59:41 +02:00
The customer persists $ \langle C', S _ K ( C' _ p, \gamma ) \rangle $ .
2016-09-12 15:53:20 +02:00
Also, the customer assembles
$ \mathfrak { R } : = \left ( t _ s ^ { ( i ) } \right ) _ { i \ne \gamma } $
and sends $ S _ { C' } ( \mathfrak { R } ) $ to the exchange.
2016-11-09 16:17:54 +01:00
\item %[200 OK / 400 BAD REQUEST] % \label{step:refresh-ccheck}
2016-08-08 14:57:34 +02:00
The exchange checks whether $ \mathfrak { R } $ is consistent with
the commitments; specifically, it computes for $ i \not = \gamma $ :
2015-09-24 17:32:55 +02:00
\vspace { -2ex}
2017-05-16 14:18:50 +02:00
\begin { minipage} { 3.5cm}
2015-09-24 17:32:55 +02:00
\begin { align*}
2016-10-25 15:42:04 +02:00
\overline { L^ { (i)} } :& = H(t_ s^ { (i)} C_ p') \\
\overline { c_ s^ { (i)} } :& = \KDF _ { \textrm { Ed25519} } (\overline { L^ { (i)} } ) \\
\overline { C^ { (i)} _ p} :& = \overline { c_ s^ { (i)} } G
2015-09-24 17:32:55 +02:00
\end { align*}
2016-08-08 14:57:34 +02:00
\end { minipage}
2017-05-16 14:18:50 +02:00
\begin { minipage} { 3cm}
2016-08-08 14:57:34 +02:00
\begin { align*}
2016-10-07 13:34:54 +02:00
\overline { T_ p^ { (i)} } :& = t_ s^ { (i)} G \\
2016-10-25 15:42:04 +02:00
\overline { b^ { (i)} } :& = \FDH _ K(\KDF _ { \textrm { blinding} } (\overline { L^ { (i)} } )) \\
2017-04-07 14:59:41 +02:00
\overline { B^ { (i)} } :& = B_ { \overline { b^ { (i)} } } (\FDH _ K\overline { C_ p^ { (i)} } )
2016-08-08 14:57:34 +02:00
\end { align*}
2015-09-24 17:32:55 +02:00
\end { minipage}
2015-09-26 16:30:04 +02:00
and checks if $ \overline { B ^ { ( i ) } } = B ^ { ( i ) } $
and $ \overline { T ^ { ( i ) } _ p } = T ^ { ( i ) } _ p $ .
2015-01-08 18:37:20 +01:00
2016-10-07 13:34:54 +02:00
% \item[200 OK / 409 CONFLICT] % \label{step:refresh-done}
2016-08-08 14:57:34 +02:00
If the commitments were consistent, the exchange sends the
blind signature $ \widetilde { C } : = S _ { K } ( B ^ { ( \gamma ) } ) $ to the customer.
Otherwise, the exchange responds with an error indicating
the location of the failure.
2016-11-09 16:17:54 +01:00
\end { enumerate}
2015-01-08 18:37:20 +01:00
2016-11-09 04:29:20 +01:00
% FIXME: Maybe explain why we don't need n-m refreshing?
% FIXME: What are the privacy implication of not having n-m refresh?
% What about the resulting number of large coins, doesn't this reduce the anonymity set?
2015-01-08 18:37:20 +01:00
%\subsection{N-to-M Refreshing}
%
%TODO: Explain, especially subtleties regarding session key / the spoofing attack that requires signature.
2017-05-11 21:41:23 +02:00
\subsection { Linking} \label { subsec:linking}
2015-01-08 18:37:20 +01:00
2016-05-22 17:13:44 +02:00
% FIXME: What is \mathtt{link} ?
2016-03-01 15:21:30 +01:00
For a coin that was successfully refreshed, the exchange responds to a
2016-08-08 14:57:34 +02:00
request $ S _ { C' } ( \mathtt { link } ) $ with $ ( T ^ { ( \gamma ) } _ p, \widetilde { C } ) $ .
2015-09-24 17:32:55 +02:00
%
2016-08-08 14:57:34 +02:00
This allows the owner of the melted coin to derive the private key of
the new coin, even if the refreshing protocol was illicitly executed
with the help of another party who generated $ \vec { c _ s } $ and only
2015-09-28 12:01:37 +02:00
provided $ \vec { C _ p } $ and other required information to the old owner.
2016-05-22 17:12:17 +02:00
As a result, linking ensures that access to the new coins issued in
2015-09-24 17:43:20 +02:00
the refresh protocol is always { \em shared} with the owner of the
melted coins. This makes it impossible to abuse the refresh protocol
for { \em transactions} .
2015-09-06 18:35:24 +02:00
The linking request is not expected to be used at all during ordinary
operation of Taler. If the refresh protocol is used by Alice to
obtain change as designed, she already knows all of the information
and thus has little reason to request it via the linking protocol.
2016-10-07 13:34:54 +02:00
The fundamental reason why the exchange must provide the link protocol
2016-08-08 14:57:34 +02:00
is simply to provide a threat: if Bob were to use the refresh protocol
2015-09-06 18:35:24 +02:00
for a transaction of funds from Alice to him, Alice may use a link
request to gain shared access to Bob's coins. Thus, this threat
2015-09-24 17:43:20 +02:00
prevents Alice and Bob from abusing the refresh protocol to evade
taxation on transactions. If Bob trusts Alice to not execute the link
protocol, then they can already conspire to evade taxation by simply
exchanging the original private coin keys. This is permitted in our
taxation model as with such trust they are assumed to be the same
entity.
2015-09-06 18:35:24 +02:00
2016-03-01 15:21:30 +01:00
The auditor can anonymously check if the exchange correctly implements the
2016-10-25 15:51:19 +02:00
link request, thus preventing the exchange operator from secretly disabling
2015-09-06 18:35:24 +02:00
this protocol component. Without the link operation, Taler would
devolve into a payment system where both sides can be anonymous, and
thus no longer provide taxability.
2017-05-16 11:01:00 +02:00
\subsection { Refunds}
The refresh protocol offers an easy way to enable refunds to
customers, even if they are anonymous. Refunds are supported
by including a public signing key of the merchant in the transaction
details, and having the customer keep the private key of the spent
coins on file.
Given this, the merchant can simply sign a { \em refund confirmation}
and share it with the exchange and the customer. Assuming the
exchange has a way to recover the funds from the merchant, or has not
yet performed the wire transfer, the exchange can simply add the value
of the refunded transaction back to the original coin, re-enabling
those funds to be spent again by the original customer. This customer
can then use the refresh protocol to anonymously melt the refunded
coin and create a fresh coin that is unlinkable to the refunded
transaction.
2015-09-06 18:35:24 +02:00
\subsection { Error handling}
During operation, there are three main types of errors that are
expected. First, in the case of faulty clients, the responding server
will generate an error message with detailed cryptographic proofs
demonstrating that the client was faulty, for example by providing
proof of double-spending or providing the previous commit and the
2016-11-12 13:26:07 +01:00
location of the mismatch in the case of the reveal step in the
2015-09-06 18:35:24 +02:00
refresh protocol. It is also possible that the server may claim that
the client has been violating the protocol. In these cases, the
clients should verify any proofs provided and if they are acceptable,
2015-09-24 17:43:20 +02:00
notify the user that they are somehow faulty. Similar, if the
2015-09-06 18:35:24 +02:00
server indicates that the client is violating the protocol, the
client should record the interaction and enable the user to file a
2015-09-24 17:43:20 +02:00
bug report.
2015-09-06 18:35:24 +02:00
2016-05-29 17:07:04 +02:00
The second case is a faulty exchange service provider. Here, faults
will be detected when the exchange provides a faulty proof or no
proof. In this case, the client is expected to notify the auditor,
providing a transcript of the interaction. The auditor can then
anonymously replay the transaction, and either provide the now correct
response to the client or take appropriate legal action against the
faulty exchange.
2015-09-06 18:35:24 +02:00
The third case are transient failures, such as network failures or
2017-05-16 11:01:00 +02:00
temporary hardware failures at the exchange service provider. Here,
the client may receive an explicit protocol indication, or simply no
response. The appropriate behavior for the client is to automatically
retry a few times with back-off. If this still fails, the user can,
depending on the type of operation, either attempt to recover the now
dirty coin using the refresh protocol, or notify the auditor about the
outage. Using this process, short term failures should be effectively
obscured from the user, while malicious behavior is reported to the
auditor who can then presumably rectify the situation, using methods
such as shutting down the operator and helping customers to regain
refunds for coins in their wallets. To ensure that such refunds are
possible, the operator is expected to always provide adequate
securities for the amount of coins in circulation as part of the
certification process.
2016-05-29 17:07:04 +02:00
%As with support for fractional payments, Taler addresses these
%problems by allowing customers to refresh tainted coins, thereby
%destroying the link between the refunded or aborted transaction and
%the new coin.
2017-05-16 14:00:26 +02:00
\section { Correctness}
2017-05-16 14:08:56 +02:00
\subsection { Taxability arguments}
We assume the exchange operates honestly when discussing taxability.
We feel this assumption is warranted mostly because a Taler exchange
requires licenses to operate as a financial institution, which it
risks loosing if it knowingly facilitates tax evasion.
We also expect an auditor monitors the exchange similarly to how
government regulators monitor financial institutions.
In fact, our auditor software component gives the auditor read access
to the exchange's database, and carries out test operations anonymously,
which expands its power over conventional auditors.
\begin { proposition}
Assuming the exchange operates the refresh protocol honestly,
a customer operating the refresh protocol dishonestly expects to
loose $ 1 - { 1 \over \kappa } $ of the value of their coins.
\end { proposition}
\begin { proof}
An honest exchange keeps any funds being refreshed if the reveal
phase is never carried out, does not match the commitment, or shows
an incorrect commitment. As a result, a customer dishonestly
refreshing a coin looses their money if they have more than one
dishonest commitment. If they make exactly one dishonest
commitment, they have a $ 1 \over \kappa $ chance of their
dishonest commitment being selected for the refresh.
\end { proof}
We say a coin $ C $ is { \em controlled} by a user if the user's wallet knows
its secret scalar $ c _ s $ , the signature $ S $ of the appropriate denomination
key on its public key $ C _ s $ , and the residual value of the coin.
We assume the wallet cannot loose knowledge of a particular coin's
key material, and the wallet can query the exchange to learn the
residual value of the coin, so a wallet cannot loose control of
a coin. A wallet may loose the monetary value associated with a coin
if another wallet spends it however.
We say a user Alice { \em owns} a coin $ C $ if only Alice's wallets can
gain control of $ C $ using standard interactions with the exchange.
In other words, ownership means exclusive control not just in the
present, but in the future even if another user interacts with the
exchange.
\begin { theorem}
Let $ C $ denote a coin controlled by users Alice and Bob.
Suppose Bob creates a coin $ C' $ from $ C $ following the refresh protocol.
Assuming the exchange and Bob operated the refresh protocol correctly,
and that the exchange continues to operate the linking protocol
2017-05-16 15:15:16 +02:00
in \S \ref { subsec:linking} correctly,
2017-05-16 14:08:56 +02:00
then Alice can gain control of $ C' $ using the linking protocol.
\end { theorem}
\begin { proof}
Alice may run the linking protocol to obtain all transfer keys $ T ^ i $ ,
bindings $ B ^ i $ associated to $ C $ , and those coins denominations,
including the $ T' $ for $ C' $ .
We assumed both the exchange and Bob operated the refresh protocol
correctly, so now $ c _ s T' $ is the seed from which $ C' $ was generated.
Alice rederives both $ c _ s $ and the blinding factor to unblind the
denomination key signature on $ C' $ . Alice finally asks the exchange
for the residual value on $ C' $ and runs the linking protocol to
determine if it was refreshed too.
\end { proof}
\begin { corollary}
Abusing the refresh protocol to transfer ownership has an
expected loss of $ 1 - \frac { 1 } { \kappa } $ of the transaction value.
\end { corollary}
\subsection { Privacy arguments}
The { \em linking problem} for blind signature is,
if given coin creation transcripts and possibly fewer
coin deposit transcripts for coins from the creation transcripts,
then produce a corresponding creation and deposit transcript.
We say an adversary { \em links} coins if it has a non-negligible
advantage in solving the linking problem, when given the private
keys of the exchange.
In Taler, there are two forms of coin creation transcripts,
2017-05-16 15:50:42 +02:00
withdrawal and refresh.
2017-05-16 14:08:56 +02:00
\begin { lemma}
If there are no refresh operations, any adversary with an
advantage in linking coins is polynomially equivalent to an
adversary with the same advantage in recognizing blinding factors.
\end { lemma}
\begin { proof}
Let $ n $ denote the RSA modulus of the denomination key.
Also let $ d $ and $ e $ denote the private and public exponents, respectively.
In effect, coin withdrawal transcripts consist of numbers
$ b m ^ d \mod n $ where $ m $ is the FDH of the coin's public key
and $ b $ is the blinding factor, while coin deposits transcripts
consist of only $ m ^ d \mod n $ .
Of course, if the adversary can link coins then they can compute
the blinding factors as $ b m ^ d / m ^ d \mod n $ . Conversely, if the
adversary can recognize blinding factors then they link coins after
first computing $ b _ { i,j } = b _ i m _ i ^ d / m _ j ^ d \mod n $ for all $ i,j $ .
\end { proof}
We now know the following because Taler uses SHA512 adopted to be
a FDH to be the blinding factor.
\begin { corollary}
Assuming no refresh operation,
any adversary with an advantage for linking Taler coins gives
rise to an adversary with an advantage for recognizing SHA512 output.
\end { corollary}
2017-05-16 15:15:16 +02:00
Importantly, we do not consider coins about which wallet learns
2017-05-16 15:50:42 +02:00
through the linking protocol given in \S \ref { subsec:linking} .
2017-05-16 15:15:16 +02:00
An honest participant never needs to run the linking protocol,
so these coins should not appear, and we do not count them in
the adversary's advantage. If linked coins do appear, then
they cannot be spent anonymously because the other user controlling
the coin can learn about any transactions involving these coins.
Worse still, the exchange itself could issue tagged coins through
the linking protocol. As a result, we limit the refresh protocol to
a feature offered by the exchange, and test it from the auditor, but
do not use it in any real Taler protocols and do not implement it in
the wallet. A user who modified their wallet to operate dishonestly
could similarly modify it to use the linking protocol to cheat
other users.
\smallskip
2017-05-16 15:50:42 +02:00
We will now consider the impact of the refresh operation.
2017-05-16 15:15:16 +02:00
For the sake of the argument, we will first consider an earlier
encryption-based version of the protocol in which a refresh operated
consisted of $ \kappa $ normal coin withdrawals and the commitment
2017-05-16 14:08:56 +02:00
consisted of the blinding factors and private keys of the fresh coins
encrypted using the secret $ t ^ { ( i ) } C _ s $ where $ C _ s = c _ s G $ of the
dirty coin $ C $ being refreshed and $ T ^ { ( i ) } = t ^ { ( i ) } G $ is the
2017-05-16 15:15:16 +02:00
transfer key.
%
In Taler, we replaced this encryption-based schem with the current
KDF-based scheme as it required slightly more storage space, the
additional, encryption primitive, and exposed more random number
generator output from the wallet.
2017-05-16 14:08:56 +02:00
\begin { proposition}
Assuming the encryption used is semantically (IND-CPA) secure, and
2017-05-16 15:15:16 +02:00
the independence of $ c _ s $ , $ t $ , and the new coins' key materials,
2017-05-16 14:08:56 +02:00
then any probabilistic polynomial time (PPT) adversary with an
advantage for linking Taler coins gives rise to an adversary with
an advantage for recognizing SHA512 output.
\end { proposition}
2017-05-16 15:15:16 +02:00
% TODO: Is independence here too strong?
2017-05-16 14:08:56 +02:00
In fact, the exchange can launch an chosen cphertext attack against
2017-05-16 15:15:16 +02:00
a dishonest customer who uses the linking protocol. We ignore this
because we exclude such coins from our privacy garentees and the
exchange can even invent coins whole cloth.
2017-05-16 14:08:56 +02:00
We may now remove the encrpytion by appealing to the random oracle
model~\cite { BR-RandomOracles} .
2017-05-16 16:42:11 +02:00
\begin { lemma} %[\cite{??}]
2017-05-16 14:08:56 +02:00
Consider a protocol that commits to random data by encrypting it
using a secret derived from a Diffe-Hellman key exchange.
In the random oracle model, we may replace this encryption with
a hash function which derives the random data by applying hash
functions to the same secret.
\end { lemma}
2017-05-16 15:15:16 +02:00
% TODO: Too general probably?
2017-05-16 15:50:42 +02:00
% TODO: IND-CPA again?
2017-05-16 14:08:56 +02:00
2017-05-16 16:42:11 +02:00
Indeed, we expect doing so to increase practical security as in
\cite { Abdalla2000} , and adding the random oracle assumption need not
reduce security if it focuses more attention on the usage of hash
functions throughout the protocol.
2017-05-16 14:08:56 +02:00
\begin { proof}
We work with the usual instantiation of the random oracle model as
returning a random string and placing it into a database for future
queries.
We take the random number generator that drives one random oracle $ R $
to be the random number generator used to produce the random data
that we encrypt in the old encryption based version of Taler.
Now our random oracle scheme with $ R $ gives the same result as our
scheme that encrypts random data, so the encryption becomes
superfluous and may be omitted.
2017-05-16 16:42:11 +02:00
We require the security of the original encryption operation reduced
to the security of the Diffe-Hellman key exchange, which remains a
requirement of the derived protocol.
2017-05-16 14:08:56 +02:00
\end { proof}
We may now conclude that Taler remains unlinkable even with the refresh protocol.
\begin { theorem}
In the random oracle model, any PPT adversary with an advantage
in linking Taler coins has an advantage in breaking elliptic curve
Diffie-Hellman key exchange on Curve25519.
\end { theorem}
We do not distinguish between information known by the exchange and
information known by the merchant in the above. As a result, this
proves that out linking protocol \S \ref { subsec:linking} does not
degrade privacy. We note that the exchange could lie in the linking
protocol about the transfer public key to generate coins that it can
link (at a financial loss to the exchange that it would have to square
with its auditor). However, in the normal course of payments the link
protocol is never used.
\subsection { Exculpability arguments}
2017-05-16 15:09:02 +02:00
\begin { lemma} \label { lemma:double-spending}
2017-05-17 23:58:31 +02:00
The exchange can detect, prevent, and prove double-spending.
2017-05-16 14:08:56 +02:00
\end { lemma}
\begin { proof}
2017-05-16 15:09:02 +02:00
A coin can only be spent by running the deposit protocol or the refresh
2017-05-16 14:45:03 +02:00
protocol with the exchange. Thus every time a coin is spent, the exchange
obtains either a deposit-permission or a refresh-record, both of which
contain a signature made with the public key of coin to authorizing the
2017-05-16 15:09:02 +02:00
respective operation. If the exchange has a set of refresh-records and
2017-05-16 14:45:03 +02:00
deposit-permissions whose total value exceed the value of the coin, the
2017-05-17 23:58:31 +02:00
exchange can show this set to prove that double-spending is being
attempted and justify rejecting the operation.
2017-05-16 14:08:56 +02:00
\end { proof}
2017-05-16 14:45:03 +02:00
\begin { corollary}
2017-05-17 23:58:31 +02:00
Merchants and customers can verify proofs of double-spending attempts
by verifying that the signatures in the set of refresh-records and
deposit-permissions are correct and that the total value would exceed
the coin's value.
2017-05-16 14:45:03 +02:00
\end { corollary}
2017-05-16 14:08:56 +02:00
\begin { lemma}
2017-05-16 14:45:03 +02:00
% only holds given sufficient time
2017-05-16 15:09:02 +02:00
Customers can either obtain proof-of-payment or their money back, even
when the merchant is faulty.
2017-05-16 14:08:56 +02:00
\end { lemma}
\begin { proof}
2017-05-16 15:50:42 +02:00
When the customer sends the deposit-permission for a coin to a correct
merchant, the merchant will pass it on to the exchange, and pass the
exchange's response, a deposit-confirmation, on to the customer. If
the customer does not receive a deposit-confirmation from the
merchant, it will run the refresh protocol. If the faulty merchant
did deposit the coin, the customer will receive the
deposit-confirmation as part of the double-spending proof from the
refreshing protocol. If the merchant did not deposit the coin, the
customer receives a new, unlinkable coin.
2017-05-16 14:08:56 +02:00
\end { proof}
2017-05-16 15:09:02 +02:00
\begin { corollary}
2017-05-16 15:50:42 +02:00
If a customer paid for a contract signed by a merchant,
they can prove it by showing the deposit permissions for all coins.
2017-05-16 15:09:02 +02:00
\end { corollary}
2017-05-16 14:08:56 +02:00
\begin { lemma}
2017-05-16 15:50:42 +02:00
Only the merchant can issue refunds, and only to the original customer.
2017-05-16 14:08:56 +02:00
\end { lemma}
\begin { proof}
2017-05-16 15:50:42 +02:00
The refund protocol requires a signature matching the merchant's public
key, which had to be included in the original contract.
2017-05-16 15:09:02 +02:00
Since the refund only increases the balance of a coin that the original
2017-05-16 15:50:42 +02:00
customer owns, only the original customer can use the increased balance.
2017-05-16 14:08:56 +02:00
\end { proof}
\begin { theorem}
The protocol prevents double-spending and provides exculpability.
\end { theorem}
2017-05-16 15:09:02 +02:00
\begin { proof}
2017-05-16 15:50:42 +02:00
Follows from Lemma~\ref { lemma:double-spending} and the assumption
that the exchange cannot forge signatures to obtain an fake
set of deposit-permissions or refresh-records.
2017-05-16 15:09:02 +02:00
\end { proof}
2017-05-16 14:00:26 +02:00
\section { Implementation}
2017-05-17 20:55:25 +02:00
2017-05-17 23:50:41 +02:00
We implemented the Taler protocol in the context of a payment system
for the Web, as shown in Figure~\ref { fig:taler-arch} . The system was
designed for real-world usage with current Web technology and within
the existing financial system.
By instructing their bank to send money to an exchange, the customer
creates a (non-anonymous) balance, called a \emph { reserve} , at the
exchange. The customer can subsequently withdraw coins from this
reserve into their \emph { wallet} , which stores and manages coins.
To withdrawal of coins from the exchange, the customer's wallet authenticates
2017-05-18 09:35:16 +02:00
itself using an Ed25519 private key for the customer's reserve.
2017-05-17 23:50:41 +02:00
The customer must include the corresponding reserve public key in the
payment instruction from the customer's bank to the exchange's bank
that funded their reserve. With a bank that directly supports Taler
on their online banking website, this process is streamlined for the
user, since the wallet automatically creates the key pair for the
reserve and adds the public key to the payment instruction.
2017-05-17 14:11:37 +02:00
2017-05-17 20:55:25 +02:00
While browsing a merchant's website, the website can signal the wallet
to request a payment from a user. The user is then asked to confirm
or reject this proposal. The merchant deposits coins received from
the customer's wallet at the exchange. Since bank transfers are
usually costly, the exchange delays and aggregates multiple deposits
2017-05-17 23:50:41 +02:00
into a bigger wire transfer. This allows Taler to be used even for
microtransactions of amounts smaller than usually handled by the
2017-05-17 20:55:25 +02:00
underlying banking system.
2017-05-17 14:11:37 +02:00
2017-05-17 23:50:41 +02:00
As shown in Figure~\ref { fig:taler-arch} , the merchant is internally split
into multiple components. The implementation of the Taler prococol and
cryptographic operations is isolated into a separate component, called
the \emph { merchant backend} , which the merchant accesses through an API
or software development kit (SDK) of their choice.
2017-05-17 14:11:37 +02:00
2017-05-17 20:55:25 +02:00
Our implementations of the exchange (70,000 LOC) and merchant backend
(20,000 LOC) are written in C using PostgreSQL as the database and
libgcrypt for cryptographic operations. The \emph { wallet} (10,000
LOC) is implemented in TypeScript as a cross-browser extension using
the WebExtensions API, which is available for a majority of widely
used browsers. It also uses libgcrypt (compiled to JavaScript) for
cryptographic operations as the required primitives are not yet
natively supported by Web browsers. Sample merchant websites (1,000
LOC) and an example bank (2,000 LOC) with tight Taler integration are
provided in Python.
2017-05-17 14:11:37 +02:00
2017-05-17 20:55:25 +02:00
The code is available at \url { https://git.taler.net/} and a demo
is publicly available at \url { https://demo.taler.net/} .
2017-05-17 14:11:37 +02:00
2017-05-17 20:55:25 +02:00
\begin { figure}
2017-05-16 14:40:06 +02:00
\includegraphics [width=\columnwidth] { taler-arch-full.pdf}
\caption { The different components of the Taler system in the
context of a banking system providing money creation,
wire transfers and authentication. (Auditor omitted.)}
2017-05-17 20:55:25 +02:00
\label { fig:taler-arch}
2017-05-16 14:40:06 +02:00
\end { figure}
2016-06-20 17:40:28 +02:00
\section { Experimental results}
2017-05-16 14:16:03 +02:00
%\begin{figure}[b!]
% \includegraphics[width=\columnwidth]{bw_in.png}
% \caption{Incoming traffic at the exchange, in bytes per 5 minutes.}
% \label{fig:in}
%\end{figure}\hfill
% \begin{figure}[b!]
% \includegraphics[width=\columnwidth]{bw_out.png}
% \caption{Outgoing traffic from the exchange, in bytes per 5 minutes.}
% \label{fig:out}
% \end{figure}
% \begin{figure}[b!]
% \includegraphics[width=\columnwidth]{db_read.png}
% \caption{DB read operations per second.}
% \label{fig:read}
% \end{figure}
% \begin{figure}[b!]
% \includegraphics[width=\columnwidth]{db_write.png}
% \caption{DB write operations per second.}
% \label{fig:write}
% \end{figure}
% \begin{figure}[b!]
% \includegraphics[width=\columnwidth]{cpu_balance.png}
% \caption{CPU credit balance. Hitting a balance of 0 shows the CPU is
% the limiting factor.}
% \label{fig:cpu}
% \end{figure}
% \begin{figure}[b!]
% \includegraphics[width=\columnwidth]{cpu_usage.png}
% \caption{CPU utilization. The t2.micro instance is allowed to use 10\% of
% one CPU.}
% \label{fig:usage}
% \end{figure}
2016-10-07 13:34:54 +02:00
% \caption{Selected EC2 performance monitors for the experiment in the EC2
% (after several hours, once the system was ``warm'').}
% \label{fig:ec2}
%\end{figure}
2016-06-20 17:40:28 +02:00
We ran the Taler exchange v0.0.2 on an Amazon EC2 t2.micro instance
(10\% of a Xeon E5-2676 at 2.4 GHz) based on Ubuntu 14.04.4 LTS, using
2017-04-07 14:59:41 +02:00
a db.t2.micro instance with Postgres 9.5 for the database. We used
1024-bit RSA keys for blind signatures, Curve25519 for DH, EdDSA
for non-blind signatures and SHA-512 for hashing. For the KDF and
FDH operations we used~\cite { rfc5869} with SHA-512 as XTR and SHA-256
for PRF as suggested in~\cite { rfc5869} . Using 16
2016-06-20 17:40:28 +02:00
concurrent clients performing withdraw, deposit and refresh operations
we then pushed the t2.micro instance to the resource limit
2017-05-16 14:17:02 +02:00
%(Figure~\ref{fig:cpu})
2016-10-07 13:34:54 +02:00
from a network with $ \approx $ 160 ms latency to
2016-06-20 17:40:28 +02:00
the EC2 instance. At that point, the instance managed about 8 HTTP
requests per second, which roughly corresponds to one full business
transaction (as a full business transaction is expected to involve
withdrawing and depositing several coins). The network traffic was
modest at approximately 50 kbit/sec from the exchange
2017-05-16 14:17:02 +02:00
%(Figure~\ref{fig:out})
2016-10-07 13:34:54 +02:00
and 160 kbit/sec to the exchange.
2017-05-16 14:17:02 +02:00
%(Figure~\ref{fig:in}).
2016-10-07 13:34:54 +02:00
At network latencies above 10 ms, the delay
2016-06-20 17:40:28 +02:00
for executing a transaction is dominated by the network latency, as
local processing virtually always takes less than 10 ms.
2016-10-25 15:51:19 +02:00
Database transactions are dominated by writes%
2017-05-16 14:17:02 +02:00
%(Figure~\ref{fig:read} vs. Figure~\ref{fig:write})
, as Taler mostly needs to log
2016-06-20 17:40:28 +02:00
transactions and occasionally needs to read to guard against
double-spending. Given a database capacity of 2 TB---which should
suffice for more than one year of full transaction logs---the
described setup has a hosting cost within EC2 of approximately USD 252
per month, or roughly 0.0001 USD per full business transaction. This
compares favorably to the $ \approx $ USD 10 per business transaction
for Bitcoin and the \EUR { 0.35} plus 1.9\% charged by Paypal for
domestic transfers within Germany.
In the Amazon EC2 billing, the cost for the database (using SSD
storage) dominates the cost with more than USD 243 per month. We note
that these numbers are approximate, as the frontend and backend in our
configuration uses systems from the AWS Free Usage Tier and is not
perfectly balanced in between frontend and backend. Nevertheless,
these experimental results show that computing-related business costs
will only marginally contribute to the operational costs of the Taler
payment system.
2017-05-16 14:33:04 +02:00
Scalability of the design is also not a concern, as the exchange's
database can be easily shareded over the different public keys as
desired. Similar to the RSCoin~\cite { danezis2016rscoin} design, this
ensures that conflicting transactions end up in the same shard,
enabling linear scalability of the database operations. Similarly,
the cryptographic verification in the frontend can be distributed over
as many compute nodes as required.
2015-01-08 18:37:20 +01:00
2017-05-17 15:17:53 +02:00
Unfortunately it was not possible to experimentally compare the performance of
Taler directly to other e-cash systems, since to our best knowledge there
is no working and publicly available implementation of any of them.
2017-05-18 09:59:43 +02:00
When compared with the current average confirmation time for Bitcoin
payments, Taler is many orders of magnitude faster. In a LAN, Taler
transactions taking about ten milliseconds are doable, given the speed
of modern SSD drives and RSA/EdDSA signature verification
algorithms.\footnote { We refer to \url { https://bench.cr.yp.to/} for
detailed benchmarks of cryptographic primitives.} In practice, a
few network round trips for the TCP/HTTPS handshakes and the HTTP
request dominate overall latency. While the confirmation time of
Taler is thus typically in the order of a few hundered milliseconds,
the time to mine even one block in Bitcoin is around ten
2017-05-17 15:17:53 +02:00
minutes \footnote { Data retrieved in May 2017 from
2017-05-18 09:59:43 +02:00
\url { https://blockchain.info/stats} } . Bitcoin merchants following
the Bitcoin specification must wait for six such blocks until they
consider a transaction confirmed. Thus latency for durable
transactions in Bitcoin is about three to four orders of magnitude
lower.
2017-05-17 15:17:53 +02:00
2015-01-08 18:37:20 +01:00
\section { Discussion}
2016-11-09 16:32:43 +01:00
\subsection { Well-known attacks}
2016-05-29 17:07:04 +02:00
2015-09-24 12:22:20 +02:00
Taler's security is largely equivalent to that of Chaum's original
2015-10-13 18:39:43 +02:00
design without online checks or the cut-and-choose revelation of
2016-03-01 15:21:30 +01:00
double-spending customers for offline spending.
We specifically note that the digital equivalent of the ``Columbian
Black Market Exchange''~\cite { fatf1997} is a theoretical problem for
2015-10-13 18:39:43 +02:00
both Chaum and Taler, as individuals with a strong mutual trust
2016-03-01 15:21:30 +01:00
foundation can simply copy electronic coins and thereby establish a
2015-10-13 18:39:43 +02:00
limited form of black transfers. However, unlike the situation with
physical checks with blank recipients in the Columbian black market,
the transitivity is limited as each participant can deposit the electronic
2015-09-24 12:22:20 +02:00
coins and thereby cheat any other participant, while in the Columbian
black market each participant only needs to trust the issuer of the
check and not also all previous owners of the physical check.
As with any unconditionally anonymous payment system, the ``Perfect
Crime'' attack~\cite { solms1992perfect} where blackmail is used to
2016-03-01 15:21:30 +01:00
force the exchange to issue anonymous coins also continues to apply in
2015-10-07 16:39:03 +02:00
principle. However, as mentioned Taler does facilitate limits on
2015-09-24 12:22:20 +02:00
withdrawals, which we believe is a better trade-off than the
problematic escrow systems where the necessary intransparency
2016-03-01 15:21:30 +01:00
actually facilitates voluntary cooperation between the exchange and
2016-05-29 21:25:08 +02:00
criminals~\cite { sander1999escrow} and where the state could
2016-05-29 17:07:04 +02:00
deanonymize citizens.
2015-09-24 12:22:20 +02:00
2016-11-09 16:37:09 +01:00
\subsection { Offline Payments} \label { sec:offline}
2015-01-08 18:37:20 +01:00
2016-11-10 17:19:00 +01:00
Anonymous digital cash schemes since Chaum were frequently designed
2016-11-12 13:26:07 +01:00
to allow the merchant to be offline during the transaction,
2016-11-10 17:19:00 +01:00
by providing a means to deanonymize customers involved in
double-spending. We consider this problematic as either the
exchange or the merchant still requires an out-of-band
means to recover funds from the customer, an expensive and
unreliable proposition. Worse, there are unacceptable risks that
a customer may accidentally deanonymize herself, for example by
double-spending a coin after restoring from backup.
2015-01-08 18:37:20 +01:00
2016-11-09 16:32:43 +01:00
\subsection { Merchant Tax Audits}
For a tax audit on the merchant, the exchange includes the business
transaction-specific hash in the transfer of the traditional
currency. A tax auditor can then request the merchant to reveal
(meaningful) details about the business transaction ($ \mathcal { D } $ ,
$ a $ , $ p $ , $ r $ ), including proof that applicable taxes were paid.
2015-09-24 15:40:27 +02:00
2016-11-09 16:32:43 +01:00
If a merchant is not able to provide theses values, they can be
subjected to financial penalties by the state in relation to the
amount transferred by the traditional currency transfer.
\subsection { Cryptographic proof vs. evidence}
2015-09-24 15:40:27 +02:00
In this paper we have use the term ``proof'' in many places as the
protocol provides cryptographic proofs of which parties behave
correctly or incorrectly. However, as~\cite { fc2014murdoch} point out,
in practice financial systems need to provide evidence that holds up
in courts. Taler's implementation is designed to export evidence and
upholds the core principles described in~\cite { fc2014murdoch} . In
particular, in providing the cryptographic proofs as evidence none of
2016-05-29 17:07:04 +02:00
the participants have to disclose their core secrets.
2017-05-16 15:01:13 +02:00
\subsection { Business concerns}
The Taler system implementation includes additional protocol elements
to address real-world concerns. To begin with, the exchange
automatically transfers any funds that have been left for an extended
amount of time in a customer's reserve back to the customer's bank
account. Furthermore, we allow the exchange to revoke denomination
keys, and wallets periodically check for such revocations. If a
denomination key has been revoked, the wallets use the { \em payback}
protocol to deposit funds back to the customer's reserve, from where
they are either withdrawn with a new denomination key or sent back to
the customer's bank account. Unlike ordinary deposits, the payback
protocol does not incur any transaction fees. The primary use of the
protocol is to limit the financial loss in cases where an audit
reveals that the exchange's private keys were compromised, and to
automatically pay back balances held in a customers' wallet if an
exchange ever goes out of business.
2015-09-24 15:40:27 +02:00
%\subsection{System Performance}
%
%We performed some initial performance measurements for the various
2016-03-01 15:21:30 +01:00
%operations on our exchange implementation. The main conclusion was that
2015-09-24 15:40:27 +02:00
%the computational and bandwidth cost for transactions described in
2016-11-09 16:32:43 +01:00
%this paper is smaller than $10^{-2}$ cent/transaction, and thus
2016-03-01 15:21:30 +01:00
%dwarfed by the other business costs for the exchange. However, this
2015-09-24 15:40:27 +02:00
%figure excludes the cost of currency transfers using traditional
2016-03-01 15:21:30 +01:00
%banking, which a exchange operator would ultimately have to interact with.
%Here, exchange operators should be able to reduce their expenses by
2015-09-24 15:40:27 +02:00
%aggregating multiple transfers to the same merchant.
2016-11-09 16:32:43 +01:00
\section { Conclusion}
2015-09-24 15:40:27 +02:00
2016-11-09 16:32:43 +01:00
We have presented an efficient electronic payment system that
simultaneously addresses the conflicting objectives created by the
citizen's need for privacy and the state's need for taxation. The
coin refreshing protocol makes the design flexible and enables a
variety of payment methods. The current balance and profits of the
exchange are also easily determined, thus audits can be used to ensure
that the exchange operates correctly. The free software
implementation and open protocol may finally enable modern society to
upgrade to proper electronic wallets with efficient, secure and
privacy-preserving transactions.
2015-01-08 18:37:20 +01:00
2015-09-09 20:35:27 +02:00
% commented out for anonymized submission
2016-11-09 16:32:43 +01:00
\subsection * { Acknowledgements}
2015-09-06 18:35:24 +02:00
2016-11-09 16:32:43 +01:00
We thank people (anonymized).
%This work benefits from the financial support of the Brittany Region
%(ARED 9178) and a grant from the Renewable Freedom Foundation.
2015-09-28 12:01:37 +02:00
%We thank Tanja Lange, Dan Bernstein, Luis Ressel and Fabian Kirsch for feedback on an earlier
2015-09-09 20:35:27 +02:00
%version of this paper, Nicolas Fournier for implementing and running
%some performance benchmarks, and Richard Stallman, Hellekin Wolf,
%Jacob Appelbaum for productive discussions and support.
2017-05-17 20:55:25 +02:00
%\newpage
2015-09-06 18:35:24 +02:00
2017-05-16 13:39:12 +02:00
\bibliographystyle { ACM-Reference-Format}
2017-05-16 16:27:45 +02:00
\bibliography { taler,rfc,rom}
2017-05-16 13:39:12 +02:00
2017-05-16 14:00:26 +02:00
%\end{document}
2015-05-09 22:51:12 +02:00
2016-10-25 14:01:20 +02:00
%\vfill
%\begin{center}
% \Large Demonstration available at \url{https://demo.taler.net/}
%\end{center}
%\vfill
2016-07-03 12:13:18 +02:00
2015-09-24 15:40:27 +02:00
\newpage
2015-05-09 22:51:12 +02:00
\appendix
2017-05-17 20:55:25 +02:00
\section { Notation summary} \label { sec:notation}
2016-05-29 17:07:04 +02:00
The paper uses the subscript $ p $ to indicate public keys and $ s $ to
indicate secret (private) keys. For keys, we also use small letters
for scalars and capital letters for points on an elliptic curve. The
capital letter without the subscript $ p $ stands for the key pair. The
superscript $ ( i ) $ is used to indicate one of the elements of a vector
during the cut-and-choose protocol. Bold-face is used to indicate a
vector over these elements. A line above indicates a value computed
by the verifier during the cut-and-choose operation. We use $ f ( ) $ to
indicate the application of a function $ f $ to one or more arguments. Records of
2017-04-07 14:59:41 +02:00
data being persisted are represented in between $ \langle \rangle $ .
2016-05-29 17:07:04 +02:00
\begin { description}
\item [$K_s$] { Denomination private (RSA) key of the exchange used for coin signing}
\item [$K_p$] { Denomination public (RSA) key corresponding to $ K _ s $ }
\item [$K$] { Public-priate (RSA) denomination key pair $ K : = ( K _ s, K _ p ) $ }
2017-05-16 14:41:18 +02:00
\item [$\FDH_K$] { Full domain hash over the modulus of $ K _ p $ }
2016-05-29 17:07:04 +02:00
\item [$b$] { RSA blinding factor for RSA-style blind signatures}
\item [$B_b()$] { RSA blinding over the argument using blinding factor $ b $ }
\item [$U_b()$] { RSA unblinding of the argument using blinding factor $ b $ }
\item [$S_K()$] { Chaum-style RSA signature, $ S _ K ( C ) = U _ b ( S _ K ( B _ b ( C ) ) ) $ }
\item [$w_s$] { Private key from customer for authentication}
\item [$W_p$] { Public key corresponding to $ w _ s $ }
\item [$W$] { Public-private customer authentication key pair $ W : = ( w _ s, W _ p ) $ }
\item [$S_W()$] { Signature over the argument(s) involving key $ W $ }
\item [$m_s$] { Private key from merchant for authentication}
\item [$M_p$] { Public key corresponding to $ m _ s $ }
\item [$M$] { Public-private merchant authentication key pair $ M : = ( m _ s, M _ p ) $ }
\item [$S_M()$] { Signature over the argument(s) involving key $ M $ }
\item [$G$] { Generator of the elliptic curve}
\item [$c_s$] { Secret key corresponding to a coin, scalar on a curve}
\item [$C_p$] { Public key corresponding to $ c _ s $ , point on a curve}
\item [$C$] { Public-private coin key pair $ C : = ( c _ s, C _ p ) $ }
\item [$S_{C}()$] { Signature over the argument(s) involving key $ C $ (using EdDSA)}
\item [$c_s'$] { Private key of a ``dirty'' coin (otherwise like $ c _ s $ )}
\item [$C_p'$] { Public key of a ``dirty'' coin (otherwise like $ C _ p $ )}
\item [$C'$] { Dirty coin (otherwise like $ C $ )}
\item [$\widetilde{C}$] { Exchange signature $ S _ K ( C _ p ) $ indicating validity of a fresh coin (with key $ C $ )}
\item [$n$] { Number of exchanges accepted by a merchant}
\item [$j$] { Index into a set of accepted exchanges, $ i \in \{ 1 , \ldots ,n \} $ }
2016-08-09 00:48:08 +02:00
\item [$X_j$] { Public key of a exchange (not used to sign coins)}
\item [$\vec{X}$] { Vector of $ X _ j $ signifying exchanges accepted by a merchant}
2016-05-29 17:07:04 +02:00
\item [$a$] { Complete text of a contract between customer and merchant}
\item [$f$] { Amount a customer agrees to pay to a merchant for a contract}
\item [$m$] { Unique transaction identifier chosen by the merchant}
\item [$H()$] { Hash function}
\item [$p$] { Payment details of a merchant (i.e. wire transfer details for a bank transfer)}
\item [$r$] { Random nonce}
2017-05-16 14:00:26 +02:00
\item [${\mathcal A}$] { Complete contract signed by the merchant}
\item [${\mathcal D}$] { Deposit permission, signing over a certain amount of coin to the merchant as payment and to signify acceptance of a particular contract}
2016-05-29 17:07:04 +02:00
\item [$\kappa$] { Security parameter $ \ge 3 $ }
\item [$i$] { Index over cut-and-choose set, $ i \in \{ 1 , \ldots , \kappa \} $ }
\item [$\gamma$] { Selected index in cut-and-choose protocol, $ \gamma \in \{ 1 , \ldots , \kappa \} $ }
\item [$t^{(i)}_s$] { private transfer key, a scalar}
\item [$T^{(i)}_p$] { public transfer key, point on a curve (same curve must be used for $ C _ p $ )}
\item [$T^{(i)}$] { public-private transfer key pair $ T ^ { ( i ) } : = ( t ^ { ( i ) } _ s,T ^ { ( i ) } _ s ) $ }
2016-08-09 00:35:33 +02:00
\item [$\vec{t}$] { Vector of $ t ^ { ( i ) } _ s $ }
2016-05-29 17:07:04 +02:00
\item [$c_s^{(i)}$] { Secret key corresponding to a fresh coin, scalar on a curve}
\item [$C_p^{(i)}$] { Public key corresponding to $ c _ s ^ { ( i ) } $ , point on a curve}
\item [$C^{(i)}$] { Public-private coin key pair $ C ^ { ( i ) } : = ( c _ s ^ { ( i ) } , C _ p ^ { ( i ) } ) $ }
2016-08-09 00:35:33 +02:00
% \item[$\vec{C}$]{Vector of $C^{(i)}$ (public and private keys)}
2016-05-29 17:07:04 +02:00
\item [$b^{(i)}$] { Blinding factor for RSA-style blind signatures}
\item [$\vec{b}$] { Vector of $ b ^ { ( i ) } $ }
\item [$B^{(i)}$] { Blinding of $ C _ p ^ { ( i ) } $ }
\item [$\vec{B}$] { Vector of $ B ^ { ( i ) } $ }
2016-10-25 15:32:15 +02:00
\item [$L^{(i)}$] { Link secret derived from ECDH operation via hashing}
% \item[$E_{L^{(i)}}()$]{Symmetric encryption using key $L^{(i)}$}
2016-08-09 00:35:33 +02:00
% \item[$E^{(i)}$]{$i$-th encryption of the private information $(c_s^{(i)}, b_i)$}
% \item[$\vec{E}$]{Vector of $E^{(i)}$}
2017-05-16 14:00:26 +02:00
\item [$\mathcal{R}$] { Tuple of revealed vectors in cut-and-choose protocol,
2016-05-29 17:07:04 +02:00
where the vectors exclude the selected index $ \gamma $ }
2016-10-25 15:32:15 +02:00
\item [$\overline{L^{(i)}}$] { Link secrets derived by the verifier from DH}
2016-05-29 17:07:04 +02:00
\item [$\overline{B^{(i)}}$] { Blinded values derived by the verifier}
\item [$\overline{T_p^{(i)}}$] { Public transfer keys derived by the verifier from revealed private keys}
\item [$\overline{c_s^{(i)}}$] { Private keys obtained from decryption by the verifier}
\item [$\overline{b_s^{(i)}}$] { Blinding factors obtained from decryption by the verifier}
\item [$\overline{C^{(i)}_p}$] { Public coin keys computed from $ \overline { c _ s ^ { ( i ) } } $ by the verifier}
\end { description}
2017-05-16 01:02:48 +02:00
\end { document}
2016-05-29 17:07:04 +02:00
2015-05-09 22:51:12 +02:00
\section { Optional features}
In this appendix we detail various optional features that can
2015-09-24 15:40:27 +02:00
be added to the basic protocol to reduce transaction costs for
certain interactions.
2015-05-09 22:51:12 +02:00
2015-09-09 20:33:34 +02:00
However, we note that Taler's transaction costs are expected to be so
2015-09-24 15:40:27 +02:00
low that these features are likely not particularly useful in
practice: When we performed some initial performance measurements for
2016-03-01 15:21:30 +01:00
the various operations on our exchange implementation, the main conclusion
2015-09-24 15:40:27 +02:00
was that the computational and bandwidth cost for transactions
described in this paper is smaller than $ 10 ^ { - 3 } $ cent/transaction,
2016-03-01 15:21:30 +01:00
and thus dwarfed by the other business costs for the exchange. We note
2015-09-24 15:40:27 +02:00
that the $ 10 ^ { - 3 } $ cent/transaction estimate excludes the cost of wire
2016-03-01 15:21:30 +01:00
transfers using traditional banking, which a exchange operator would
ultimately have to interact with. Here, exchange operators should be able
2015-09-24 15:40:27 +02:00
to reduce their expenses by aggregating multiple transfers to the same
merchant.
2016-03-01 15:21:30 +01:00
As a result of the low cost of the interaction with the exchange in Taler
2015-09-24 15:40:27 +02:00
today, we expect that transactions with amounts below Taler's internal
transaction costs to be economically meaningless. Nevertheless, we
document various ways how such transactions could be achieved within
Taler.
2015-05-09 22:51:12 +02:00
2015-05-17 18:13:54 +02:00
2015-05-09 22:51:12 +02:00
\subsection { Incremental spending}
For services that include pay-as-you-go billing, customers can over
time sign deposit permissions for an increasing fraction of the value
of a coin to be paid to a particular merchant. As checking with the
2016-03-01 15:21:30 +01:00
exchange for each increment might be expensive, the coin's owner can
2015-05-09 22:51:12 +02:00
instead sign a { \em lock permission} , which allows the merchant to get
an exclusive right to redeem deposit permissions for the coin for a
limited duration. The merchant uses the lock permission to determine
if the coin has already been spent and to ensure that it cannot be
spent by another merchant for the { \em duration} of the lock as
2015-09-28 08:53:01 +02:00
specified in the lock permission. If the coin has insufficient funds
because too much has been spent or is
2016-03-01 15:21:30 +01:00
already locked, the exchange provides the owner's deposit or locking
2015-05-09 22:51:12 +02:00
request and signature to prove the attempted fraud by the customer.
2016-03-01 15:21:30 +01:00
Otherwise, the exchange locks the coin for the expected duration of the
2015-05-09 22:51:12 +02:00
transaction (and remembers the lock permission). The merchant and the
customer can then finalize the business transaction, possibly
exchanging a series of incremental payment permissions for services.
2016-03-01 15:21:30 +01:00
Finally, the merchant then redeems the coin at the exchange before the
2015-09-28 11:47:42 +02:00
lock permission expires to ensure that no other merchant redeems the
2015-05-09 22:51:12 +02:00
coin first.
\begin { enumerate}
2016-08-09 00:48:08 +02:00
\item \label { offer2} The merchant sends an \emph { offer:}
$ \langle S _ M ( m, f ) , \vec { X } \rangle $ containing the price of the offer $ f $ ,
a transaction ID $ m $ and the list of exchanges
$ \vec { X } = \langle X _ 1 , \ldots , X _ n \rangle $ accepted by the merchant,
2017-04-07 14:59:41 +02:00
where each $ X _ j $ is an exchange's public key.
2015-10-04 12:35:05 +02:00
\item \label { lock2} The customer must possess or acquire a coin $ \widetilde { C } $
2016-08-09 00:48:08 +02:00
signed by a exchange that is accepted by the merchant,
i.e.\ $ K $ should be signed by some $ X _ j $ and has a value $ \geq f $ .
Customer then generates a \emph { lock-permission}
$ \mathcal { L } : = S _ c ( \widetilde { C } , t, m, f, M _ p ) $ where
$ t $ specifies the time until which the lock is valid and sends
$ \langle \mathcal { L } , X _ j \rangle $ to the merchant,
where $ X _ j $ is the exchange which signed $ K $ .
2016-03-01 15:21:30 +01:00
\item The merchant asks the exchange to apply the lock by sending $ \langle
\mathcal { L} \rangle $ to the exchange.
\item The exchange validates $ \widetilde { C } $ and detects double spending
2015-10-04 12:35:05 +02:00
in the form of existing \emph { deposit-permission} or
2015-09-28 11:47:42 +02:00
lock-permission records for $ \widetilde { C } $ . If such records exist
2016-03-01 15:21:30 +01:00
and indicate that insufficient funds are left, the exchange sends those
2015-09-28 12:05:20 +02:00
records to the merchant, who can then use the records to prove the double
2015-09-28 11:47:42 +02:00
spending to the customer.
2015-10-04 12:35:05 +02:00
If double spending is not found,
2017-04-07 14:59:41 +02:00
the exchange persists $ \langle \mathcal { L } \rangle $
2015-05-09 22:51:12 +02:00
and notifies the merchant that locking was successful.
\item \label { contract2} The merchant creates a digitally signed contract
2017-05-16 15:01:13 +02:00
\begin { equation*}
\mathcal { A} := S_ M(m, f, a, H(p, r))
\end { equation*}
where $ a $ is data relevant to the contract
2015-05-09 22:51:12 +02:00
indicating which services or goods the merchant will deliver to the customer, and $ p $ is the
2015-09-26 16:30:04 +02:00
merchant's payment information (e.g. his IBAN number) and $ r $ is an random nonce.
2017-04-07 14:59:41 +02:00
The merchant persists $ \langle \mathcal { A } \rangle $ and sends it to the customer.
2015-05-09 22:51:12 +02:00
\item The customer creates a
2017-04-07 14:59:41 +02:00
\emph { deposit-permission} $ \mathcal { D } : = S _ c ( \widetilde { C } , \widetilde { L } , f, m, M _ p, H ( a ) , H ( p, r ) ) $ , persists
$ \langle \mathcal { A } , \mathcal { D } \rangle $ and sends $ \mathcal { D } $ to the merchant.
\item \label { invoice_ paid2} The merchant persists the received $ \langle \mathcal { D } \rangle $ .
2016-03-01 15:21:30 +01:00
\item The merchant gives $ ( \mathcal { D } , p, r ) $ to the exchange, revealing his
2015-05-09 22:51:12 +02:00
payment information.
2016-03-01 15:21:30 +01:00
\item The exchange verifies $ ( \mathcal { D } , p, r ) $ for its validity and
2015-09-28 11:47:42 +02:00
checks against double spending, while of
course permitting the merchant to withdraw funds from the amount that
had been locked for this merchant.
2017-04-07 14:59:41 +02:00
\item If $ \widetilde { C } $ is valid and no equivalent \emph { deposit-permission} for $ \widetilde { C } $ and $ \widetilde { L } $ exists, the
2016-03-01 15:21:30 +01:00
exchange performs the following transaction:
2015-05-09 22:51:12 +02:00
\begin { enumerate}
2017-04-07 14:59:41 +02:00
\item $ \langle \mathcal { D } , p, r \rangle $ is persisted.
2015-05-09 22:51:12 +02:00
\item \label { transfer2} transfers an amount of $ f $ to the merchant's bank account
given in $ p $ . The subject line of the transaction to $ p $ must contain
$ H ( \mathcal { D } ) $ .
\end { enumerate}
2016-03-01 15:21:30 +01:00
Finally, the exchange sends a confirmation to the merchant.
2015-09-28 11:47:42 +02:00
\item If the deposit record $ \langle \mathcal { D } , p, r \rangle $ already exists,
2016-03-01 15:21:30 +01:00
the exchange sends the confirmation to the merchant,
2015-09-28 11:47:42 +02:00
but does not transfer money to $ p $ again.
2015-05-09 22:51:12 +02:00
\end { enumerate}
To facilitate incremental spending of a coin $ C $ in a single transaction, the
merchant makes an offer in Step~\ref { offer2} with a maximum amount $ f _ { max } $ he
is willing to charge in this transaction from the coin $ C $ . After obtaining the
lock on $ C $ for $ f _ { max } $ , the merchant makes a contract in Step~\ref { contract2}
with an amount $ f \leq f _ { max } $ . The protocol follows with the following steps
repeated after Step~\ref { invoice_ paid2} whenever the merchant wants to charge an
incremental amount up to $ f _ { max } $ :
\begin { enumerate}
\setcounter { enumi} { 4}
\item The merchant generates a new contract $ \mathcal { A } ' : = S _ M ( m, f', a', H ( p,
r)) $ after obtaining the deposit - permission for a previous contract. Here
$ f' $ is the accumulated sum the merchant is charging the customer, of which
the merchant has received a deposit-permission for $ f $ from the previous
contract \textit { i.e.} ~$ f <f' \leq f _ { max } $ . Similarly $ a' $ is the new
contract data appended to older contract data $ a $ .
2017-04-07 14:59:41 +02:00
The merchant persists $ \langle \mathcal { A } ' \rangle $ and sends it to the customer.
\item Customer persists $ \langle \mathcal { A } ' \rangle $ , creates
$ \mathcal { D } ' : = S _ c ( \widetilde { C } , \mathcal { L } , f', m, M _ p, H ( a' ) , H ( p, r ) ) $ , persists
2015-05-09 22:51:12 +02:00
$ \langle \mathcal { D' } \rangle $ and sends it to the merchant.
2017-04-07 14:59:41 +02:00
\item The merchant persists the received $ \langle \mathcal { D' } \rangle $ and
2015-09-28 11:47:42 +02:00
deletes the older $ \mathcal { D } $ .
2015-05-09 22:51:12 +02:00
\end { enumerate}
%Figure~\ref{fig:spending_protocol_interactions} summarizes the interactions of the
%coin spending protocol.
2015-09-28 11:47:42 +02:00
For transactions with multiple coins, the steps of the protocol are
executed in parallel for each coin. During the time a coin is locked,
the locked fraction may not be spent at a different merchant or via a
2016-03-01 15:21:30 +01:00
deposit permission that does not contain $ \mathcal { L } $ . The exchange will
2015-09-28 11:47:42 +02:00
release the locks when they expire or are used in a deposit operation.
Thus the coins can be used with other merchants once their locks
expire, even if the original merchant never executed any deposit for
the coin. However, doing so may link the new transaction to older
transaction.
Similarly, if a transaction is aborted after Step 2, subsequent
transactions with the same coin can be linked to the coin, but not
directly to the coin's owner. The same applies to partially spent
coins. Thus, to unlink subsequent transactions from a coin, the
2016-03-01 15:21:30 +01:00
customer has to execute the coin refreshing protocol with the exchange.
2015-05-09 22:51:12 +02:00
%\begin{figure}[h]
%\centering
%\begin{tikzpicture}
%
%\tikzstyle{def} = [node distance= 1em, inner sep=.5em, outer sep=.3em];
%\node (origin) at (0,0) {};
%\node (offer) [def,below=of origin]{make offer (merchant $\rightarrow$ customer)};
%\node (A) [def,below=of offer]{permit lock (customer $\rightarrow$ merchant)};
2016-03-01 15:21:30 +01:00
%\node (B) [def,below=of A]{apply lock (merchant $\rightarrow$ exchange)};
%\node (C) [def,below=of B]{confirm (or refuse) lock (exchange $\rightarrow$ merchant)};
2015-05-09 22:51:12 +02:00
%\node (D) [def,below=of C]{sign contract (merchant $\rightarrow$ customer)};
%\node (E) [def,below=of D]{permit deposit (customer $\rightarrow$ merchant)};
2016-03-01 15:21:30 +01:00
%\node (F) [def,below=of E]{make deposit (merchant $\rightarrow$ exchange)};
%\node (G) [def,below=of F]{transfer confirmation (exchange $\rightarrow$ merchant)};
2015-05-09 22:51:12 +02:00
%
%\tikzstyle{C} = [color=black, line width=1pt]
%\draw [->,C](offer) -- (A);
%\draw [->,C](A) -- (B);
%\draw [->,C](B) -- (C);
%\draw [->,C](C) -- (D);
%\draw [->,C](D) -- (E);
%\draw [->,C](E) -- (F);
%\draw [->,C](F) -- (G);
%
%\draw [->,C, bend right, shorten <=2mm] (E.east)
% to[out=-135,in=-45,distance=3.8cm] node[left] {aggregate} (D.east);
%\end{tikzpicture}
2016-03-01 15:21:30 +01:00
%\caption{Interactions between a customer, merchant and exchange in the coin spending
2015-05-09 22:51:12 +02:00
% protocol}
%\label{fig:spending_protocol_interactions}
%\end{figure}
2015-05-17 18:13:54 +02:00
\subsection { Probabilistic donations}
Similar to Peppercoin, Taler supports probabilistic { \em micro} donations of coins to
support cost-effective transactions for small amounts. We consider
amounts to be ``micro'' if the value of the transaction is close or
2016-03-01 15:21:30 +01:00
even below the business cost of an individual transaction to the exchange.
2015-05-17 18:13:54 +02:00
To support microdonations, an ordinary transaction is performed based
on the result of a biased coin flip with a probability related to the
desired transaction amount in relation to the value of the coin. More
specifically, a microdonation of value $ \epsilon $ is upgraded to a
macropayment of value $ m $ with a probability of $ \frac { \epsilon } { m } $ .
Here, $ m $ is chosen such that the business transaction cost at the
2016-03-01 15:21:30 +01:00
exchange is small in relation to $ m $ . The exchange is only involved in the
2015-05-17 18:13:54 +02:00
tiny fraction of transactions that are upgraded. On average both
customers and merchants end up paying (or receiving) the expected
amount $ \epsilon $ per microdonation.
Unlike Peppercoin, in Taler either the merchant wins and the customer
looses the coin, or the merchant looses and the customer keeps the
coin. Thus, there is no opportunity for the merchant and the customer
2016-03-01 15:21:30 +01:00
to conspire against the exchange. To determine if the coin is to be
2015-05-17 18:13:54 +02:00
transferred, merchant and customer execute a secure coin flipping
protocol~\cite { blum1981} . The commit values are included in the
business contract and are revealed after the contract has been signed
using the private key of the coin. If the coin flip is decided in
2016-03-01 15:21:30 +01:00
favor of the merchant, the merchant can redeem the coin at the exchange.
2015-05-09 22:51:12 +02:00
One issue in this protocol is that the customer may use a worthless
coin by offering a coin that has already been spent. This kind of
fraud would only be detected if the customer actually lost the coin
flip, and at this point the merchant might not be able to recover from
2015-10-07 16:39:03 +02:00
the loss. A fraudulent anonymous customer may run the protocol using
2015-09-06 18:35:24 +02:00
already spent coins until the coin flip is in his favor.
2015-05-17 18:13:54 +02:00
As with incremental spending, lock permissions could be used to ensure
that the customer cannot defraud the merchant by offering a coin that
2016-03-01 15:21:30 +01:00
has already been spent. However, as this means involving the exchange
2015-05-17 18:13:54 +02:00
even if the merchant looses the coin flip, such a scheme is unsuitable
2016-03-01 15:21:30 +01:00
for microdonations as the transaction costs from involving the exchange
2015-05-17 18:13:54 +02:00
might be disproportionate to the value of the transaction, and thus
with locking the probabilistic scheme has no advantage over simply
using fractional payments.
Hence, Taler uses probabilistic transactions { \em without} online
2015-05-09 22:51:12 +02:00
double-spending detection. This enables the customer to defraud the
merchant by paying with a coin that was already spent. However, as,
by definition, such microdonations are for tiny amounts, the incentive
2015-05-17 18:13:54 +02:00
for customers to pursue this kind of fraud is limited. Still, to
clarify that the customer must be honest, we prefer the term
micro{ \em donations} over micro{ \em payments} for this scheme.
2015-05-09 22:51:12 +02:00
The following steps are executed for microdonations with upgrade probability $ p $ :
\begin { enumerate}
\item The merchant sends an offer to the customer.
\item The customer sends a commitment $ H ( r _ c ) $ to a random
value $ r _ c \in [ 0 , 2 ^ R ) $ , where $ R $ is a system parameter.
\item The merchant sends random $ r _ m \in [ 0 , 2 ^ R ) $ to the customer.
\item The customer computes $ p' : = ( |r _ c - r _ m| ) / ( 2 ^ R ) $ .
If $ p' < p $ , the customer sends a coin with deposit-permission to the merchant.
Otherwise, the customer sends $ r _ c $ to the merchant.
\item The merchant deposits the coin, or checks if $ r _ c $ is consistent
with $ H ( r _ c ) $ .
\end { enumerate}
2015-09-09 20:33:34 +02:00
Evidently the customer can ``cheat'' by aborting the transaction in
2015-10-07 16:39:03 +02:00
Step 3 of the microdonation protocol if the outcome is unfavorable ---
2015-09-09 20:33:34 +02:00
and repeat until he wins. This is why Taler is suitable for
microdonations --- where the customer voluntarily contributes ---
and not for micropayments.
Naturally, if the donations requested are small, the incentive to
cheat for minimal gain should be quite low. Payment software could
embrace this fact by providing an appeal to conscience in form of an
option labeled ``I am unethical and want to cheat'', which executes
the dishonest version of the payment protocol.
If an organization detects that it cannot support itself with
microdonations, it can always choose to switch to the macropayment
system with slightly higher transaction costs to remain in business.
2015-09-26 16:30:04 +02:00
\newpage
2016-10-07 13:34:54 +02:00
Taler was designed for use in a modern social-liberal society and
provides a payment system with the following key properties:
\begin { description}
\item [Customer Anonymity]
It is impossible for exchanges, merchants and even a global active
adversary, to trace the spending behavior of a customer.
As a strong form of customer anonymity, it is also infeasible to
link a set of transactions to the same (anonymous) customer.
%, even when taking aborted transactions into account.
There is, however, a risk of metadata leakage if a customer
acquires coins matching exactly the price quoted by a merchant, or
if a customer uses coins issued by multiple exchanges for the same
transaction. Hence, our implementation does not allow this.
\item [Taxability]
In many current legal systems, it is the responsibility of the merchant
to deduct sales taxes from purchases made by customers, or for workers
to pay income taxes for payments received for work.
Taler ensures that merchants are easily identifiable and that
an audit trail is generated, so that the state can ensure that its
taxation regime is obeyed.
\item [Verifiability]
Taler minimizes the trust necessary between
participants. In particular, digital signatures are retained
whenever they would play a role in resolving disputes.
Additionally, customers cannot defraud anyone, and
merchants can only defraud their customers by not
delivering on the agreed contract. Neither merchants nor customers
are able to commit fraud against the exchange.
Only the exchange needs be tightly audited and regulated.
2016-11-12 13:26:07 +01:00
\item [No speculation] % It's actually "Speculation not required"
2016-10-07 13:34:54 +02:00
The digital coins are denominated in existing currencies,
such as EUR or USD. This avoids exposing citizens to unnecessary risks
from currency fluctuations.
\item [Low resource consumption]
The design minimizes the operating costs and environmental impact of
the payment system. It uses few public key operations per
transaction and entirely avoids proof-of-work computations.
The payment system handles both small and large payments in
an efficient and reliable manner.
\end { description}