Skip to content

Commit

Permalink
fix ecdsa key generation export
Browse files Browse the repository at this point in the history
  • Loading branch information
dmonad committed Mar 17, 2024
1 parent 1ada1af commit cb6fe9f
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_KEY="${publicJwk.replaceAll('"', '\\"')}"
${prefix ? prefix.toUpperCase() + '_' : ''}PRIVATE_KEY="${privateJwk.replaceAll('"', '\\"')}"
${prefix ? prefix.toUpperCase() + '_' : ''}PUBLIC_KEY=${publicJwk}
${prefix ? prefix.toUpperCase() + '_' : ''}PRIVATE_KEY=${privateJwk}
`)

0 comments on commit cb6fe9f

Please sign in to comment.