Persist TIMMY_NOSTR_NSEC — keygen script + operator setup docs #48
Reference in New Issue
Block a user
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?
Background
Task #29 implements TimmyIdentityService which generates an ephemeral secp256k1 Nostr key at boot if
TIMMY_NOSTR_NSECis not set. Without persisting this key, Timmy loses his identity on every restart.Acceptance Criteria
scripts/generate-timmy-nsec.shscript outputs a freshnsec1...key + correspondingnpub1...and prints theexport TIMMY_NOSTR_NSEC=...line to copy-pasteOPERATOR.mdsection added explaining: "Run script once, set env var in deployment environment, Timmy's identity is now permanent"TIMMY_NOSTR_NSECis setRelevant files
artifacts/api-server/src/lib/timmy-identity.tsscripts/generate-timmy-nsec.sh(to create)PR #58 created.
What was done:
scripts/generate-timmy-nsec.sh+scripts/src/generate-timmy-nsec.ts— generates nsec/npub keypair and prints export lineOPERATOR.md— setup guide covering Replit Secrets, VPS .env, and local devreplit.md— addedTIMMY_NOSTR_NSECto required secrets tabletimmy-identity.ts— no changes neededAll four acceptance criteria addressed.