motebit 0.6.1 → 0.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +11 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -5315,7 +5315,7 @@ var init_config2 = __esm({
|
|
|
5315
5315
|
"src/config.ts"() {
|
|
5316
5316
|
"use strict";
|
|
5317
5317
|
init_esm_shims();
|
|
5318
|
-
VERSION = true ? "0.6.
|
|
5318
|
+
VERSION = true ? "0.6.2" : "0.0.0-dev";
|
|
5319
5319
|
CONFIG_DIR = path2.join(os.homedir(), ".motebit");
|
|
5320
5320
|
CONFIG_PATH = path2.join(CONFIG_DIR, "config.json");
|
|
5321
5321
|
}
|
|
@@ -29267,7 +29267,7 @@ async function main() {
|
|
|
29267
29267
|
const envPassphrase = process.env["MOTEBIT_PASSPHRASE"];
|
|
29268
29268
|
let passphrase;
|
|
29269
29269
|
if (fullConfig.cli_encrypted_key) {
|
|
29270
|
-
passphrase = envPassphrase ?? await promptPassphrase("Passphrase: ");
|
|
29270
|
+
passphrase = envPassphrase ?? await promptPassphrase(" Passphrase: ");
|
|
29271
29271
|
try {
|
|
29272
29272
|
await decryptPrivateKey(fullConfig.cli_encrypted_key, passphrase);
|
|
29273
29273
|
} catch {
|
|
@@ -29290,9 +29290,16 @@ async function main() {
|
|
|
29290
29290
|
saveFullConfig2(fullConfig);
|
|
29291
29291
|
console.log("Private key encrypted and plaintext removed.");
|
|
29292
29292
|
} else {
|
|
29293
|
-
|
|
29293
|
+
console.log();
|
|
29294
|
+
console.log(` ${dim("\u2500")} ${bold("motebit")}${dim(" is creating your identity")}`);
|
|
29295
|
+
console.log();
|
|
29296
|
+
console.log(` ${dim("Your mote gets its own Ed25519 keypair \u2014 a cryptographic")}`);
|
|
29297
|
+
console.log(` ${dim("identity that signs everything it does. The passphrase")}`);
|
|
29298
|
+
console.log(` ${dim("encrypts this key on disk. You'll need it each session.")}`);
|
|
29299
|
+
console.log();
|
|
29300
|
+
passphrase = envPassphrase ?? await promptPassphrase(" Set a passphrase: ");
|
|
29294
29301
|
if (!passphrase) {
|
|
29295
|
-
console.error("Error: passphrase cannot be empty.");
|
|
29302
|
+
console.error(" Error: passphrase cannot be empty.");
|
|
29296
29303
|
process.exit(1);
|
|
29297
29304
|
}
|
|
29298
29305
|
}
|