From 15758f442acb7b49607ba29583497cfb7c86abb1 Mon Sep 17 00:00:00 2001
From: Derrick Hammer <derrick@derrickhammer.com>
Date: Thu, 28 Dec 2023 01:40:20 -0500
Subject: [PATCH] chore: add missing script

---
 scripts/generate-site-pubkey.ts | 12 ++++++++++++
 1 file changed, 12 insertions(+)
 create mode 100644 scripts/generate-site-pubkey.ts

diff --git a/scripts/generate-site-pubkey.ts b/scripts/generate-site-pubkey.ts
new file mode 100644
index 0000000..62bf614
--- /dev/null
+++ b/scripts/generate-site-pubkey.ts
@@ -0,0 +1,12 @@
+import { HDKey } from "ed25519-keygen/hdkey";
+import * as bip39 from "@scure/bip39";
+import { wordlist } from "@scure/bip39/wordlists/english";
+
+const BIP44_PATH = "m/44'/1627'/0'/0'/0'";
+
+const mn = bip39.generateMnemonic(wordlist);
+console.log(mn);
+
+const hdkey = HDKey.fromMasterSeed(await bip39.mnemonicToSeed(mn));
+
+console.log(Buffer.from(hdkey.derive(BIP44_PATH).publicKeyRaw).toString("hex"));