nostr-protocol / nostr

a truly censorship-resistant alternative to Twitter that has a chance of working
10.04k stars 322 forks source link

Profile recovery idea if nsec is compromised #187

Closed mmyoungman closed 5 months ago

mmyoungman commented 5 months ago

The problem I want to solve is that if my nsec is compromised, I want a way to flag old messages as untrustworthy and not have to start an entirely fresh profile.

The idea is that seed phrases are used to generate people's nsec/npubs. If their nsec is compromised, the same seed phrase can be used to produce a new nsec/npub pair that is verifiably associated with the compromised profile based on the associated xpub. The xpub would be made public.

Clients would need to additionally verify that a profile's npub is generated by its xpub, if one is supplied.

To recover from a compromised nsec:

mmyoungman commented 5 months ago

Turns out there are lots of encryption gotchas here, so I'm going to close this.