Why Nostr? What is Njump?
2023-03-08 02:36:27

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
Author Public Key
npub1w7496prgzvfqln02yje9atxpsscegm6gsuaukuwue9vtwp7hau0q64tea8