This repository has been archived on 2026-03-24. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
token-gated-economy/scripts/generate-timmy-nsec.sh
2026-03-23 14:52:49 +00:00

19 lines
635 B
Bash
Executable File

#!/usr/bin/env bash
# =============================================================================
# Generate a fresh Nostr keypair for Timmy's persistent identity.
#
# Usage:
# bash scripts/generate-timmy-nsec.sh
#
# Requires: pnpm, Node.js, nostr-tools (installed via pnpm install)
#
# Output: nsec1... private key, npub1... public key, and an export line
# to copy-paste into your deployment environment.
# =============================================================================
set -euo pipefail
REPO_ROOT="$(cd "$(dirname "$0")/.." && pwd)"
cd "$REPO_ROOT"
exec pnpm --filter @workspace/scripts run generate-timmy-nsec