How Barclays Used R3's Tech to Build a Smart Contracts Prototype

CoinDesk goes inside Barclays' latest distributed ledger trial, showcasing how it is digitizing smart contract templates on R3's new ledger Corda.

AccessTimeIconApr 26, 2016 at 8:27 p.m. UTC
Updated Sep 11, 2021 at 12:14 p.m. UTC
10 Years of Decentralizing the Future
May 29-31, 2024 - Austin, TexasThe biggest and most established global hub for everything crypto, blockchain and Web3.Register Now
barclays
barclays

UK banking giant Barclays took another step toward positioning itself at the forefront of innovators in the blockchain sector last week with the news it had become the first to trial Corda, a new distributed ledger platform from partner R3CEV.

The prototype, demoed at the Barclays Accelerator in London last week, follows a particularly active period for Barclays, which earlier this month revealed it would provide banking services to blockchain payments startup Circle, and earlier this year, participated in a test of a private version of the Ethereum blockchain with 11 R3 member banks.

In interview, Dr Lee Braine of the Investment Bank CTO Office at Barclays, spoke to what it described as a broader need for leadership from the banking industry should the industry want blockchain technology to “reach maturity”.

Braine said that Barclays aims to devote time and expertise to the ecosystem, specifically to areas where banks have more experience than innovators. In particular, he cited Barclays and its drive to create smart contracts templates, as an example of this ongoing work.

Braine told CoinDesk:

"What we’ve been doing in the last year, working with other banks through consortium and directly with startups, has been providing feedback around tech… In this case, we have subject matter expertise around legal documentation around the bank. Startups may not have that, so we thought by showcasing this, we’d look to encourage other banks to move into this space."

To Braine, step one for the proof-of-concept was to determine how blockchain-based smart contracts could be connected to real-world legal contracts. This possibility, he said, could enable the simplification of legal documentation, while mutualizing costs.

Screen Shot 2016-04-26 at 2.39.21 PM
Screen Shot 2016-04-26 at 2.39.21 PM

Braine said that Barclays approached the challenge by devoting a full team to its incubator program for the project, during which these employees liaised heavily with internal legal teams working on derivatives.

"We’ve taken in their preferences in order to build the interface," Braine said. "The lifecycle, the workflow ... these aspects were driven by the legal document automation team."

But Barclays is not alone in identifying this area as one where blockchain and distributed ledger tech could play a role. Industry startup CommonAccord, incubated in the BNP Paribas accelerator, has also set its sights on codifying and automating legal contracts.

Further, the efforts come amid a broader push from banking consortium R3 to reimagine blockchain-based processes as working for digital contracts, rather than digital assets.

The demo

In this repositioning, Barclays envisions the International Swaps and Derivatives Association (ISDA), a global trade association for over-the-counter (OTC) derivatives, as serving as a central repository for standardized, smart contract-enabled documents for use by traditional financial firms.

In an example provided to CoinDesk, Barclays illustrated how these newly created templates could be used to translate three lines of text into code executable on a distributed ledger.

Screen Shot 2016-04-26 at 2.47.57 PM
Screen Shot 2016-04-26 at 2.47.57 PM

Braine further manipulated fields in the documents to showcase how party names could be added to the agreements, with the contracts then being attached to trades.

"Counterparties then review the trades. There it appears, they select it, they select the trade and affirm it. The smart contract is now set to a distributed ledger," he said.

Screen Shot 2016-04-26 at 2.54.28 PM
Screen Shot 2016-04-26 at 2.54.28 PM

In this envisioning, smart contract templates would be provided for banks to download and to use, Braine explained, with hashes of legal agreements, not the documents themselves, stored on the Corda distributed ledger.

"Currently each bank stores its own instance [of contracts]," Braine said. "Therefore, if you want to look for, what are the governing documents, each bank would need to look to its own stores. There’s an opportunity to have a centralized store, as well as a replicated copy, but each of the parties to agreement would see the same set of legal documents."

Even though banks involved would operate their own nodes on the ledger, he continued, hashes of changes would point back to the same originating document.

"You can imagine there would be benefits in some degree of centralization around agreements. You can imagine a party upgrading their versions as they go through maturity, then a counterparty would add information or come back with comments," he said.

Choosing Corda

As for its choice of technology, Braine said that the test could have been replicated on other systems, and that the Ethereum blockchain was one such platform considered.

However, he said R3’s Corda platform was just maturing as it was seeking to roll out the initiative, and that an example interest rate swap had already been implemented on the platform, making it an ideal choice.

“There was a natural fit between the ISDA and what was implemented,” he said.

As for the test, Braine said it was “purely a prototype” being simulated with multiple “abstract” nodes.

“The interest rate swap was just a simulated product running on the nodes. There were indeed multiple nodes, they were communicating, but it was just a substantiation,” he said.

Interest rate swaps, Braine said, were an attractive test vehicle due to the fact that they are “one of the simpler” derivatives products. Yet, he noted that they had more complex features, such as a schedule that could be updated over time, which would allow Barclays to show the range of functionalities the technology could allow.

R3’s technology, he continued, is also unique in that, unlike existing blockchain or distributed ledger technologies, Corda could allow multiple financial firms and regulators to access a common blockchain-based data store, but with an expanded set of permissions that would respect business processes.

"Data is not replicating to every node. Only those entitled to see it. Business logic is controlled by parameters for the templates," he said.

Braine showcased a demo whereby nodes were shown communicating with different classes of notes on the network, including regulators, rates services providers and time-stamping services.

Screen Shot 2016-04-26 at 2.56.34 PM
Screen Shot 2016-04-26 at 2.56.34 PM

Next steps

Still, Braine said that Barclays is seeking to build on the successful prototype.

For one, it aims to hold a ‘Smart Contracts Template’ summit in June with other industry stakeholders. Further, Braine said Barclays is going to continue to develop its code by improving the interface, its data repositories and exploring the use cases in more depth.

"We’ve looked at interest rate swaps and I think we’ll look at at least two more in the coming three months, and then we’ll look to start prioritizing those," Braine said.

Braine said while the path ahead for the project is still uncertain, he was optimistic that the “next iteration” of the prototype would be in place by summer, at which point another demo of the technology could be made.

Braine, however, was cognizant of the challenges ahead, stating that the most challenging will come down to the “core infrastructure” around data stores for the transactions.

“For our demonstration, we went with the most standardized agreements,” he said, adding that other agreements will be more complicated, but that they will not be possible without the necessary groundwork.

Brain concluded:

"You can imagine in the fullness of time, the scope could go beyond financial products, and for this idea, templates need to be expanded beyond that."

See a full overview of the demo below:

Disclosure

Please note that our privacy policy, terms of use, cookies, and do not sell my personal information has been updated.

CoinDesk is an award-winning media outlet that covers the cryptocurrency industry. Its journalists abide by a strict set of editorial policies. In November 2023, CoinDesk was acquired by the Bullish group, owner of Bullish, a regulated, digital assets exchange. The Bullish group is majority-owned by Block.one; both companies have interests in a variety of blockchain and digital asset businesses and significant holdings of digital assets, including bitcoin. CoinDesk operates as an independent subsidiary with an editorial committee to protect journalistic independence. CoinDesk employees, including journalists, may receive options in the Bullish group as part of their compensation.


Learn more about Consensus 2024, CoinDesk's longest-running and most influential event that brings together all sides of crypto, blockchain and Web3. Head to consensus.coindesk.com to register and buy your pass now.