Skip to content

feat: carry all published relay addresses in securejoin links - #8591

Open
j-g00da wants to merge 1 commit into
mainfrom
j-g00da/qr-r-param
Open

feat: carry all published relay addresses in securejoin links#8591
j-g00da wants to merge 1 commit into
mainfrom
j-g00da/qr-r-param

Conversation

@j-g00da

@j-g00da j-g00da commented Aug 14, 2026

Copy link
Copy Markdown
Contributor

Closes: #8590

@j-g00da
j-g00da force-pushed the j-g00da/qr-r-param branch from 2027cd2 to e2d64f9 Compare August 14, 2026 16:51
Carry all published "secondary" addresses in `r` param of the securejoin URL.

Closes: #8590
Signed-off-by: Jagoda 艢l膮zak <jslazak@jslazak.com>
@j-g00da
j-g00da force-pushed the j-g00da/qr-r-param branch from e2d64f9 to da64e59 Compare August 17, 2026 18:36
@j-g00da j-g00da changed the title wip: feat: carry all published relay addresses in securejoin links feat: carry all published relay addresses in securejoin links Aug 17, 2026
@j-g00da
j-g00da marked this pull request as ready for review August 17, 2026 18:48
@j-g00da
j-g00da requested review from Hocuri and link2xt August 17, 2026 18:48
assert msg2.chat == alice.create_chat(bob)


def test_qr_includes_all_published_transports(acf) -> None:

@link2xt link2xt Aug 17, 2026

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

For a test that is not directly testing the implementation by parsing the URL interesting property is that if Alice sets up a profile, adds another relay, make a QR code and then removes the first relay, Bob can still scan the QR code and reach Alice.

EDIT: the code to parse the relays from the QR code is actually missing, so this will fail. This is the main part SecureJoin vc-request-pubkey message (no need to do anything about vc-request from the legacy protocol if it is additional effort) should be sent to all addresses at once.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

As for cross-core test mentioned in #8590, there are existing tests for securejoin, but still possible to make a test copy-pasted from the first half of test_qr_setup_contact with Alice adding multiple relays (this time without removing the first relay) and testing that remote Bob (using old core) can scan the QR code and get in contact with Alice, just to make sure Bob can parse the QR code.

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.

carry all published relay addresses in securejoin links

2 participants