Skip to content
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

[ANCHOR-555] Add client_domain and client_name to Platform transactions #1210

Merged

Conversation

philipliu
Copy link
Contributor

@philipliu philipliu commented Nov 23, 2023

Description

This adds the client_domain and client_name to the Platform transaction objects

Context

client_name and client_domain are inaccessible to the business servers for SEP-6 and SEP-31 at the moment.

Testing

  • ./gradlew test

Documentation

The AP docs need to be updated with this new field.

Known limitations

N/A

@philipliu philipliu force-pushed the fix/anchor-555-sep-6-client-domain branch from 0687950 to 6bf0327 Compare November 23, 2023 21:37
@philipliu philipliu marked this pull request as ready for review November 23, 2023 22:09
Copy link
Collaborator

@lijamie98 lijamie98 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@philipliu philipliu requested a review from Ifropc November 27, 2023 17:08
*
* @return the client domain.
*/
String getClientDomain();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not a part of the standard, isn't it?
https://github.com/stellar/stellar-protocol/blob/master/ecosystem/sep-0006.md#transaction-history
Why do we want to add client_domain ?
Should we use client_name instead? Derived from the configuration?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not a part of the standard, isn't it?

It will only be visible by querying the Platform API, it is not being mapped on the SEP side. https://github.com/stellar/java-stellar-anchor-sdk/blob/7e42b5ccc7cf82a19a29a84716a6141208b0cb7c/core/src/main/java/org/stellar/anchor/sep6/Sep6TransactionUtils.java#L37-L63

Why do we want to add client_domain ?
Should we use client_name instead? Derived from the configuration?

I can add client_name, but should we keep client_domain as well? In SEP-24 both are included in the interactive JWT.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think in general it's easier to work with client_name including both sounds like a good idea. But won't it require to add client_name to other SEPs too?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But won't it require to add client_name to other SEPs too?

Yeah, this PR already adds the client_domain to SEP-24 and SEP-31. I will do the same for client_name.

@philipliu philipliu changed the title [ANCHOR-555] Add client_domain to SEP-6 transaction [ANCHOR-555] Add client_domain and client_name to Platform transactions Nov 29, 2023
@philipliu philipliu merged commit 5d7326f into stellar:develop Nov 30, 2023
10 checks passed
@philipliu philipliu deleted the fix/anchor-555-sep-6-client-domain branch November 30, 2023 02:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants