SlideShare une entreprise Scribd logo
1  sur  77
Télécharger pour lire hors ligne
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)
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

Contenu connexe

Tendances

Topic6 Basic Web Services Technology
Topic6 Basic Web Services TechnologyTopic6 Basic Web Services Technology
Topic6 Basic Web Services Technology
sanjoysanyal
 
Flow questions and answers
Flow questions and answersFlow questions and answers
Flow questions and answers
ProQSys
 
Www ccnav5 net_ccna_1_chapter_3_v5_0_exam_answers_2014
Www ccnav5 net_ccna_1_chapter_3_v5_0_exam_answers_2014Www ccnav5 net_ccna_1_chapter_3_v5_0_exam_answers_2014
Www ccnav5 net_ccna_1_chapter_3_v5_0_exam_answers_2014
Đồng Quốc Vương
 

Tendances (19)

ILP Lightning Talk at the MIT Blockchain Workshop
ILP Lightning Talk at the MIT Blockchain WorkshopILP Lightning Talk at the MIT Blockchain Workshop
ILP Lightning Talk at the MIT Blockchain Workshop
 
How do Things talk? IoT Application Protocols 101
How do Things talk? IoT Application Protocols 101How do Things talk? IoT Application Protocols 101
How do Things talk? IoT Application Protocols 101
 
Week10
Week10Week10
Week10
 
p2p
p2pp2p
p2p
 
Sharing and Controlling the IoT
Sharing and Controlling the IoTSharing and Controlling the IoT
Sharing and Controlling the IoT
 
Protocols for IoT
Protocols for IoTProtocols for IoT
Protocols for IoT
 
HTTPS presentation at Port80 Sydney meetup March 2016
HTTPS presentation at Port80 Sydney meetup March 2016HTTPS presentation at Port80 Sydney meetup March 2016
HTTPS presentation at Port80 Sydney meetup March 2016
 
Can the e-Mobility Charging Infrastructure be a Blueprint for other IoT Proje...
Can the e-Mobility Charging Infrastructure be a Blueprint for other IoT Proje...Can the e-Mobility Charging Infrastructure be a Blueprint for other IoT Proje...
Can the e-Mobility Charging Infrastructure be a Blueprint for other IoT Proje...
 
HTTP & HTTPS
HTTP & HTTPSHTTP & HTTPS
HTTP & HTTPS
 
Topic6 Basic Web Services Technology
Topic6 Basic Web Services TechnologyTopic6 Basic Web Services Technology
Topic6 Basic Web Services Technology
 
Networking infrastructure
Networking infrastructureNetworking infrastructure
Networking infrastructure
 
STUN protocol
STUN protocolSTUN protocol
STUN protocol
 
Security and Privacy in the current e-mobility charging infrastructure
Security and Privacy in the current e-mobility charging infrastructureSecurity and Privacy in the current e-mobility charging infrastructure
Security and Privacy in the current e-mobility charging infrastructure
 
Hyper Text Transfer Protocol
Hyper Text Transfer ProtocolHyper Text Transfer Protocol
Hyper Text Transfer Protocol
 
Client server architecture
Client server architectureClient server architecture
Client server architecture
 
Flow questions and answers
Flow questions and answersFlow questions and answers
Flow questions and answers
 
Networking protocols
Networking protocolsNetworking protocols
Networking protocols
 
Mobile IP 1
Mobile IP 1Mobile IP 1
Mobile IP 1
 
Www ccnav5 net_ccna_1_chapter_3_v5_0_exam_answers_2014
Www ccnav5 net_ccna_1_chapter_3_v5_0_exam_answers_2014Www ccnav5 net_ccna_1_chapter_3_v5_0_exam_answers_2014
Www ccnav5 net_ccna_1_chapter_3_v5_0_exam_answers_2014
 

Similaire à Interledger Protocol Stack Deep Dive @ Boston Interledger Meetup

Web technologies: recap on TCP-IP
Web technologies: recap on TCP-IPWeb technologies: recap on TCP-IP
Web technologies: recap on TCP-IP
Piero Fraternali
 
