-
Notifications
You must be signed in to change notification settings - Fork 308
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
SEP-6: Add support for asynchronous deposit instructions #1379
Conversation
09eb55a
to
16212a2
Compare
16212a2
to
823fab8
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be the last batch of comments!
I appreciate the thorough review @JakeUrban! I believe I've addressed your comments now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, I think this is ready! Can we move forward with the implementation while we let this bake for a bit and allow the community to comment if they have feedback? I've let MyKobo and Beans know.
Co-authored-by: Jake Urban <[email protected]>
Good improvement. |
Great update! Enhances UX significantly! |
### Abstract Today, wallets are required to send a user's financial account information mainly through the `dest` and `dest_extra` request parameters when requesting a withdrawal. This is a security risk as web servers often log their GET requests which will include personally identifiable information such as a user's bank account number. The standard should define an alternative method for allowing users to provide their information. ### Proposal This PR proposes excluding the `fields` from the withdrawal types returned by the `GET /info` endpoint as a means to collect these fields through an alternative flow. This will force the anchor to put the transaction into the `pending_customer_info_update` status. The wallet will use then SEP-12 `PUT /customer` to provide the missing financial account information. This allows us to deprecate the `dest` and `dest_extra` request parameters by making them optional when a withdraw type's `fields` object is missing. ### Backwards Compatibility This change is backward compatible as wallets will continue sending financial account information through the request parameters if the anchors define them as part of the `GET /info` response. This depends on some changes from #1379.
Proposal
This adds new fields to the
transaction
object to facilitate Anchors providing deposit instructions outside ofGET /deposit
response.Backwards Compatability
This change is backward compatible as it does not introduce new required fields if Anchors can provide deposit instructions in the
GET /deposit
response.Resolves #1372, #1368.