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

feat: Consent Proof Payload #317

Merged
merged 8 commits into from
Apr 24, 2024
Merged

feat: Consent Proof Payload #317

merged 8 commits into from
Apr 24, 2024

Conversation

alexrisch
Copy link
Contributor

@alexrisch alexrisch commented Apr 18, 2024

Introduction 📟

Updated invitiation protos
Added handling for consent proof signature on conversation creation

  • Update Proto
  • Send signature in invitation
  • Verify signature when loading invitations
  • Approve contact

Purpose ℹ️

XIP
Tracking issue: #309

Scope 🔭

Alex Risch added 2 commits April 17, 2024 19:17
Updated invitiation protos
Added handling for consent proof signature on conversation creation
Copy link
Contributor

@nplasterer nplasterer left a comment

Choose a reason for hiding this comment

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

I think this is looking really good!

Sources/XMTPiOS/Client.swift Outdated Show resolved Hide resolved
}
return nil
case .group(_):
return nil
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there a world where this would be valid for groups as well. 🤔 Like you subscribe to a group?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Maybe, but not at the current moment, I will add it to the group tracking issue

Sources/XMTPiOS/ConversationV2.swift Outdated Show resolved Hide resolved
Alex Risch added 3 commits April 19, 2024 15:42
Added signature verification
Cleaned up types
Added decoding/encoding for ConsentProofPayload and version
@alexrisch alexrisch marked this pull request as ready for review April 19, 2024 23:49
@alexrisch alexrisch requested a review from a team as a code owner April 19, 2024 23:49
@alexrisch alexrisch merged commit c4dc517 into main Apr 24, 2024
2 checks passed
@alexrisch alexrisch deleted the ar/consent-proof branch April 24, 2024 20:43
cameronvoell added a commit that referenced this pull request Apr 25, 2024
cameronvoell added a commit that referenced this pull request Apr 25, 2024
This reverts commit c4dc517.

Co-authored-by: cameronvoell <[email protected]>
alexrisch added a commit that referenced this pull request Apr 26, 2024
alexrisch added a commit that referenced this pull request Apr 26, 2024
alexrisch added a commit that referenced this pull request Apr 29, 2024
* Revert "Revert "feat: Consent Proof Payload (#317)" (#328)"

This reverts commit 7fcd96d.

* feat: Consent Proofs

Fixed handling for empty consent proofs

---------

Co-authored-by: Alex Risch <[email protected]>
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.

2 participants