index

id: e69bb6a0eccaf6b40ee62395afa84f5adc50608d6b437953199c31015acd0876

id (bech32): note1u6dmdg8vetmtgrhxyw26l2z0ttw9qcydddphj5censcszkkdppmqgwd58f

sig: bb6c81cbcdb4ace351435ced7228c99d0b0296318eefd248ce8f7556142a152bbc00e9160fab97cee4907a9c3bb3beb6f534256fbdcf5164975532b8634f82d6

created_at: 2023-10-06 20:53:49 +0900

created_at (unix time): 1696593229

content:

const decodeResultPrivKey = nip19.decode(readFileSync("./config/nsec.txt", "utf-8").trim());
let privKey = "";
switch (decodeResultPrivKey.type) {
case "nsec":
privKey = decodeResultPrivKey.data;
break;
default:
console.log("Error! Invalid private key.");
process.exit(1);
}

ああ〜そこの let がイライラするンゴねぇ!

JSON