From e18a74b936e43aeb7f74df433d88f294f9bcc877 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Wed, 26 Aug 2026 14:16:41 -0700 Subject: The app arrives in movements: real ESM chunks split the bundle (entry 333KB, shared chunks alongside, 61KB of gifts/NWC/hats deferred past first paint into slots that keep their hook seniority), the lazy scripts wear IIFE coats so their names can't collide with the page's — which is what silently broke the remote-signer button — nip98 moves out of the login module so minimal builds stop hauling backup relays, and the smoke test learns the front door's new steps while the regtest stack rises from its IBD nap MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Fable 5 Claude-Session: https://claude.ai/code/session_019eA8JRq9Wr7z2fRQk99HLi --- src/nostr-login.js | 8 -------- 1 file changed, 8 deletions(-) (limited to 'src/nostr-login.js') diff --git a/src/nostr-login.js b/src/nostr-login.js index 6958da0..b032c73 100644 --- a/src/nostr-login.js +++ b/src/nostr-login.js @@ -270,11 +270,3 @@ export async function walletForSigner(signer) { // request with a nostr key. `u` and `method` bind the signature to this exact // request and `payload` to its body, so a captured header can't be replayed // against a different endpoint or a tampered body. -export async function nip98Header(signer, url, method, bodyText) { - const tags = [['u', url], ['method', method.toUpperCase()]]; - if (bodyText) tags.push(['payload', hex.encode(sha256(new TextEncoder().encode(bodyText)))]); - const evt = await signer.signEvent({ - kind: 27235, created_at: Math.floor(Date.now() / 1000), tags, content: '', - }); - return 'Nostr ' + btoa(JSON.stringify(evt)); -} -- cgit v1.2.3