diff --git a/script/generate-private-key.js b/script/generate-private-key.js new file mode 100644 index 0000000..9c5d777 --- /dev/null +++ b/script/generate-private-key.js @@ -0,0 +1,8 @@ +const nacl = require("tweetnacl"); + +const keypair = nacl.sign.keyPair(); +const privKey = Buffer.from(keypair.secretKey).toString("base64"); +const pubKey = Buffer.from(keypair.publicKey).toString("base64"); + +console.log(`Private key: ${privKey}`); +console.log(`Public key: ${pubKey}`);