genkey tool
This commit is contained in:
parent
6839e19973
commit
cf85190f44
1 changed files with 6 additions and 0 deletions
6
genkey.js
Normal file
6
genkey.js
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
import { generatePrivateKey, getPublicKey } from 'nostr-tools'
|
||||
const p = generatePrivateKey()
|
||||
console.log({
|
||||
privateKey: p,
|
||||
publicKey: getPublicKey(Buffer.from(p, 'hex'))
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue