Remove @nostr-dev-kit/ndk from the daemon entirely (follow-up to #43) #44
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
#43 swapped the relay transport off NDK onto nostr-tools, fixing #41. NDK no longer touches the relay/reconnect path, but it remains in a handful of non-transport daemon helpers. This issue tracks removing
@nostr-dev-kit/ndkfrom the daemon completely.Residual NDK usages (all non-transport)
admin/commands/create_new_key.tsNDKPrivateKeySigner(key generation),NDKEventgenerateSecretKey/getPublicKey/nip19;finalizeEventadmin/commands/create_account.tsNDKPrivateKeySigner,Hexpubkey/NDKUserProfiletypeslib/profile.ts(setupSkeletonProfile)NDK+NDKEvent+NDKPrivateKeySigner(publishes a kind:0 profile)RelayPool+finalizeEventadmin/index.ts(notifyAdminsOfNewConnection)NDK+dmUserfor the one-shot boot DMutils/dm-user.tsto nip04 +finalizeEvent, publish via a short-livedRelayPoolutils/dm-user.tsNDK/NDKEvent/NDKUserkind:4 DMrun.ts(getKeys)new NDKPrivateKeySigner(nsec).user()→ npubgetPublicKey(secretKeyBytes(nsec))+nip19.npubEncodelib/acl/index.tsimport type { NostrEvent, NIP46Method }Eventfrom nostr-tools;NIP46Methodfromnip46/types.tsauthorize.tsimport { Hexpubkey, NDKEvent, NostrEvent }typessrc/client.tsNDKNip46Signer)nostr-toolsnip46 client; not part of the daemonAcceptance
grep -r '@nostr-dev-kit/ndk' src/daemonreturns nothing (CLIsrc/client.tsmay be handled separately).@nostr-dev-kit/ndkdropped frompackage.jsondependencies (or moved to whatever the CLI needs).test:all), daemon bundles, no behavior change to key creation / account creation / boot DM.Lower priority than #43 — none of this is load-bearing for the #41 fix; it's cleanup so the daemon stops carrying NDK + its transitive weight.
Refs: #43, #42, #41.
Done. NDK was removed from the daemon in #45 (
fix/44-remove-ndk) — key-gen,profile.ts, boot DM (dm-user.ts→ nip04 + RelayPool), the NIP-89 announcement,getKeys, and the ACL/type imports all ported to nostr-tools; daemon + main bundles verified 0 NDK refs. The final removal — the standalone CLI ported tosrc/nip46-client.tsand@nostr-dev-kit/ndkdropped frompackage.json+pnpm-lock.yaml— landed in #47.nsecbunkerd now carries zero NDK across transport, daemon, and CLI. Both merged to
devand running on aio-demo since 2026-06-27.Closing as resolved.