Accenture Cross Border Distributed Ledger Technologies
Accenture Cross Border Distributed Ledger Technologies
Powered by:
2 | JASPER – UBIN DESIGN PAPER
CONTENTS
01 | Introduction........................................................................................................................................................ 8
1.1 What is cross-border payment?......................................................................................... 10
1.2 What are settlement systems?........................................................................................... 10
05 | Discussion............................................................................................................................................................ 34
5.1 DLT platfom support for Hashed Time-Locked Contracts (HTLC).................................................. 34
5.2 HTLC across multiple networks........................................................................................................................... 35
5.3 Advantages and limitations of HTLC................................................................................................................ 35
5.4 HTLC alternatives.......................................................................................................................................................... 36
5.5 Network scalability...................................................................................................................................................... 36
06 | Glossary.................................................................................................................................................................. 39
07 | Appendix................................................................................................................................................................ 40
7.1 Quorum Framework...................................................................................................................................................... 40
7.1.1 Quorum node................................................................................................................................................................. 40
7.1.2 Constellation and Tessera..................................................................................................................................... 41
7.2 Corda Framework.......................................................................................................................................................... 41
The Bank of Canada (BOC) and the cross-border payments today. DLT could
Monetary Authority of Singapore (MAS) offer an easier and faster path towards
are pleased to present the report “Jasper- adoption than a centralized approach
Ubin Design Paper: Enabling Cross-Border because it can leave the different
High Value Transfer Using Distributed jurisdictions involved in control of their
Ledger Technologies”. portion of the network while allowing
for tight integration with the rest of
In 2016, BOC and MAS embarked the network.
on Project Jasper and Project Ubin,
respectively, to explore the use of The Jasper-Ubin project is experimental
Distributed Ledger Technology (DLT) for in nature, and whether we will eventually
the clearing and settlement of payments use blockchain technology for high-
and securities. This report describes how value cross-border payments remains
the Jasper and Ubin prototype networks, to be seen. Technology exploration and
developed on different blockchain experimentation will continue because
platforms, were able to interoperate, we see potential in this technology.
allowing for cross-border payments to be More importantly, cross-jurisdictional
settled on central bank digital currencies, collaborations must continue, as the
which in turn enables greater efficiencies development of common shared
and reduces risks. understanding will benefit the global
ecosystem regardless of the technology
The collaboration between the two that we eventually choose to use.
central banks has successfully proven the
ability for settlement of tokenized digital We would like to express our appreciation
currencies across different blockchain to JP Morgan and Accenture for their
platforms. In combination with earlier contribution to this pioneering work
work on Delivery versus Payment (DvP) and endeavor.
settlement, we are forging a path forward
for blockchain platform interoperability We encourage central banks,
in a future world of heterogeneous regulators, financial institutions and
distributed ledger platforms. technology companies to read about
the achievements and learnings from
A fragmented world, with differing the Jasper-Ubin project, and join our
standards, processes, norms, and efforts in making cross-border payments
regulations is the key challenge in cheaper, faster, and safer.
IntA(L) InA(F)
2
Cross-network communication,
FX Conversion
59 5 12
Cross-Border Payments
• also known as asset • also known as direct • also known as asset transfer
swap via intermediary access • allows for multiple currencies
• needs intermediary for • does not involve an within the same network
foreign exchange and intermediary • still need intermediary
transfer (which could be the central
banks) for transfer
1 LCY 3 FCY
2
Cross-network communication,
FX Conversion
Domestic Foreign
Sender Intermediary Intermediary Receiver
Network (LCY) Network (FCY)
5 Send information
B, $X, H(S), T 6 Put funds with End Time
Return with B,
into escrow ( B, $X, H(S), T )
$X, H(S), T
Ack
7 Inform FI(B) that transaction
Ack H(S) added to escrow
8 Redeem funds
from escrow (S)
Ack
Ack
Off-Chain
5 Send information
B, $X, H(S), T 6 Put funds with End Time
Return with B,
into escrow ( B, $X, H(S), T )
$X, H(S), T
Ack
7 Inform FI(B) that transaction
Ack H(S) added to escrow
8 Redeem funds
from escrow (S)
Ack
Ack
Off-Chain
Position: FCY 500 Transfer 1: (+) LCY 105 Transfer 2: (+) LCY 105
Transfer 1: (+) FCY 100 Transfer 2: (-) LCY 105 Transfer 3: (-) LCY 105
Balance: FCY 600 Central Operator 1 Central Operator 2
Bank 3
2
Cross-network communication
1. With sufficient FCY after the initial
funding, Bank 1 makes a transfer of 100
1. Bank 1 pledges 105 LCY to
FCY to Bank 3 in the foreign network.
Central Operator 1 for transfer
2. Bank 3 successfully receives the FCY, to the foreign network.
and the payment flow is complete.
2. Central Operator 1 then informs
Central Operator 2 that there
3.2.3 MULTIPLE CURRENCY is a request to transfer 105 LCY
SUPPORT WITHIN to Bank 1 in the foreign network.
A NETWORK
3. Central Operator 2 sends the 105 LCY
In the previous approach, money is sent to Bank 1 in the foreign network,
from the sender in the domestic network while Central Operator 1 redeems
in LCY to the receiver in the foreign the 105 LCY on the domestic network.
network in FCY. The FX conversion and
transfer are managed by the intermediary Once multiple participants have
because each network can operate repeated this process, all of them
only in its own currency (leaving aside will have both LCY and FCY balances
alternative funding arrangements). in each network, enabling direct
transactions between them.
This model assumes multiple currencies can
be transacted in each network. For example,
the sender bank will have both LCY and FCY
wallets in its domestic network.
5 Send information
B, $X, H(S), T 6 Put funds with End Time
Return with B,
into escrow ( B, $X, H(S), T )
$X, H(S), T
Ack
7 Inform FI(B) that transaction
Ack H(S) added to escrow
8 Redeem funds
from escrow (S)
Ack
Ack
Off-Chain
Bank A Bank B
(Local Bank Singapore) (Local Bank Canada)
4
Time to Complete
T 3 5 T/2
Monetary Bank of
Authority of Canada
Singapore
3 Inspect HTLC Receive hash 4 6
& Transfer digest & initiate
Singapore Hash Digest new HTLC Canada
Intermediary A Intermediary A
7 7 8
Receive secret & Complete HTLC
complete HTLC & transfer secret
ii. The expiry time for the contract in Singapore only after receiving
is set to T, which will be the the original secret from the
overall duration for completing corresponding DLT network.
the payment processing across
ii. Retrieves the contract expiry time T.
both DLT platforms.
iii. Sends the hash digest H(S) and
iii. Since Intermediary A in Singapore
contract expiry time (T/2) to
is an intermediary bank in this
Intermediary A in Canada.
contract, it receives the hash
digest information. In the Canada network:
Adapter (Web3)
• To get all HTLC transactions for a bank
• To initiate an HTLC transaction
Quorum
Smart Contract
• To reclaim the transfer amount
Node
if the transaction fails or expires
• To initiate an HTLC transaction on
another DLT
• To complete an HTLC transaction
The process of using the escrow Similarly, for the timeout scenario,
account is described below: funds are transferred from the escrow
account to Bank A automatically once
• Bank A locks the funds in an escrow the validation succeeds.
account with Intermediary A in
Singapore as the counterparty.
For the cross-border (interledger) payment 1. Intermediary A locks the funds with
transactions, we considered various the escrow node by providing the
architecture options (using Composite Keys, hash of the secret.
Encumbrance states etc.) to successfully 2. Bank C presents the secret to
build HTLC functionality in a Corda network. the escrow node.
Currently, the Corda platform does not
3. The escrow node hashes the secret and
fully support the features (locking, secret
compares it with the hash provided by
disclosure, timeout) required to properly
Intermediary A. If it matches, the escrow
implement HTLCs without introducing
node releases the funds to Bank C.
unacceptable failure modes and a trust
model. The development effort that For the time validation, the escrow node
would have been required at a platform ensures that Bank C claims the funds (by
level to achieve this was not possible providing the secret) within the time window.
within the time available to the team. Otherwise, it automatically returns the funds
to the intermediary. The time lock element
For this reason, we introduced a trusted
of HTLC is implemented by suspendable
entity, the escrow node, which is part of
Corda flows with timeouts set to throw
the transactions, to implement the HTLC
an exception and reject the transaction
functionality. The escrow node is assumed
for the originator to reclaim the funds.
to be trusted and will be owned/maintained
by the network operator, similar to the The HTLC protocol relies on the ability
trust framework for the notary. Around of the nodes in two different networks
the escrow node, the flows and signatures to pass secure reliable messages (secret,
are carefully managed to ensure that the hash code, timeout, amount, etc.). This
transaction cannot be sabotaged by any functionality was implemented in the
party. As part of the HTLC protocol, the network using custom RESTFul APIs to
escrow node provides hash validation and communicate with the Singapore network.
Regulator
(node)
1 2
Intermediary A Bank C
(node) (node)
H(S), Bank C, Secret
T, Amt Escrow
(node) 3
Intermediary B Bank D
(node) (node)
Notary
(node)
Adrian Guerin
PROJECT TEAM
Fraser Edwards (Accenture) Raunak Rajpuria (JP Morgan)
Constellation
The primary features of Quorum, Quorum Node
and therefore extensions over public Transaction
Enclave
Ethereum, are: go-ethereum Manager
• Constellation/Tessera – Enclave • T
he block generation logic has been
modified to replace the ‘global state
root’ check with a new ‘global public
state root’.
• T
he block validation logic has been
modified to replace the ‘global state
root’ in the block header with the
‘global public state root’