Interledger
Protocol Stack Deep Dive
Evan Schwartz
Co-Inventor of Interledger
@_emschwartz
Agenda 1. Internetworking Architecture
2. Ledger Integrations: HTLCs vs HTLAs
3. Interledger Protocol V4
4. Building on ILP: Transport & Application
Internet of
Money
Payments
Value
Blockchains
Coins
The Internet Works the Same Over Ethernet, Fiber, Radio
IP Is So Network-Agnostic...
This is Why Protocols Designed for PDP-10s Work w/ iPhones
Internet Architecture
IP
PPP ETHERNET WIFI BLUETOOTH
L3: Internetwork
L2: Network
L4: Transport TCP UDP QUIC
L5: Application HTTP SMTP NNTP NTP RTP
COPPER FIBER RADIO(L1: Physical)
Interledger Architecture
ILP
PAYMENT / STATE CHANNELS
SIDECHAINS ...
L3: Interledger
L2 Network
L4: Transport IPR PSK STREAM
L5: Application SPSP HTTP-ILP PAYTORRENT
BLOCKCHAINS CENTRAL LEDGERS(L1: Ledger)
Background
Why layered protocol stacks?
Balancing Interoperability and Innovation
More
Standardization
More
Flexibility
Internet Architecture
IP
PPP ETHERNET WIFI BLUETOOTH
L3: Internetwork
L2: Network
L4: Transport TCP UDP QUIC
L5: Application HTTP SMTP NNTP NTP RTP
COPPER FIBER RADIO(L1: Physical)
What features belong in each layer?
?
?
L3: Interledger
L2 Network
L4: Transport ?
L5: Application ?
?(L1: Ledger)
What interfaces should each layer provide to the others?
?
?
L3: Interledger
L2 Network
L4: Transport
?
L5: Application
?
(L1: Ledger)
Background
Securing multi-hop payments
Optimistic Execution (Correspondent Banking Today)
EXECUTE
Optimistic Execution (Correspondent Banking Today)
FAIL
1. PREPARE
2. EXECUTE
Two-Phase Execution Secures Multi-Hop Transfers
REFERENCES
J. Poon and T. Drya, The Bitcoin Lightning Network: Scalable Off-Chain Instant Payments, 2015
S. Thomas and E. Schwartz, A Protocol for Interledger Payments, 2015
1. PREPARE
Sender Cannot Lose Money If Packet Is Dropped
1. PREPARE
2. EXECUTE
Malicious Intermediaries Lose Funds If Response Is Dropped
Background
HTLCs vs HTLAs
Hashed Timelock Contract (HTLC): Ledger-Mediated
What if the ledger is too slow, expensive, or no HTLCs?
Hashed Timelock Agreements (HTLA) Are Purely P2P
HTLA: No Preimage → No Money
HTLA: Preimage → Money
HTLA: Preimage, No Money → No Future Business
HTLAs: Prepare, Fulfill, Settle, Repeat
What features are needed from
ledgers (or Layer 2 networks)?
Layers 1 + 2
Ledger Integrations
There are a lot of blockchains out there!
Layer 2 Is a Hot Topic!
...And many more!
The Traditional Payment Space is Already Highly Fragmented
What features are common to
all payment networks?
What features can we expect?
Interledger.js Uses Plugins to Abstract Different Ledgers + L2s
Core Ledger Functions
● Send money
● Send data
Sending Data: BTP Uses Websockets for Secure P2P Comms
BTP 2.0 Is A Binary Request/Response Protocol
Sending Money: Settling HTLAs
?
What if the ledger is too slow or expensive?
Payment Channels Enable Fast, Free Settlement for HTLAs
XRP Ledger Payment Channels
Machinomy Library for ETH + ERC20 Payment Channels
Lightning Payments Used on Bitcoin
Payment channel plugins extend
ilp-plugin-btp and
ilp-plugin-mini-accounts
Plugins for on-ledger settlement
extend ilp-plugin-payment
Layer 1 + 2 Must-Haves:
● Send data
● Send money
Layer 1 + 2 Nice-To-Haves:
● Fast, Cheap Transfers OR
● (Unidirectional) Payment Channels
● Native Comms / Authentication
Layer 3
Interledger Protocol V4 (ILPv4)
Interledger Protocol Stack Deep Dive @ Boston Interledger Meetup
ILPv4 Packet (Request)
ILPv4 Packet (Response, Error)
Example ILP Prepare Packet
{
"amount": "1000",
"executionCondition":
"3c36339587dbd93a815168c14478afcf3dcf77559c9ff0ca425b53317f32d56e",
"expiresAt": "2018-05-22T19:41:20.724Z",
"destination":
"test.amundsen.bmp.btp18q1xrp.DZ3ec1t1idUwmt7e2uU82mUkmT2pKodAq-PRm4SoNlc.lo
cal.0ttqOHeL_k9Hkdac-XFv4uyy-a3_Q6jbteIVU68ZIyY.ZQzhSKrtxjm10yuJQixQ9vct",
"data":
"a8bbf14d8331429627142fc19ad2e69ef7f3b45d576577ddd1027ec7ed43205e25ef6ff68a
76d2d26e6a7572cf5a7bc09952bfb7067d29f8edea1f17d42e41f36d1c4466b9d3f17cd54a
91ed55a0830702a36290ddad05e7bf41c5d61cac8ce9621e9f59a1dae637d23fcc1e648a99
497707d6a4a1ee85bb78a6b20550d9b99a9b14b9d4f51602c2bfacf9533a6d4c2c819faa6b
77d2592fc7dd75c5e522795e0f"
}
Example ILP Fulfill Packet
{
"fulfillment":
"c076b41108fa77c54a447e708f34c6d8114caec0b5a11df70ee31bcd99a4cb46",
"data":
"3f7cc52c5e93bbe6fd35571736c1089c0863fbfa21e6dbc945b4da7b077fde71c5d688c554
ae39226d7df7dde92c33d389335d09c4e1ea1ce3b9fe5a9a18275bc47c9c1cd0d30ea8403d
"
}
Example ILP Reject Packet
{
"code": "F99",
"triggeredBy":
"test.amundsen.bmp.btp18q1xrp.DZ3ec1t1idUwmt7e2uU82mUkmT2pKodAq-PRm4SoNlc.lo
cal.0ttqOHeL_k9Hkdac-XFv4uyy-a3_Q6jbteIVU68ZIyY",
"message": "",
"data":
"9e43eb8120564d3da393f80cc24d7f20b3144381c4d3cbc6c0679ab8b39fcba4b484fc50a0
497e24e2fb87e77ceb"
}
ILP Addresses Are Hierarchical, Dot-Separated Strings
Questions Answered to Arrive At ILPv4
● Crypto Conditions or SHA-256?
● Are conditions a ledger or Interledger concern?
● Address separator: dots, dashes, colons, >’s?
● Should packet include source address, options, QoS?
● Should packet include destination amount?
● Do we need a separate quoting protocol (ILQP?)
...and many more
Four People Spent A Full Day Debating Address Separators
ILPv4 is (arguably) the
simplest possible protocol for
internetworking value networks
Layer 4
Transport
Internet Architecture
IP
PPP ETHERNET WIFI BLUETOOTH
L3: Internetwork
L2: Network
L4: Transport TCP UDP QUIC
L5: Application HTTP SMTP NNTP NTP RTP
COPPER FIBER RADIO(L1: Physical)
Transport layer provides
helpful functionality
needed by many applications
1st Gen: Receiver-Generated Fulfillments
2nd Gen: Sender-Generated Fulfillments
3rd Gen: In-Protocol Quoting
4th Gen: Quoting and Streaming
STREAM Client and Server Communicate Over ILP
Client Server
Interledger
STREAM Handles Bi-Directional Sending
Client Server
STREAM Connections Consist of Multiple Logical Streams
STREAM Features
STREAM Packets Are Opaque to Intermediaries
STREAM Packets Are Composed of a Header + Frames
Layer 5
Application
Application layer has
undergone many iterations but
more work to do using STREAM
Previously, Application Layer
just meant connection setup
Application Layer Protocols To-Date
● Simple Payment Setup Protocol
● HTTP-ILP
● Codius Cog
● Web Monetization
Resolving Human-Readable IDs to ILP Addresses
Application Layer Features
● Connection setup (TLS over ILP?)
● Requests for payment?
● Pull payments (using tokens)?
● Signed receipts?
● HTTP over ILP?
(Get involved in this development!)
BlockchainBanks Mobile Money Online Wallets
Help shape the Interledger architecture!
interledger.org @interledger

