Ripple (payment protocol)

The Ripple logo

Ripple is a payment system, currency exchange and remittance network by Ripple Labs. It is built upon a distributed, open source Internet protocol, consensus ledger and native currency called ripples (XRP). The Ripple network purports to enable "secure, instant and nearly free global financial transactions of any size with no chargebacks". It supports tokens representing fiat currency (dollars, yen, etc.), cryptocurrency (bitcoin, litecoin, etc.), commodity or other unit of value (frequent flier miles, mobile minutes, etc.).[1][2]

At its core, Ripple is based around a shared, public database or ledger.[3] In addition to balances, the ledger holds information about offers to buy or sell currencies and assets, creating the first distributed exchange. Participants in the network agree to changes in the ledger via a process called consensus which is reached every 2–5 seconds. The consensus process allows for payments, exchanges and remittance in a distributed process.[4] The safety of the Ripple consensus algorithm has been challenged by rivals,[5] but this criticism is disputed by Ripple Labs.[6]

On September 26, 2013, the Ripple reference server and client became free software, released under the terms of the ISC License.[7] The current release of the client is version 0.2.48-3 and the server (known as rippled) is version 0.24.0.[8]

As of 2014, Ripple is the second-largest cryptocurrency by market capitalization,[9][10] after Bitcoin.[11][12][13][14]

History

Ripple was first implemented in 2004 by Ryan Fugger,[15][16] a Web developer in Vancouver, B.C., Canada.[17] In 2005, Fugger began to build Ripplepay as a financial service to provide secure payment options to members of an online community via a global network.[17][18]

This led to the development of a new Ripple system in 2011 by Jed McCaleb.[17] It was designed to eliminate Bitcoin's reliance on centralized exchanges, use less electricity than Bitcoin, and perform transactions much more quickly than Bitcoin.[17] OpenCoin Inc. was founded in 2012 when McCaleb added Chris Larsen to the project.[19][20] Larsen previously founded lending services companies E-Loan and Prosper, and McCaleb previously created the eDonkey network and founded Bitcoin exchange Mt. Gox.[20] On September 26, 2013, OpenCoin Inc. changed its name to Ripple Labs Inc.,[19] and released the source code for Ripple's peer-to-peer node software, called rippled, as open source.[7]

Chris Larsen is currently CEO of Ripple Labs Inc.[21]

Concept

In Ripple, users make payments between each other by using cryptographically signed transactions denominated in either Ripple's internal currency named XRP or in arbitrary other assets (including real-world assets such as dollars, gold, air miles, etc.). For XRP-denominated transactions Ripple can make use of its internal ledger. For payments denominated in all other assets, the Ripple ledger only records the amounts owed by one user to another. In this way, all these assets are represented as debt. Since Ripple only keeps the records in its ledger and has no real-world enforcement power, this requires trust. Users have to specify which other users they trust and to what maximum amount. This can be specified for each asset type individually.

When a non-XRP payment is made between two users that trust each other, the balance of the mutual credit line is adjusted, subject to limits set by each user. In order to send assets between users that have not directly established a trust relationship, the system tries to find a path between the two users such that each link of the path is between two users that do have a trust relationship. All balances along the path are then adjusted simultaneously and atomically.[15] This mechanism of making payments through a network of trusted associates is named 'rippling'. It is a digital version of the age-old hawala system[22] and has been referred to as 'Facebook for money'.

Gateways

A gateway is any person or organization that enables users to put money into and take money out of the Ripple network.[7] They accept currency deposits from users and issue balances into Ripple's distributed ledger. Furthermore, gateways redeem ledger balances against the deposits they hold when currency is withdrawn. In practice, gateways are similar to banks, yet they share one global ledger known as the Ripple network. Depending on the type and degree of interaction a user has with a gateway, the gateway may have Anti-money laundering (AML) or Know your customer (KYC) policies requiring verification of identification, address, nationality, etc.[2] Such policies are designed to prevent criminal activity.

Adding Trustlines and Rippling

Trustlines

Users must ‘extend trust’ to the Ripple gateway that holds their deposit. This manual creation of a trustline indicates to the Ripple network that the user is comfortable with the gateway’s counterparty risk. Furthermore, the user must put a quantitative limit on this trust and create a similar limit for each currency on deposit at that gateway. For example, if a user deposits US$50 and BTC2.00 at The Rock Trading, the user will have to grant trust of at least that much in both currencies to the gateway for the monies to be available in the Ripple network. It is not recommended for a user to grant trust to other parties unless the user fully understands the ramifications.[23]

Rippling

When establishing a trustline, an option will present itself in the client to allow "rippling". If this option is checked and a new trust is established in the same currency as an existing trustline, the Ripple client will present a warning to the user. Trusting multiple gateways in the same currency and allowing the rippling feature will subject the user’s balance of that currency to automatically switch (or ripple) between one gateway and another. This will not change the user’s total balance, but will alter the issuer of the balance. This advanced tab feature may be a source of confusion for some. Users who wish to allow rippling can earn a small transit fee for providing inter-gateway liquidity. It is not recommended for a user to allow rippling unless they fully understand the ramifications.[24]

Creditworthiness

Similar to reasons during the Free Banking Era in the United States, the value of a currency can vary significantly depending on a gateway's creditworthiness. A non-profit trade association, the International Ripple Business Association (IRBA), provides unified procedures and disclosure standards for gateways. As of May 2014, ten businesses had met or exceeded the IRBA standards.[25][26][27]

Market makers

Any user on Ripple can act as a market maker by offering an arbitrage service such as providing market liquidity, intra-gateway currency conversion, rippling, etc. Many such services are offered through a traditional platform of offers to buy or sell one currency for another currency. Bids and asks are aggregated into order books, to create a decentralized exchange. Users can transact with market makers to trade or convert currencies.

Ripple's path finding algorithm leverages this functionality to allow users to send money in one currency and the recipient to receive it in another currency.[28] For example, a user who holds only USD balances can send a payment in EUR to a merchant who wants to get paid in euros. This payment would get routed through one or more market makers who were advertising a willingness to buy USD (from the sender of the payment) and sell EUR (which gets routed to the beneficiary of the payment).

With a sufficient number of market makers, the path finding algorithm creates a near frictionless market and enables users to seamlessly pay each other via the network in different currencies, without assuming any undesired foreign exchange risk.[28] For example, one user might choose to hold his wealth in bitcoins. Using Ripple, he could seamlessly pay merchants in USD or EUR, without exposing them to any bitcoin foreign exchange risk and without exposing himself to USD or EUR foreign exchange risk.

XRP

XRP is the native currency of the Ripple network. It only exists within the Ripple system. XRP are currently divisible to 6 decimal places. The smallest unit is called a drop with 1 million drops equaling 1 XRP.[29] The founders of Ripple Labs created 100 billion XRP at Ripple's inception. No more can be created according to the rules of the Ripple protocol. Of the 100 billion created, 20 billion XRP were retained by the creators, seeders, venture capital companies and other founders. The remaining 80 billion were given to Ripple Labs. Ripple Labs intends to distribute and sell 55 of that 80 billion XRP to users and strategic partners. Ripple Labs also had a giveaway of under 200 million XRP (0.002% of all XRP) via World Community Grid that was later discontinued.[30] Ripple Labs will retain the remaining 25 billion.[31][32][33][34]

As of November 30, 2012, 7.2 billion XRP have been distributed.[32] The amount of XRP distributed can be found on the Ripple website and their movement tracked through the Ripple Live Network.[35]

XRP is the only currency in the Ripple network that does not entail counterparty risk. It is the only native digital asset. The other currencies in the Ripple network are debt instruments (i.e. liabilities), and exist in the form of balances.[7] XRP is not dependent on any third party for redemption. The system was designed such that XRP is a scarce asset with decreasing supply.

Users of the Ripple network are not required to use XRP as a store of value or a medium of exchange. Each Ripple account is required, however, to have a small reserve of 20 XRP[36] (US$0.38 as of January 28, 2014[37]). The purpose for this requirement is discussed in the anti-spam section.

