feat(examples): Chrome extension standalone stealth scanner#161
Open
jerrygeorge360 wants to merge 1 commit into
Open
feat(examples): Chrome extension standalone stealth scanner#161jerrygeorge360 wants to merge 1 commit into
jerrygeorge360 wants to merge 1 commit into
Conversation
Add examples/stellar-chrome-extension/, an MV3 Chrome extension that scans Stellar in the background service worker and raises a desktop notification on incoming stealth payments — no webapp required. - Service worker drives scanning via chrome.alarms; state in chrome.storage - Popup connects a wallet once (Freighter via demo dApp round-trip, or manual signature), shows status + recent payments, Scan now / Fire test event - Test event runs the real sender-side crypto so scanAnnouncements produces a verifiable match before notifying - Minimal permissions: storage, alarms, notifications, two exact testnet hosts, one exact externally_connectable origin - Wired into examples README + Examples CI matrix
|
@jerrygeorge360 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
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.
Closes #142
What
Adds
examples/stellar-chrome-extension/— a Manifest V3 Chrome extension that scans Stellar in the background service worker and raises a desktop notification on incoming stealth payments. No webapp tab required.Built on
@wraith-protocol/sdk/chains/stellar:deriveStealthKeys,fetchAnnouncementsStream,scanAnnouncements,generateStealthAddress.How it works
src/background/service-worker.ts) is the scanner. MV3 workers are ephemeral, so durable state lives inchrome.storage.localand the scan cadence is driven bychrome.alarms(notsetInterval). Each run scans forward from the last ledger and fires one notification per newly detected payment. Clicking a notification opens the demo dApp's activity view for that address.src/popup/) connects a wallet once (Freighter via a demo-dApp round-trip, or a manual signature paste), shows scan status + recent payments, and has Scan now / Fire test event buttons.Acceptance criteria
chrome://extensionsflowbuildTestAnnouncementruns the real sender-side crypto against the connected wallet's own keys, soscanAnnouncementsproduces a genuine, verifiable match before the notification fires (works fully offline)storage,alarms,notifications, two exact testnet host URLs, and one exactexternally_connectableorigin. No<all_urls>, no wildcard hosts, notabspermission.Notes / follow-ups
stellardeployment./connectpage that doesn't exist yet — documented in the README; the manual signature path is the working fallback.@stellar/stellar-sdkXDR codec chunk is ~988 kB (used only by the live RPC scan, not by worker startup or the test event). Could be trimmed later by calling Soroban RPC directly.examples/README.mdand the Examples CI matrix.