More Related Content

PDF
Interledger @ Boston Layer 2 Summit
PDF
34C3 Interledger Presentation - Background, Streaming Payments, and Implications
PDF
Interledger lightning talk
PDF
Interledger Overview // Berlin Node.js Meetup
PDF
Payment Sockets - Interledger Community Group Presentation
PDF
Interledger Workshop Berlin (1 June 2017)
PDF
Interledger Overview // Luxembourg Center for Security, Reliability, and Trus...
PDF
Interledger Application/ Setup Protocols
Interledger @ Boston Layer 2 Summit
34C3 Interledger Presentation - Background, Streaming Payments, and Implications
Interledger lightning talk
Interledger Overview // Berlin Node.js Meetup
Payment Sockets - Interledger Community Group Presentation
Interledger Workshop Berlin (1 June 2017)
Interledger Overview // Luxembourg Center for Security, Reliability, and Trus...
Interledger Application/ Setup Protocols

What's hot (19)

PPTX
ILP Lightning Talk at the MIT Blockchain Workshop
PDF
How do Things talk? IoT Application Protocols 101
PPT
Week10
ODP
p2p
PDF
Sharing and Controlling the IoT
PDF
Protocols for IoT
PPTX
HTTPS presentation at Port80 Sydney meetup March 2016
PDF
Can the e-Mobility Charging Infrastructure be a Blueprint for other IoT Proje...
PPTX
HTTP & HTTPS
PPT
Topic6 Basic Web Services Technology
PPTX
Networking infrastructure
PDF
STUN protocol
PDF
Security and Privacy in the current e-mobility charging infrastructure
PPTX
Hyper Text Transfer Protocol
PPTX
Client server architecture
PDF
Flow questions and answers
PPTX
Networking protocols
PPT
Mobile IP 1
PDF
Www ccnav5 net_ccna_1_chapter_3_v5_0_exam_answers_2014
ILP Lightning Talk at the MIT Blockchain Workshop
How do Things talk? IoT Application Protocols 101
Week10
p2p
Sharing and Controlling the IoT
Protocols for IoT
HTTPS presentation at Port80 Sydney meetup March 2016
Can the e-Mobility Charging Infrastructure be a Blueprint for other IoT Proje...
HTTP & HTTPS
Topic6 Basic Web Services Technology
Networking infrastructure
STUN protocol
Security and Privacy in the current e-mobility charging infrastructure
Hyper Text Transfer Protocol
Client server architecture
Flow questions and answers
Networking protocols
Mobile IP 1
Www ccnav5 net_ccna_1_chapter_3_v5_0_exam_answers_2014
Ad

