Skip to content

Commit

Permalink
[0ecdsa-generate-key] better naming scheme
Browse files Browse the repository at this point in the history
  • Loading branch information
dmonad committed Mar 15, 2024
1 parent 6b23e5a commit 637fbac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/0ecdsa-generate-keypair.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ const privateJwk = json.stringify(await ecdsa.exportKeyJwk(keypair.privateKey))
const publicJwk = json.stringify(await ecdsa.exportKeyJwk(keypair.publicKey))

console.log(`
${prefix ? prefix.toUpperCase() + '_' : ''}PUBLIC="${publicJwk.replaceAll('"', '\\"')}"
${prefix ? prefix.toUpperCase() + '_' : ''}PRIVATE="${privateJwk.replaceAll('"', '\\"')}"
${prefix ? prefix.toUpperCase() + '_' : ''}PUBLIC_KEY="${publicJwk.replaceAll('"', '\\"')}"
${prefix ? prefix.toUpperCase() + '_' : ''}PRIVATE_KEY="${privateJwk.replaceAll('"', '\\"')}"
`)

0 comments on commit 637fbac

Please sign in to comment.