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 proofs #599

Merged
merged 8 commits into from
May 1, 2024
Merged

feat: consent proofs #599

merged 8 commits into from
May 1, 2024

Conversation

alexrisch
Copy link
Contributor

Updated Protos
Added ability to add consent proofs to conversations Updated types
Added consentProof on Invitiation class

Updated Protos
Added ability to add consent proofs to conversations
Updated types
Added consentProof on Invitiation class
Copy link

cloudflare-workers-and-pages bot commented Apr 23, 2024

Deploying xmtp-js-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: a4959af
Status: ✅  Deploy successful!
Preview URL: https://79126777.xmtp-js.pages.dev
Branch Preview URL: https://ar-consent-proofs.xmtp-js.pages.dev

View logs

Verified consent proofs
Added tests for consent proofs
@alexrisch alexrisch marked this pull request as ready for review April 24, 2024 00:30
@alexrisch alexrisch requested a review from a team April 24, 2024 00:31
Verified consent proofs
Added tests for consent proofs
Verified consent proofs
Added tests for consent proofs
Alex Risch added 2 commits April 30, 2024 16:13
Updated consent proof handling to be on the updateV2Conversations method instead
Updated consent list to handle consent proofs
src/Contacts.ts Outdated
conversations.forEach((conversation) => {
if (
conversation.consentProof &&
this.consentState(conversation.peerAddress) === 'unknown'
Copy link
Contributor

Choose a reason for hiding this comment

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

This looks good. It'll always have the current value from the network because this.consentList.load(...) mutates this.consentList as it goes, right?

test/Contacts.test.ts Outdated Show resolved Hide resolved
src/Contacts.ts Outdated Show resolved Hide resolved
src/Contacts.ts Show resolved Hide resolved
Updated to validate and approve as array
Added timestamp validation
src/Contacts.ts Show resolved Hide resolved
src/Contacts.ts Outdated Show resolved Hide resolved
src/Contacts.ts Outdated Show resolved Hide resolved
Validate signatures synchronously
Moved to reduce
Removed handle Consent proof method
@alexrisch alexrisch merged commit 56d3cee into main May 1, 2024
9 checks passed
@alexrisch alexrisch deleted the ar/consent-proofs branch May 1, 2024 22:13
Copy link
Contributor

github-actions bot commented May 1, 2024

🎉 This PR is included in version 11.6.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants