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

[Sign] proposal public for uniformity #577

Closed
wants to merge 12 commits into from

Conversation

kirill09
Copy link

@kirill09 kirill09 commented Nov 9, 2022

Description

in the kotlin version of the sdk proposal is public. For consistency, the swift proposal is changed to public

Resolves # (issue)

How Has This Been Tested?

Due Dilligence

  • Breaking change
  • Requires a documentation update

@llbartekll
Copy link
Contributor

hey @kirill09 Any particular reason you need this model public?
take look at Session.Proposal object it's a public version of the session proposal

@kirill09
Copy link
Author

Hi @llbartekll Session.Proposal is public but the proposal parameter is hidden. The public proposal is needed to get theProposalKey, protocol, data,

@llbartekll
Copy link
Contributor

Hi @llbartekll Session.Proposal is public but the proposal parameter is hidden. The public proposal is needed to get theProposalKey, protocol, data,

but you don't need protocol and data and for convenience you can reference Proposal by id

@kirill09
Copy link
Author

Hi @llbartekll Session.Proposal is public but the proposal parameter is hidden. The public proposal is needed to get theProposalKey, protocol, data,

but you don't need protocol and data and for convenience you can reference Proposal by id

I analyzed again what we use. We need publicKey for rejectSession, approveSession.

@llbartekll
Copy link
Contributor

I analyzed again what we use. We need publicKey for rejectSession, approveSession.

use id from Session.Proposal when calling
approve(proposalId: String,...)

you can take a look at our example wallet, all works there

@kirill09
Copy link
Author

I analyzed again what we use. We need publicKey for rejectSession, approveSession.

use id from Session.Proposal when calling approve(proposalId: String,...)

you can take a look at our example wallet, all works there

Hi. This is a great solution but for android there is no Session.Proposal it is not very convenient to use different implementations with a single code base like react native or flutter

@llbartekll
Copy link
Contributor

Hi. This is a great solution but for android there is no Session.Proposal it is not very convenient to use different implementations with a single code base like react native or flutter

but still making this property public does not make a lot of difference as non of the client's public methods use it.
do you think that for your needs you can couple somehow Session.Proposal with android's session proposal?

@flypaper0 flypaper0 changed the base branch from main to develop November 28, 2022 08:04
@llbartekll llbartekll closed this Nov 30, 2022
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.

None yet

3 participants