XRP as a bridge currency

One of the specific functions of XRP is as a bridge currency. This might be needed if no direct exchange is available between two currencies at a specific time.[38] Such a situation would arise when transacting between two rarely traded currency pairs (e.g. from Qatari Riyals to Guatemalan Quetzals). Within the network’s currency exchange, XRP are traded freely against other currencies. Its market price fluctuates against dollars, euros, yen, bitcoin, etc. When making payments, many users may prefer to use XRP in lieu of these currencies. Ripple's design focus is as a currency exchange and a distributed payment system, as opposed to emphasizing XRP as an alternative currency.

XRP as an anti-spam measure

When a user conducts a financial transaction in a non-native currency, the Ripple network charges a transaction fee. The purpose of transaction fees is to protect against network flooding. If the Ripple network were completely free to access, adversaries could broadcast large amounts of "ledger spam" (i.e. fake accounts) and transaction spam (i.e. fake transactions) in an attempt to overload the network. This could cause the size of the ledger to become unmanageable and interfere with the network’s ability to quickly settle legitimate transactions. Thus, to engage in trade, each Ripple account is required to have a small reserve of 20 XRP,[36] (US$0.38 as of January 28, 2014[37]), and a transaction fee starting at .00001 XRP (US$.0000002 as of January 28, 2014[37]) must be spent for each trade. This transaction fee is not collected by anyone; the XRP is destroyed and ceases to exist.[34] The transaction fee rises if the user posts trades at an enormous rate (many thousands per minute), and resettles after a period of inactivity.[23] The transaction fee makes deploying a large-scale denial-of-service attack on the network financially expensive, while it is hoped that the effect on ordinary users is negligible. The required reserve of 20 XRP alone will allow a user to perform approximately 54 transactions a day for the next 100 years.

Consensus ledger

Ripple runs on a network of servers that creates a ledger, which is a distributed database storing information about all Ripple accounts. A new ledger is created every few seconds, and the last closed ledger is a perfect record of all Ripple accounts as determined by the network of servers. A transaction is any proposed change to the ledger and can be introduced by any server to the network. The servers attempt to come to consensus about a set of transactions to apply to the ledger, creating a new ‘last closed ledger’.

The consensus process is distributed.[39] While users may assemble their own UNL nodes and have full control over which nodes they trust, Ripple Labs acknowledges that most people will use the default UNL supplied by their client.[4]

The goal of consensus is for each server to apply the same set of transactions to the current ledger. Servers continually receive transactions from other servers on the network, and the server determines which transactions to apply based on if a transaction came from a specified node in the ‘unique node list’ or UNL. Transactions that are agreed by at least 50% of the specified nodes in the UNL are packaged into a new proposal, which is sent to other servers throughout the network. The process now repeats with the vote requirement increases to 60%, 70% and finally 80%.

The intended outcome of this process is that disputed transactions are discarded from proposals while widely accepted transactions are included. The system aims to decrease dissimilarity between the proposals toward zero. At this point, the network has reached consensus. A server knows that the network has consensus when 80% of the votes for every transaction in a proposal are either ‘yes’ or ‘no’. This is the threshold for mathematical certainty.

When a proposal hits the 80% threshold, the server validates the proposal, alerts the network and closes its consensus process. This validated proposal is now applied to the last closed ledger. At this point, any invalid transaction is discarded and a new ‘last closed ledger’ is created. Transactions that were not included in the ledger remain in the candidate set. All transactions that were received during the consensus process are added to the new candidate set. The process is restarted every few seconds.

