From 0427a1b02c21fd5fa9f5df8a86e435dbb84a8451 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Wed, 26 Aug 2026 12:06:00 -0700 Subject: The page arrives light and paints at once: index.html shrinks to 46KB with a static boot shell baked in — brand row, and the profile frame when the path names one — while the 789KB bundle moves to a content-addressed app-.js the browser keeps (a repeat visit re-downloads kilobytes, not the app); the nostr-tools barrel import goes subpath, and the NIP-46 signer client ships as its own lazy file fetched on first bunker login 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/concord.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/concord.js') diff --git a/src/concord.js b/src/concord.js index 9f6803d..74c1313 100644 --- a/src/concord.js +++ b/src/concord.js @@ -9,7 +9,9 @@ import { hkdf } from "@noble/hashes/hkdf"; import { schnorr, secp256k1 } from "@noble/curves/secp256k1"; import { bytesToHex, hexToBytes } from "@noble/hashes/utils"; import { finalizeEvent, generateSecretKey, getPublicKey, getEventHash, verifyEvent } from "nostr-tools/pure"; -import { nip44 } from "nostr-tools"; +// subpath, NOT the "nostr-tools" barrel — the barrel drags every NIP (and a +// second copy of the noble crypto stack) into the bundle for one import +import * as nip44 from "nostr-tools/nip44"; import * as nip19 from "nostr-tools/nip19"; import { base64urlnopad } from "@scure/base"; -- cgit v1.2.3