We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c7ae504 commit 8aa7f71Copy full SHA for 8aa7f71
src/protocols/config.js
@@ -25,6 +25,9 @@ export function loadKeyPair() {
25
26
// Save a new keypair to disk
27
export function saveKeyPair(keyPair) {
28
+ // Ensure the hyper directory exists
29
+ fs.ensureDirSync(DEFAULT_HYPER_DIR);
30
+
31
fs.writeJsonSync(KEYPAIR_PATH, {
32
publicKey: keyPair.publicKey.toString("hex"),
33
secretKey: keyPair.secretKey.toString("hex")
0 commit comments