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: allow scanning multiple securejoin QR codes in parallel #6534

Merged
merged 1 commit into from
Feb 20, 2025

Conversation

link2xt
Copy link
Collaborator

@link2xt link2xt commented Feb 11, 2025

Fixes #6531

bobstate row is now only created when Bob sends vc-request or vg-request, i.e. when Bob does not have Alice's key yet. It is removed as soon as Bob sends out vc-request-with-auth or vg-request-with-auth. next_step column is now unused, because all bobstate rows correspond to the same step, waiting for *-request-with-auth.

@link2xt link2xt force-pushed the link2xt/securejoin-multiple-bob-states branch 5 times, most recently from b6e1266 to e5da465 Compare February 12, 2025 08:05
@link2xt link2xt marked this pull request as ready for review February 12, 2025 08:14
@link2xt link2xt force-pushed the link2xt/securejoin-multiple-bob-states branch from c4082de to 40718db Compare February 12, 2025 08:18
@link2xt link2xt changed the title Allow multiple bob states feat: allow scanning multiple securejoin QR codes in parallel Feb 12, 2025
@link2xt link2xt force-pushed the link2xt/securejoin-multiple-bob-states branch from 72eb02b to 3285bc5 Compare February 12, 2025 20:00
@link2xt
Copy link
Collaborator Author

link2xt commented Feb 12, 2025

The only problem still not figured out is how to cleanup old bob states. Every time Alice does not reply with *-auth-required message, there will be a bob state remaining until *-auth-required message with expected fingerprint is received. Maybe reuse next_step column for a timestamp.

I created #6536 issue for this, but don't plan to fix it in this PR.

@link2xt link2xt requested review from Hocuri and r10s February 12, 2025 20:14
@link2xt link2xt force-pushed the link2xt/securejoin-multiple-bob-states branch from 3285bc5 to 5fec0bf Compare February 14, 2025 04:48
@link2xt link2xt requested a review from iequidoo February 14, 2025 23:09
@link2xt link2xt force-pushed the link2xt/securejoin-multiple-bob-states branch from 5fec0bf to 7cfa784 Compare February 18, 2025 22:03
Copy link
Collaborator

@Hocuri Hocuri left a comment

Choose a reason for hiding this comment

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

I don't know this code too well, but as far as I can tell, it looks good.

I pushed a commit and posted a suggestion.

@link2xt link2xt force-pushed the link2xt/securejoin-multiple-bob-states branch from 414c91a to f9021ba Compare February 20, 2025 18:17
@link2xt link2xt force-pushed the link2xt/securejoin-multiple-bob-states branch from f9021ba to bbb2673 Compare February 20, 2025 18:26
@link2xt link2xt merged commit bbb2673 into main Feb 20, 2025
29 of 30 checks passed
@link2xt link2xt deleted the link2xt/securejoin-multiple-bob-states branch February 20, 2025 18:57
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.

Allow scanning multiple securejoin QR codes in parallel
3 participants