mempoole on Nostr: Easy way to convert hex public keys to npub using nostr-tools. ``` let sk = ...
Easy way to convert hex public keys to npub using nostr-tools.
```
let sk = generatePrivateKey() // `sk` is a hex string
let pk = getPublicKey(sk) // `pk` is a hex string
let npub = nip19.npubEncode(pk)
```
https://github.com/nbd-wtf/nostr-tools
```
let sk = generatePrivateKey() // `sk` is a hex string
let pk = getPublicKey(sk) // `pk` is a hex string
let npub = nip19.npubEncode(pk)
```
https://github.com/nbd-wtf/nostr-tools