Any tools to shorten npubs? Long npub goes in, short format comes out. Also: is there a standard "short" format?

Reply to this note

Please Login to reply.

Discussion

You mean like the hex key? Which could be base64 encoded

Or like first bits? https://en.bitcoin.it/wiki/Firstbits

Or like a fingerprint as used in GPG?

Yes

Fingerprint would be cool.

Better than return f"{first_eight}:{last_eight}" πŸ˜‚

Shouldn't nip05 be enough? Given a domain, the username should be unique on that domain. And /.well-known/nostr.json? should return the pubKey in hex format. What's the usecase?

* /.well-known/nostr.json?name=

Assuming of course that it HAS a nip05 filled.

So that's what nip-5 does

What’s wrong with long npubs πŸ˜‚

πŸ‘€

I've memorized my hex

npub1cpa3qc3xxpk

Aren't npubs all of the same size?