David Mazieres, head of Stanford University's secure computing group and Chief Scientist at Ripple rival Stellar Foundation, was hired by the latter to conduct a review of Ripple's consensus system, and according to Stellar Foundation's Joyce Kim, found that the system was unlikely to be safe under all circumstances. Mazieres conducted his investigation as a paid consultant, which was not part of his Stanford University duties or responsibilities.[5] When consensus is not reached, a ledger fork occurs with parts of the network disagreeing over accepted transactions. A fork has occurred in a similar implementation of the consensus algorithm, prompting concerns over safety of the consensus process.[6] Joyce Kim claims that there is an "innate weaknesses" in the consensus process,[5] however Ripple Labs chief cryptographer David Schwartz has disputed Maziere's findings, claiming that "the protocol provides safety and fault tolerance assuming the validators are configured correctly".[6]

Use as a payment/forex system

The Ripple network allows users or businesses to conduct cross-currency transactions in seconds.[40] All accounts and transactions are cryptographically secure and algorithmically verified. Payments can only be authorized by the account holder and all payments are processed automatically without any third parties or intermediaries.[40] Ripple validates accounts and balances instantly for payment transmission and delivers payment notification with very little latency (within a few seconds).[41] Payments are irreversible. There are no chargebacks.[42] XRP cannot be frozen or seized. A ripple account does not require pre-approval. Anyone can open an account.[43] There are mobile apps for making payments over Ripple using a smartphone.[44] Ripple's Path Finding Algorithm searches for the cheapest path between two currencies.[45] In the case of a user who wants to send a payment from USD to EUR, this could be a "one-hop" path directly from USD to EUR, or it could be a multi-hop path, perhaps from USD to CAD to XRP to EUR. Path finding is designed to seek out the cheapest conversion cost for the user. As of May 14, 2014, Ripple's gateways allow deposits in a limited number of fiat currencies (USD, EUR, MXN, NZD, GBP, NOK, JPY, CAD, CHF, CNY, AUD), a handful of crypto currencies (BTC, XRP, LTC, NMC, NXT, PPC, XVN, SLL) and a few commodities (gold, silver, platinum).[46][47][48]

The Bitcoin Bridge

The bitcoin bridge is a link between the Ripple and Bitcoin ecosystems. The bridge makes it possible to pay any Bitcoin user straight from the Ripple client without ever needing to hold any of the digital currency. Additionally, any merchant accepting Bitcoins now has the potential to accept any currency in the world. For example, a Ripple user may prefer to keep money in USD and not own Bitcoin. A merchant, however, may desire payment in Bitcoin. The bitcoin bridge allows any Ripple user to send Bitcoins without having to use a central exchange such as BTC-e to acquire them.[49][50]

Privacy

Currently the only simple method for privacy is to keep the name of the owner of a wallet secret,[51] as the wallet address (and name if it has one) and its balance and transactions are visible in the ledger.

Reception

Responses to Ripple have been mixed.

For its creation and development of the ripple protocol (RTXP) and the Ripple payment/exchange network, the Massachusetts Institute of Technology (MIT) recognized Ripple Labs as one of 2014's 50 Smartest Companies in the February 2014 edition of MIT Technology Review. The criteria for the recognition revolved around "whether a company had made strides in the past year that will define its field."[52]

The Vice President of the St. Louis Federal Reserve and professor at Simon Fraser University, David Andolfatto, stated that "Ripple is a currency-agnostic protocol. Ripple is the winner. It processes anything."[53]

Writing for Esquire about it as a payment network, Ken Kurson said that "the big financial-service brands ought to feel about Ripple the way the record labels felt about Napster."[54] On the other hand, The New York Times website Dealbook points out that “(Ripple) is winning something that has proved elusive for virtual currencies: involvement from more mainstream players in the financial system.”[55]

Bloomberg sees that Ripple's agreement with ZipZap puts the network in competition with Western Union as a remittance network, noting that while Western Union charges US$40 to send $500, ZipZap will charge only $3.95 to deposit the same amount into the Ripple network.[56]

The reaction to XRP is polarized in the crypto-currency community. Though the network facilitates the use of any electronic value holder, others in the crypto-currency space are quick to point out that XRP are "pre-mined" and that the founders retained 20% and Ripple Labs retained 25% of them while selling the majority of the remaining 55%.[57] This represents the largest holdback of any crypto-currency. Esquire counters however that "If that is d.evious, then so is every company that's ever gone public while retaining the great bulk of its shares."[54] Ripple supporters feel this is especially true as Ripple Labs charges no fees and has no revenue streams to finance its support and promotion of the network.

