forked from interledger/rfcs
-
Notifications
You must be signed in to change notification settings - Fork 0
Mj loopback transfer #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
lokera666
wants to merge
255
commits into
Ecoblockchain:master
Choose a base branch
from
interledger:mj-loopback-transfer
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Mj loopback transfer #1
lokera666
wants to merge
255
commits into
Ecoblockchain:master
from
interledger:mj-loopback-transfer
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Updates to Introduction Dropped FeatureBitmask for Subtypes Better explanations of fields Describe compound vs simple types Fixes based on comments from @nbougalis Switch to BIT STRING for subtypes Changed from maxFulfillmentLength to cost functions Added example to clarify BITSTRING encoding Fixes #120 Makes #106 redundant and resolves #115 as we have dropped Features Addresses #92 and #87 Fixes #86 Fixes #144
Update 0001-interledger-architecture.md
Discussed with @justmoon offline
docs(0004): make plugin.get{Prefix,Account,Info} synchronous
Change the ledger plugin API to use from/to fields instead of the ambiguous `account` field. To illustrate how the previous API was confusing: In plugin-bells, we actually populated the `account` field for incoming transfers with the sending account, while we populated the `account` field for incoming messages with the receiving (`to`) account. Providing both sending and receiving accounts for both transfers and messages allows us to more closely mirror the underlying API and reduce the potential for confusion.
RFC-4: Replace account with from/to
As stated in the Twelfth Networking Truth (RFC 1925): In protocol design, perfection has been reached not when there is nothing left to add, but when there is nothing left to take away. Change the fulfillment format to a String (which matches what the reference implementation actually uses.) Since we only support one condition type, an abstraction layer like crypto-conditions doesn't make sense in this API. Note that this RFC only applies to the JavaScript implementation, other implementors are welcome to choose a different API.
feat: switch to simple conditions
ILP Addresses (RFC0015)
fix: fix fulfillment typo
feat: add RejectionMessage to LedgerPlugin
The following two functions are not the same, the spec should be specific about that:
```
function thrower() {
if (problem) {
throw new Error('oops');
}
return Promise.resolve('success');
}
function rejecter() {
if (problem) {
return Promise.reject(new Error('oops'));
}
return Promise.resolve('success');
}
```
Differentiate between throwing and rejecting
Draft 1 attempted to have PSKv2 handle one-off payments, streaming payments, and chunked payments. However, @sharafian made good points that some of the features in the protocol and implementation of PSKv2 were only useful for chunked payments and not for streaming. When streaming payments, it makes more sense to have a completely stateless receiver that has a single callback to handle all incoming chunks, and applications will want more direct control over how they determine whether to accept or reject individual packets. Also, we wanted to [support application data](interledger-deprecated/ilp-protocol-psk2#5) but PSKv2 did not go all the way to implementing segmentation and reassembly like TCP. This change simplifies the protocol and includes only the features necessary for 1) generating the conditions and fulfillments from a shared secret 2) encrypting and authenticating request and response data and 3) providing the sender a way to indicate to the receiver the minimum amount they should get to accept a given packet.
because they are covered by the junk data
Initial draft of payment pointers spec
feat: allow empty auth_username if auth_token is a bearer token fix #372 (comment) fix #372 (comment)
and fix other issues identified by @mDuo13, @michielbdejong, @sentientwaffle, and @wilsonianb
based on review comments from @sharafian, @adrianhopebailie, and @wilsonianb
based on feedback from @mDuo13
based on feedback from @dora-gt
* docs(0023): unconditional transfer type for ilp4 * bump document version
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Best practice