Proposal: Interledger RPC (instead of LLL) #260
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
slightly different take on #251 and #256
based on conversations with @michielbdejong, @sharafian, @justmoon
By separating the transfer contents from whether they are part of a
bilateral (e.g. trustline) or multilateral (e.g. centralized ledger)
relationship, the transfer protocol becomes much more general and thus
makes sense to include alongside the "core" ILP data formats.
InterledgerRpc
wraps theInterledgerPacket
types in an envelope thatadds a
to
,from
(either or both of which can be set to empty strings ifthey are implied, as is the case in a bilateral connection), a
requestId
to correlate requests and responses, and
sideProtocolData
forextensibility.
Any type of
InterledgerRpc
request can become a paid request byincluding a
Transfer
orConditionalTransfer
in it (which themselves cancontain other
InterledgerPacket
s --InterledgerProtocolPayment
s or anyother type of data that you might want/need to pay for).