Snabb Switch: Riding the HPC wave to simpler, better network appliances (FOSD...
Snabb Switch: Riding the HPC wave to simpler, better network appliances (FOSD...Snabb Switch: Riding the HPC wave to simpler, better network appliances (FOSD...
Snabb Switch: Riding the HPC wave to simpler, better network appliances (FOSD...
Igalia
 

Similaire à Interledger Protocol Stack Deep Dive @ Boston Interledger Meetup (20)

Module 1 slides
Module 1 slidesModule 1 slides
Module 1 slides
 
Lesson4.9 d u4l3 hierarchy of open protocols
Lesson4.9 d u4l3 hierarchy of open protocolsLesson4.9 d u4l3 hierarchy of open protocols
Lesson4.9 d u4l3 hierarchy of open protocols
 
Protocol and Integration Challenges for SDN
Protocol and Integration Challenges for SDNProtocol and Integration Challenges for SDN
Protocol and Integration Challenges for SDN
 
Web technologies: recap on TCP-IP
Web technologies: recap on TCP-IPWeb technologies: recap on TCP-IP
Web technologies: recap on TCP-IP
 
Internetworking
InternetworkingInternetworking
Internetworking
 
Computer network coe351- part2- final
Computer network coe351- part2- finalComputer network coe351- part2- final
Computer network coe351- part2- final
 
Web Services for the Internet of Things
Web Services for the Internet of ThingsWeb Services for the Internet of Things
Web Services for the Internet of Things
 
02 coms 525 tcpip - introduction to tcpip
02   coms 525 tcpip -  introduction to tcpip02   coms 525 tcpip -  introduction to tcpip
02 coms 525 tcpip - introduction to tcpip
 
Introduction to socket programming nbv
Introduction to socket programming nbvIntroduction to socket programming nbv
Introduction to socket programming nbv
 
Small office Home office , network setup in details
Small office Home office , network setup in detailsSmall office Home office , network setup in details
Small office Home office , network setup in details
 
Innovation is back in the transport and network layers
Innovation is back in the transport and network layersInnovation is back in the transport and network layers
Innovation is back in the transport and network layers
 
Internet Protocol(Samyak Jain 25014).pptx
Internet Protocol(Samyak Jain 25014).pptxInternet Protocol(Samyak Jain 25014).pptx
Internet Protocol(Samyak Jain 25014).pptx
 
Snabb Switch: Riding the HPC wave to simpler, better network appliances (FOSD...
Snabb Switch: Riding the HPC wave to simpler, better network appliances (FOSD...Snabb Switch: Riding the HPC wave to simpler, better network appliances (FOSD...
Snabb Switch: Riding the HPC wave to simpler, better network appliances (FOSD...
 
Tcp/Ip Model
Tcp/Ip ModelTcp/Ip Model
Tcp/Ip Model
 
Presentation for IoT workshop at Sinhagad University (Feb 4, 2016) - 1/2
Presentation for IoT workshop at Sinhagad University (Feb 4, 2016) - 1/2Presentation for IoT workshop at Sinhagad University (Feb 4, 2016) - 1/2
Presentation for IoT workshop at Sinhagad University (Feb 4, 2016) - 1/2
 
Peer-to-peer Internet telephony
Peer-to-peer Internet telephonyPeer-to-peer Internet telephony
Peer-to-peer Internet telephony
 
L2tp1
L2tp1L2tp1
L2tp1
 
Future Internet protocols
Future Internet protocolsFuture Internet protocols
Future Internet protocols
 
SOHO Network Setup Tutorial
SOHO Network Setup Tutorial SOHO Network Setup Tutorial
SOHO Network Setup Tutorial
 
Internet protocol (ip) ppt
Internet protocol (ip) pptInternet protocol (ip) ppt
Internet protocol (ip) ppt
 

Plus de Interledger

Plus de Interledger (8)

Interledger Routing
Interledger RoutingInterledger Routing
Interledger Routing
 
Web Payments IG // TPAC 2016
Web Payments IG // TPAC 2016Web Payments IG // TPAC 2016
Web Payments IG // TPAC 2016
 
How ILP Works
How ILP WorksHow ILP Works
How ILP Works
 
Weaving the ILP Fabric into Bigchain DB
Weaving the ILP Fabric into Bigchain DBWeaving the ILP Fabric into Bigchain DB
Weaving the ILP Fabric into Bigchain DB
 
Interledger Overview
Interledger OverviewInterledger Overview
Interledger Overview
 
ILP Workshop Presentation 2 25
ILP Workshop Presentation 2 25ILP Workshop Presentation 2 25
ILP Workshop Presentation 2 25
 
ILP Workshop: Cryptoconditions
ILP Workshop: CryptoconditionsILP Workshop: Cryptoconditions
ILP Workshop: Cryptoconditions
 
ILP Webinar 10/2015
ILP Webinar 10/2015ILP Webinar 10/2015
ILP Webinar 10/2015
 

Dernier

IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
Enterprise Knowledge
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
giselly40
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
vu2urc
 

Dernier (20)

Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdf
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 

Interledger Protocol Stack Deep Dive @ Boston Interledger Meetup