Singapore’s central bank sent a payment to Canada using blockchain technology last week, in a clear signal that the technology has value – as long as you’re realistic about it.
The Monetary Authority of Singapore (MAS) sent $105 Singapore dollars to the Bank of Canada (BoC) in a proof-of-concept project that inches them closer to solving one of banking’s biggest headaches: cross-border payments and settlements.
In a November 2018 report on cross-border interbank payments and settlements, the two organizations and the Bank of England detailed the challenges of settling transactions between banks in different countries. Banks must navigate an array of hurdles including anti-money-laundering and know-your-customer regulations.
If a bank has no presence in the recipient country, it must also rely on another intermediary bank to process the payment on its behalf, in what’s known as the correspondent banking model. All the parties will have their own legacy systems that make it difficult to process the transaction uniformly. It is an expensive process that can take several days, and parties never quite know when the money will arrive.
The biggest problem is counterparty risk – when a bank sends money via an intermediary to buy something, it can‘t be certain that the intermediary will deliver the funds, or that the other bank in the transaction will hold up its end of the bargain.
Reducing counterparty risk
BoC and MAS wanted to use the blockchain to settle payments while reducing counterparty risk. Each organization already had its own distributed ledger for processing the clearing and settlement of payments and securities domestically. In 2016, BoC created Project Jasper, while MAS created Project Ubin. This latest project brought the two distributed ledger technologies together so they could collaborate on transactions.
The project still needs an intermediary that has a presence in both the sending and receiving countries, because the intermediary is the only party that carries both the sending and receiving banks’ currencies and can process payments in both countries. The difference is that no funds need change hands between this intermediary and the sending and receiving banks before the entire transaction is complete, which reduces the risk.
Instead, the whole multi-step exchange relies on ‘atomicity’, which is a condition where a group of transactions in a chain must all succeed. If one transaction fails, then they all fail, rolling back the exchange of assets to the beginning.
BoC and MAS achieved atomicity using Hashed Time Locked Contracts (HTLCs). If Alice wanted to buy something from Bob for $1,000, it would work like this:
- Bob generates a random number and uses it to create a hash, which he sends to Alice.
- Alice sends the $1,000, along with the hash that Bob sent her. To unlock that payment, he must show her the data he used to produce the hash.
- Bob produces the data and unlocks the payment.
If these steps don’t happen in time, all transactions fail.
Because this is all happening on the blockchain, the banks encode this HTLC in a smart contract (a computer program that runs on all participants’ computers on the blockchain). The smart contract checks all conditions are met before unlocking the payment.
The BoC/MAS exchange goes like this:
- The Canadian bank uses a secret (a random number) to generate a hash. It sends the hash to the Singapore bank.
- The Singapore bank deposits the cash it wants to send to the Canadian bank in an escrow account on the blockchain. It then sends the hash to the intermediary bank’s Singapore branch.
- After checking the smart contract to ensure that the funds are in the escrow account on the blockchain, the intermediary bank sends the hash to its Canadian branch. The intermediary bank’s Canadian branch deposits the funds in another escrow account on the blockchain. Then it sends the HTLC to the Canadian bank.
- The Canadian bank verifies that the locked amount is correct and then uses the original secret to unlock the funds from the escrow account. It also sends the secret to the intermediary bank’s Canadian branch.
- The intermediary branch in Canada shares the secret with its Singapore branch.
- The intermediary’s Singapore branch then uses it to unlock the funds in the escrow account there.
A SGD$105 payment between two parties is a good start, but as the two central banks note in their report on the project, it still needs work if it is to scale. It would need something like gateway nodes that act as service nodes for their network participants, or a central connector between networks.
It’s all very exciting, but the Ripple cryptocurrency-based cross-border payment network has been doing more or less the same thing for years now. However, operating their own payment network rather than using a third-party payment service would presumably give central banks autonomy.
The whole thing also shows that the blockchain isn’t a white elephant. The technology slipped into what‘s known as the trough of disillusionment on Gartner’s hype cycle last August. This trough is part of a natural transition as people realize that a single technology won’t solve all of humanity’s problems.
From here, blockchain faces a slow, steady climb back into favour as people realize that it has some value for certain use cases, as long as you view it sensibly.
Raymond E Rogers
Are you open to questions/criticisms of the descriptions?
Paul Ducklin
Errr, that’s one of the things the comment section of every article is for…
rrogers31
What is the “hash”, in my experience a hash is a means to improve access? I get the impression that here it is used either as encryption/public key, digital signature, or it just gets passed around.
“The intermediary bank’s Canadian branch deposits the funds in another escrow account on the blockchain.”
but then (whatever state it’s in)
“The intermediary’s Singapore branch then uses it to unlock the funds in the escrow account there.”
Why is it back in Singapore? Are there two escrow accounts?
Where does the originating Bank in Canada get the money from; and where does it “verify” it.
Does the blockchain have access to the amount to be vouched for? Or does it just pass an encrypted message back and forth?
Sorry but I have been reading _about_ blockchain but am not privy to any special terms in usage.
Ray
Paul Ducklin
The word hash is indeed often used in two similar but not interchangeable ways.
A non-cryptographic hash is a quick-to-calculate digital “check code” computed from the bytes in a blob of data. The hash than can be used, as you say, for tasks such a speeding up indexing.
A cryptographic hash or message authentication code is a much stricter beast – it acts as a sort of digital fingerprint that stands in place of the original data. Unlike a regular hash, the algorithm for computing it is sufficiently complex that you can’t work back from the hash to infer anything about the input data, and you can’t rig up input data to come up with a hash that matches someone else’s.
rrogers31
So I am guessing that “unlock” means somebody (the Canadian originator?) can use the hash to access something. It’s surely not just a thing that gets passed back and forth. After all, everybody or anybody can store it for later use; or transaction reconstruction.
Ah well, I will read the original report. I like mathematical puzzles and spy stories :)
Danny Bradbury
Hi Ray. Paul’s description of a hash is perfect. To address your other questions:
Yes, there are two escrow accounts, one for each country in the transaction.
The originating Bank in Canada would get the money from the party using it for the asset exchange. If you want to buy stocks from someone in Singapore, say, then you’d give the Canadian bank the money and it would be settling with the corresponding party’s Singapore bank.
The amount vouched for is in the smart contract.
The report, linked to in the story, provides a more in-depth description than is possible in the text and is well worth a read if you have some time.
JPS
Since both the Singapore and Canadian banks still rely on escrow accounts with an “intermediary bank” with branches in Singapore and Canada (which they already use today), I fail to see why this requires any blockchain technology or how that would make it any better.
You do not require blockchain to achieve true atomicity of transactions. Literally every step in the process described in the article (including passing hashes back & forth) can still be implemented without any blockchain being involved. Granted, the way in which cross-border transactions happen today, may have its issues (as described in article) but fixing it does not require blockchain technology.
Paul Ducklin
BUT IT’S SO COOL :-)
Danny Bradbury
Correct, you don’t need a blockchain for atomicity, and ACID transactions have been around for a long time. When I read the report, I was disappointed that they didn’t pursue the real value in a blockchain solution, which would be the elimination of an intermediary altogether. As the report mentions, simply allowing direct access to a central bank’s systems (blockchain or otherwise) presents regulatory problems. The ideal solution would involve direct interbank communication on a single blockchain, resolving the forex issue with an intermediate cryptocurrency. As I understand it, Ripple has been doing this for a while.