interledger / rfcs

Specifications for Interledger and related protocols
https://interledger.org
Other
453 stars 111 forks source link

[CLP]: Expand CLP to Apply to Non-Trustline Peering? #293

Closed sappenin closed 6 years ago

sappenin commented 7 years ago

PR #291 says:

CLP is a ledger protocol for bilateral liquidity relationships

If we were to add a to and from address into the CLP prepareTransferRequest payload, couldn't we also use this same protocol/flow/interaction model with non-trustline ledgers? For example, a ledger-abstraction that supports multiple accounts, like 5BL or something similar.

michielbdejong commented 7 years ago

I don't think we should still consider adding them to the BTP packets anymore, now that BTP/1.0 is already frozen without them? You can add 'to' and 'from' in protocolData, that's what BtpFrog does.

justmoon commented 6 years ago

Post-enlightenment we consider ledgers to be a type of connector. As such, they should derive the to from the ILP destination. Sure, some ledgers aren't going to be aware of ILP, but if they're implementing BTP clearly they've heard of us. So then they should just parse the destination.

The routing logic for such a node could be very simple: If the ILP address starts with the ledger prefix, forward it to that local account. If not, forward it to a connector. (Similar to the connectors field in 5BL.)