Similar to Interledger Protocol Stack Deep Dive @ Boston Interledger Meetup (20)

PDF
Module 1 slides
PPTX
Lesson4.9 d u4l3 hierarchy of open protocols
PDF
Protocol and Integration Challenges for SDN
PPTX
Web technologies: recap on TCP-IP
PPTX
Internetworking
PDF
INE_Assessment_Methodologies_Footprinting_and_Scanning_Course_File.pdf
PPTX
Computer network coe351- part2- final
PDF
Web Services for the Internet of Things
PPTX
02 coms 525 tcpip - introduction to tcpip
PPTX
Introduction to socket programming nbv
PPTX
Small office Home office , network setup in details
PDF
OSI Model, Ports, and Protocols Cheat Sheet.pdf
PDF
OSI MODEL, PORTS, AND PROTOCOLS CHEAT SHEET
PPTX
Innovation is back in the transport and network layers
PPTX
Internet Protocol(Samyak Jain 25014).pptx
PDF
Snabb Switch: Riding the HPC wave to simpler, better network appliances (FOSD...
DOCX
Tcp/Ip Model
PDF
Presentation for IoT workshop at Sinhagad University (Feb 4, 2016) - 1/2
PPT
Peer-to-peer Internet telephony
Module 1 slides
Lesson4.9 d u4l3 hierarchy of open protocols
Protocol and Integration Challenges for SDN
Web technologies: recap on TCP-IP
Internetworking
INE_Assessment_Methodologies_Footprinting_and_Scanning_Course_File.pdf
Computer network coe351- part2- final
Web Services for the Internet of Things
02 coms 525 tcpip - introduction to tcpip
Introduction to socket programming nbv
Small office Home office , network setup in details
OSI Model, Ports, and Protocols Cheat Sheet.pdf
OSI MODEL, PORTS, AND PROTOCOLS CHEAT SHEET
Innovation is back in the transport and network layers
Internet Protocol(Samyak Jain 25014).pptx
Snabb Switch: Riding the HPC wave to simpler, better network appliances (FOSD...
Tcp/Ip Model
Presentation for IoT workshop at Sinhagad University (Feb 4, 2016) - 1/2
Peer-to-peer Internet telephony
Ad

More from Interledger (8)

PDF
Interledger Routing
PDF
Web Payments IG // TPAC 2016
PDF
How ILP Works
PDF
Weaving the ILP Fabric into Bigchain DB
PDF
Interledger Overview
PPTX
ILP Workshop Presentation 2 25
PPTX
ILP Workshop: Cryptoconditions
PDF
ILP Webinar 10/2015
Interledger Routing
Web Payments IG // TPAC 2016
How ILP Works
Weaving the ILP Fabric into Bigchain DB
Interledger Overview
ILP Workshop Presentation 2 25
ILP Workshop: Cryptoconditions
ILP Webinar 10/2015

Recently uploaded (20)

PDF
A Late Bloomer's Guide to GenAI: Ethics, Bias, and Effective Prompting - Boha...
PDF
How ambidextrous entrepreneurial leaders react to the artificial intelligence...
PDF
Hindi spoken digit analysis for native and non-native speakers
PDF
Architecture types and enterprise applications.pdf
PDF
sustainability-14-14877-v2.pddhzftheheeeee
PPTX
MicrosoftCybserSecurityReferenceArchitecture-April-2025.pptx
PDF
From MVP to Full-Scale Product A Startup’s Software Journey.pdf
PPTX
2018-HIPAA-Renewal-Training for executives
PDF
Produktkatalog für HOBO Datenlogger, Wetterstationen, Sensoren, Software und ...
PDF
STKI Israel Market Study 2025 version august
PPTX
Custom Battery Pack Design Considerations for Performance and Safety
PPT
Geologic Time for studying geology for geologist
PDF
OpenACC and Open Hackathons Monthly Highlights July 2025
DOCX
search engine optimization ppt fir known well about this
PPTX
AI IN MARKETING- PRESENTED BY ANWAR KABIR 1st June 2025.pptx
PDF
ENT215_Completing-a-large-scale-migration-and-modernization-with-AWS.pdf
PDF
Taming the Chaos: How to Turn Unstructured Data into Decisions
PPTX
The various Industrial Revolutions .pptx
PDF
UiPath Agentic Automation session 1: RPA to Agents
PDF
Enhancing emotion recognition model for a student engagement use case through...
A Late Bloomer's Guide to GenAI: Ethics, Bias, and Effective Prompting - Boha...
How ambidextrous entrepreneurial leaders react to the artificial intelligence...
Hindi spoken digit analysis for native and non-native speakers
Architecture types and enterprise applications.pdf
sustainability-14-14877-v2.pddhzftheheeeee
MicrosoftCybserSecurityReferenceArchitecture-April-2025.pptx
From MVP to Full-Scale Product A Startup’s Software Journey.pdf
2018-HIPAA-Renewal-Training for executives
Produktkatalog für HOBO Datenlogger, Wetterstationen, Sensoren, Software und ...
STKI Israel Market Study 2025 version august
Custom Battery Pack Design Considerations for Performance and Safety
Geologic Time for studying geology for geologist
OpenACC and Open Hackathons Monthly Highlights July 2025
search engine optimization ppt fir known well about this
AI IN MARKETING- PRESENTED BY ANWAR KABIR 1st June 2025.pptx
ENT215_Completing-a-large-scale-migration-and-modernization-with-AWS.pdf
Taming the Chaos: How to Turn Unstructured Data into Decisions
The various Industrial Revolutions .pptx
UiPath Agentic Automation session 1: RPA to Agents
Enhancing emotion recognition model for a student engagement use case through...

Interledger Protocol Stack Deep Dive @ Boston Interledger Meetup