See also

References

  1. "Ripple Labs Banks $3.5M for Open-Source Payments System and Virtual Currency". Dow Jones & Company. Retrieved January 28, 2014.
  2. 2.0 2.1 Bradbury, Danny (May 27, 2013). "Chris Larsen: Ripple is HTTP for money". CoinDesk (Coindesk Ltd.). Retrieved January 26, 2014.
  3. "Tech Showcase: Ripple Labs". Institute of International Finance.
  4. 4.0 4.1 Liu, Alec. "Beyond Bitcoin: a Guide to the Most Promising Cryptocurrencies". Motherboard (beta) blogs. Vice Media Inc.
  5. 5.0 5.1 5.2 "Safety, liveness and fault tolerance—the consensus choices".
  6. 6.0 6.1 6.2 "Stellar Network Fork Prompts Concerns Over Ripple Consensus Protocol".
  7. 7.0 7.1 7.2 7.3 Buterin, Vitalik (September 26, 2013). "Ripple is officially open source". Bitcoin Magazine (Coin Publishing Ltd.). Retrieved January 25, 2014.
  8. "Official source code". Github. Retrieved May 14, 2014.
  9. "Crypto-Currency Market Capitalizations". coinmarketcap.com. Retrieved 2014-01-19.
  10. "LTC/USD alltime - Bitcoin / Altcoin market overview". cryptocoincharts.info. Retrieved 2014-10-01.
  11. Simonite, Tom (2013-04-15). "Bitcoin isn't the only cryptocurrency in town". MIT Technology Review. Retrieved April 24, 2013.
  12. "LTC/USD alltime - Litecoin / US Dollar chart from BTC-e". cryptocoincharts.info. Retrieved 2013-12-16.
  13. Powers, Shawn (March 2012). "Cryptocurrency: Your total cost is 01001010010" (PDF). Linux Journal (215): 28–29. Retrieved October 21, 2012.
  14. BATR (2013-04-17). "Bitcoins risk reward". The Market Oracle. Retrieved April 24, 2013.
  15. 15.0 15.1 Buterin, Vitalik (February 26, 2013). "Introducing Ripple". Bitcoin Magazine. Retrieved February 6, 2014.
  16. Deng, Xiaotie; Graham, Fan Chung, ed. (November 29, 2007). Internet and Network Economics: Third International Workshop, WINE 2007, Proceedings. Germany: Springer. p. 268. ISBN 978-3-540-77104-3.
  17. 17.0 17.1 17.2 17.3 Peck, Morgan (January 14, 2013). "Ripple Could Help or Harm Bitcoin". IEEE Spectrum. Institute of Electrical and Electronics Engineers. Retrieved January 27, 2014.
  18. Liu, Alec. "Ripple Could Make Bitcoin Great (or Destroy It)". Motherboard. Retrieved January 27, 2014.
  19. 19.0 19.1 "Company Overview of Ripple Labs Inc.". Bloomberg. Retrieved January 27, 2014.
  20. 20.0 20.1 Grant, Rebecca (April 11, 2013). "OpenCoin raises seed round so ‘anyone in the world can trade any amount of money in any currency’". VentureBeat. Retrieved February 6, 2014.
  21. "The Future of Money and Bitcoin by Chris Larsen, CEO of OpenCoin". Retrieved February 24, 2015.
  22. "Ripple Explained: Medieval Banking with a Digital Twist".
  23. 23.0 23.1 John, Light. "Decentralized Exchange for Fun and Profit". Let's Talk Bitcoin. Retrieved January 26, 2014.
  24. Tong, Anna. "Understanding trust lines". Ripple Labs. Retrieved February 2, 2014.
  25. "Ripple Gateways". IRBA. Retrieved January 27, 2014.
  26. "Public Disclosure Standards". International Ripple Business Association. Retrieved May 14, 2014.
  27. "International Ripple Business Association". ZoomInfo. Retrieved May 14, 2014.
  28. 28.0 28.1 Spaven, Emily. "Online payment network Ripple Labs receives $3.5m in new funding". CoinDesk. Retrieved January 27, 2014.
  29. "Ripple". Github. Retrieved January 28, 2014.
  30. "Ripple Forum • View topic - [OFFICIAL] We're moving the giveaway out of beta". Retrieved February 24, 2015.
  31. "XRP Distribution". Ripple Labs website. Ripple Labs Inc.
  32. 32.0 32.1 Jackson, Brian (January 21, 2014). "Beyond Bitcoin: Top 5 cryptocurrencies by market cap". IT Business Canada. IT World Canada Inc.
  33. Bradbury, Dan. "Ripple Labs now taking cash payments following deal with ZipZap and SnapSwap". CoinDesk. Retrieved February 2, 2014.
  34. 34.0 34.1 Teague, Solomon. "First Bitcoin, now Google-backed Open Coin". EuroMoney. Retrieved February 2, 2014.
  35. "Network Feed". Ripple Labs. Retrieved January 28, 2014.
  36. 36.0 36.1 "Proposed change to Ripple reserve requirement". Ripple Blog. Ripple Labs Inc.
  37. 37.0 37.1 37.2 "Your resource for live Ripple (XRP) exchange rates". Digigold Pty. Ltd. Retrieved January 28, 2014.
  38. King, Steve. "Missed Bitcoin? No Worries.". Netswitch Technology Management. Retrieved January 27, 2014.
  39. "The Science of Trust".
  40. 40.0 40.1 "Payment Network". Ripple Labs. Retrieved February 2, 2014.
  41. Simonite, Tom (April 11, 2013). "Big-name investors back effort to build a better Bitcoin". MIT Technology Review. Retrieved January 26, 2014.
  42. Schwartz, Ariel. "Bitcoin 2.0: Can Ripple Make Digital Currency Mainstream?". Fast Company. Retrieved February 2, 2014.
  43. McGarvey, Robert. "'Ripple' is the New Bitcoin: Adventures in Virtual Currency". The Street. Retrieved February 2, 2014.
  44. "Introducing Ripple Client: the iOS App". Ripple Blog. Ripple Labs Inc.
  45. Bradbury, Danny. "Chris Larsen: Ripple is HTTP for money". CoinDesk. Retrieved February 2, 2014.
  46. "Grid". RippleCharts. Retrieved January 27, 2014.
  47. "Company Summary". Peercover. Retrieved January 27, 2014.
  48. Southurst, Jon. "Bullion Exchange Brings Ripple into the Physical World". CoinDesk. Retrieved February 2, 2014.
  49. David, Gilson. "OpenCoin: Ripple users can send payments to bitcoin addresses". CoinDesk. Retrieved March 17, 2014.
  50. Bailey, Reutzel. "Ripple Network Adds Currency Conversion for Bitcoin Payments". PaymentsSource. Retrieved March 17, 2014.
  51. "How does Ripple handle privacy?". ripple.com. Retrieved October 31, 2014.
  52. Bergstein, Brian. "50 Smartest Companies". MIT Technology Review. Retrieved March 12, 2014.
  53. Cawrey, Daniel. "Federal Bank VP: Bitcoin Threat Means Banks Must ‘Adapt or Die’". CoinDesk. Retrieved May 14, 2014.
  54. 54.0 54.1 Kurson, Ken (November 27, 2013). "The true value of Bitcoin and Ripple". Esquire Blogs (Hearst Communications, Inc.). Retrieved January 26, 2014.
  55. Popper, Nathaniel. "The rush to coin virtual money with real value". The New York Times (The New York Times Company). Retrieved January 26, 2014.
  56. Kharif, Olga. "Ripple Takes on Western Union With Deal to Grow Payments". Bloomberg. Retrieved January 28, 2014.
  57. "XRP Distribution". Ripple Labs. Retrieved February 24, 2015.

External links