cameri / nostream

A Nostr Relay written in TypeScript
MIT License
741 stars 190 forks source link

[REQUEST] Deleting a pubkey #291

Open alexgleason opened 1 year ago

alexgleason commented 1 year ago

Pledge If the feature or idea is implemented or resolved to your satisfaction, please consider making a small monetary donation to support the continued development and independence of this project. To help the maintainers gauge on where to focus their effort, please include the amount of your pledge. A wallet address or Lightning invoice will be provided once the feature is complete. :heavy_check_mark:

Is your feature request related to a problem? Please describe.

I would like to submit a pubkey deletion event like this:

{
  "kind": 5,
  "pubkey": "c53baeff380922a7db05623495242637bf70b94bef29fa3c1665c8bfe40b400d",
  "content": "",
  "tags": [
    ["p", "c53baeff380922a7db05623495242637bf70b94bef29fa3c1665c8bfe40b400d"]
  ],
  // ...
}

I think having the ability to delete content is very important. It's a user privacy concern, it can help during disaster-recovery, and I think it will be essential for mass-adoption of Nostr. Currently events need to be deleted one at a time, so I submitted a NIP for invalidating an entire pubkey: https://github.com/nostr-protocol/nips/pull/377

In order for this NIP to be approved, it needs relay implementations. So I'm humbly requesting that, if you also believe in this idea, you help make this NIP a reality by implementing it in nostream.