Skip to content

feat: allow registration of raw shared secrets - #23708

Merged
nchamo merged 1 commit into
merge-train/fairies-v5from
nico/allow-shared-secret-registration
Jun 22, 2026
Merged

feat: allow registration of raw shared secrets#23708
nchamo merged 1 commit into
merge-train/fairies-v5from
nico/allow-shared-secret-registration

Conversation

@nventuro

Copy link
Copy Markdown
Contributor

This provides a second source for log tags as part of message discovery: instead of just doing ecdh between a recipient and an account added via pxe.registerSender(), we can now store a tagging shared secret in pxe directly. Tags are then derived from these in the same way as ecdh-based tags, but these have the interesting property of not requiring knowledge of the sender's address. Combined with the upcoming non-interactive handshake registry, these are a means through which we can have non-interactive unconstrained onchain delivery.

I renamed the AddressStore to TaggingSecretSourcesStore, since it is what it now is. The diff is a bit busy because of said rename, which ends up showing up in lots of files.

There are not many interesting design decisions here. Notably pxe gets new methods for adding these secrets (which this PR doesn't yet wire anywhere), and we break backwards db compatibility due to the store renaming (but we don't care about that right now).

@nventuro
nventuro requested review from Thunkar and nchamo May 29, 2026 17:07

@nchamo nchamo left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

As part of the constrained delivery work, we want to support interactive handshakes. When two users perform this type of handshake, the recipient is meant to store that secret on their PXE, so that they listen for future messages

I think it makes sense to first discuss how we'll support interactive handshakes, because we could merge registerSharedSecret with that workflow

@nventuro

Copy link
Copy Markdown
Contributor Author

Yeah agreed. Probably the only thing we'll end up merging from this are the changes to the store and to the derivation functions, not the PXE entrypoint.

@nchamo
nchamo changed the base branch from merge-train/fairies to merge-train/fairies-v5 June 22, 2026 18:04
@nchamo
nchamo force-pushed the nico/allow-shared-secret-registration branch from 2c10771 to 0326051 Compare June 22, 2026 18:44
@nchamo
nchamo self-requested a review June 22, 2026 18:48

@nchamo nchamo left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Great work!

@nchamo
nchamo merged commit b844493 into merge-train/fairies-v5 Jun 22, 2026
12 checks passed
@nchamo
nchamo deleted the nico/allow-shared-secret-registration branch June 22, 2026 20:18
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