Thanks for sharing this incredible knowledge .. but I fail to understand how the uniqueness can be ensured .. I mean how can anyone say with any confidence that npub and nsec is a unique combination .. (doesn't matter if it is BTC or nostr network ) ..

Saying this because to ensure uniqueness , there must exist a database of all the npub and nsec combinations .... Which means someone needs to know all the combinations .. which is obviously impossible and defeats the very purppose ! ..

But without a database , no one can ever be sure that no two npubs have same nsec !

Reply to this note

Please Login to reply.

Discussion

this is the brilliance of cryptography, in essence the “uniqueness” doesn’t need to be ensured.

the npub that can be trusted has all posts signed by a valid signature from its nsec.

so long as the post is signed, the npub is verified to “belong” to the nsec.

even if someone had custom derived 1 million npubs from their nsec, each new npub requires a signature to be trustworthy.

all posts on nostr are signed or they are not valid! so there’s no database needed, only a protocol which ensures that strong cryptography is being used.

now, you can’t verify that new npubs are unique human beings in real life, but that is why in the information age we must verify the content provided and not concern ourselves only for sources.

So the content is signed by a unique combination of npub and nsec ! Not by nsec alone ?

content is signed by nsec, the signature is then verified with the npub, so yes you need both to post anything to nostr.

any unsigned or unverified content will be rejected by nostr relays/clients