Rippleâs former CTO Stefan Thomas is going up against Ethereum with the launch of a new smart contracts platform.
Well, ânewâ isnât quite right â the platform Thomas released implementations for today is Codius, an open-source project that Ripple released in beta in 2014 but shelved the following year. Now, though, having announced his departure from Ripple in May, Thomas is re-launching Codius as the technical backbone for his new company, Coil.
Using Codius, Coil aims to change the way websites monetize their content.
According to Thomas, monetizing web content has so far relied on clunky âworkaroundsâ like ads, paywalls and user data harvesting (think Facebookâs recent debacle). But his new project, by using Interledger, an open-source protocol that was developed inside Ripple for sending payments across different ledgers, plans to allow usersâ browsers to make micropayments to websites they visit.
Codius could enable use cases such as a ârevenue disbursement contract,â which could take in revenue as people watch a movie and pay that money out to all the parties that made the movie â and not in batch payments, but little by little. Or a Codius smart contract could help news outlets and their readers interact in that it could manage readersâ authorizations and subscriptions âand act as a sort of switching board for your money,â Thomas said.
The implementation released today comes with tutorials for uploading and hosting Codius smart contracts (uploaders pay hosts to run smart contracts on their computers), to try and push developers to start using the platform right away.
And already several developers have disclosed theyâll be building on the platform, as revealed exclusively to CoinDesk.
Telindus, an Luxembourg-based IT solutions subsidiary of the state-owned Belgian telecom Proximus Group, will use Codius to âpush forward novel direct e-commerce models,â Telindus chief architect Thomas Scherer told CoinDesk.
Josh Williams â who has previously invested in well-known game platforms Unity, Zynga and Kabam â said heâd be using Codius in new ventures, including a gaming company that is currently in stealth.
Williams told CoinDesk:
âTeams in games and elsewhere are building on Ethereum and running into the cost and scalability issues weâre all familiar with. Codius has great potential in addressing these concerns, and we are eager to work with it.â
Thomas echoed that sentiment, saying that as Ethereum has demonstrated the viability of smart contract use cases, it has simultaneously shown the world its own vulnerabilities, as Ethereum-based applications continue to run into scaling difficulties.
In contrast to Ethereum, Codius was designed to allow developers to write smart contract code in any programming language and have the smart contracts work as âsmart oracles,â communicating with outside data sources.
As such, Thomas said, Codius has an opening.
âThe people that are reaching out to us are saying, âHey, weâre experimenting on Ethereum. Weâre running into scalability issues. Itâs too expensive, too slow. Itâs not flexible enough. We donât like writing in this awkward language,'â he said.
So why did Ripple set Codius aside?
While Codius generated its share of buzz in early 2015, before Ethereumâs mainnet was live, according to Thomas, the idea seemed premature. Ripple engineers touted the platform as a model for interoperability at the time, saying it was able to handle not just XRP â the cryptocurrency most closely associated with Ripple â but bitcoin, ether and fiat currencies.
But the project hit snags, however.
Adding smart contracts opened up new ways to attack the ledger, and the technical architecture was cumbersome. Speaking in 2015, Thomas said that building smart contracts into a blockchain was like writing software directly into a database â difficult.
The team realized, Thomas told CoinDesk in a recent interview, that computer science had solved that problem in the 1970s by developing a three-tier architecture, in which a âlogic layerâ sits between the database and user interface layers.
Codius would serve as that middle layer, Thomas said, adding, âYou would have a bit of code thatâs accessing some assets on XRP ledger, thatâs accessing some data thatâs in Ethereum, and maybe itâs making an HTTP call and so you have a much more flexible architecture. And most importantly you can have those kinds of contracts call other contracts as well.â
But building that kind of platform required efficient communication between ledgers, something that wasnât available at the time, and so Ripple began developing the open-source Interledger Protocol to allow for this communication.
Plus, Thomas said:
âWe just didnât feel like smart contracts was a very mature industry at that pointâ¦. Frankly, the use cases seemed somewhat dubious in value.â
As such, Codius was shelved. But now, three years later, Thomasâ doubts about the value of such a smart contract platform have disappeared.
Rather, he sees Ethereumâs scaling issues â expensive transactions and slow confirmation times â as signs that smart contracts are ready âto move away from the mainframes, move away from Ethereum and go over to a more flexible architecture that involves multiple different ledgers.â
Codius, though, is hardly the only would-be Ethereum-killer to emerge over the past couple years.
All of these projects, like Codius, tout the ability to process faster and cheaper transactions, but thereâs typically a trade-off involved â either in terms of security or blockchainâs defining benefit, decentralization.
EOS, for instance, a delegated proof-of-stake cryptocurrency project which is currently in the midst of launching on mainnet, promises faster, cheaper transactions, because the blockchain only needs to be verified by 21 validator nodes, not by the whole distributed community of miners as in Ethereum and bitcoin.
Thomas, though, argues that Codiusâ design enables developers to balance their own priorities, rather than having to accept the networkâs compromises as a given.
âYou can choose the level of decentralization,â Thomas told CoinDesk. âIf you upload it to four or five hosts, youâll have a decentralization level thatâs similar to Ethereum [and] youâll have a cost thatâs still orders of magnitude lower. Or you can upload it to 100 hosts, and youâll have a much greater level of decentralization than you can get with Ethereum.â
As it relates to security, Thomas argues, Codius has several advantages over Ethereum and other smart contract blockchains.
For one, the network is built on HyperContainer, an open-source project that uses Docker containers to isolate a given contractâs code and minimize its vulnerabilities to attack. And secondly, Codius developers arenât locked into a nascent programming language like Solidity, which theyâre unlikely to know as well as JavaScript, for example.
âI think that a lot of the issues and compromises, big hacks and so on have been directly related to the fact that these are all new languages whose securityâs not very well understood,â said Thomas.
As for price, Thomas contrasts Ethereumâs transaction costs â which can exceed 60 cents and even a dollar â with those of Amazon Web Servicesâ Lambda platform, which costs 20 cents per million requests. AWS is centralized, but Thomas still expects Codiusâ costs to fall âbetween those two extremes.â
For Thomas, rolling out Codius is the first step towards building a standard protocol for monetizing web content, as well as the ecosystem around it. Eventually, Thomas believes firms might decide to host websites on Codius rather than AWS, with Coil serving as a kind of âSpotify, but in an open wayâ â a protocol connecting consumers, internet service providers, websites and content creators.
And while the code is still ârough,â Thomas remains optimistic that Codius will prove a step forward for developers writing smart contracts that solve problems for todayâs businesses.
He concluded:
âFrom a cost, scalability and security standpoint, as well as the flexibility ⦠itâs orders of magnitude more viable for mainstream use cases.â
Correction:Â An earlier version of this article stated that Josh Williams worked at Unity, Zynga and Kabam. He was an investor in those companies.
Stefan Thomas image via CoinDesk archives