feat: add deeplink nostr identity binding flow#1648
Merged
Conversation
add a buzz://nostr-bind entrypoint that validates a scoped one-time challenge, shows a consent dialog, signs the response with the selected nostr identity, and copies the signed event json for the caller. use a buzz-owned custom ephemeral event kind (24243) instead of nip-98. nip-98 is tied to http request authorization and requires u/method semantics, while this flow is an app-to-app identity binding proof with challenge_id, nonce, audience, action, protocol, origin, and expires_at tags. keep the ipc boundary narrow: tauri parses and validates deeplink inputs, frontend only handles the typed payload, and signing stays behind a profile feature helper. restrict v1 to https origins, clipboard return mode, and the buzz-nostr-identity protocol so unsupported callbacks or protocol variants fail before signing.
f586254 to
9b67c0a
Compare
Co-authored-by: npub1703xjpnw9z6ngtz632j4c7x82ve3mx4wg3wqgegjktllz8syepes0hu37e <f3e269066e28b5342c5a8aa55c78c753331d9aae445c046512b2fff11e04c873@sprout-oss.stage.blox.sqprod.co> Signed-off-by: npub1703xjpnw9z6ngtz632j4c7x82ve3mx4wg3wqgegjktllz8syepes0hu37e <f3e269066e28b5342c5a8aa55c78c753331d9aae445c046512b2fff11e04c873@sprout-oss.stage.blox.sqprod.co>
baxen
approved these changes
Jul 8, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
summary
adds a
buzz://nostr-binddeeplink flow for one-time nostr identity binding.24243screenshots
after opening the deeplink:

after agreeing and signing:

test plan
cargo test --manifest-path desktop/src-tauri/Cargo.toml nostr_bindcargo test --manifest-path desktop/src-tauri/Cargo.toml nostr_identitycd desktop && pnpm typecheck