for completely private note storage on relays you could giftwrap with a p tag = H(nsec+”storage”). You could pull these down, unwrap them and store them in nostrdb for local querying.

giftwrapped notes have no internal signature, so your private, unwrapped data could never be broadcast to relays.

the wrap itself has no publicly identifiable information tied to you, so people don’t even know who is storing the data.

Reply to this note

Please Login to reply.

Discussion

Cool. 😎 We are so early...

Excellent thought. I’ve been using hashed ISBNs (as note IDs) for storing ‘hidden’ book information like progress and reviews. This way the user, who keeps a list of their books (with some encrypted isbns tags in the content), can simply recreate their book data but others cannot easily see what books they hid. I like your idea a bit more though so will need to see if I am think a way around achieving something similar/better with gift wrapping.

At least with the book info it doesn’t need to be the most secure model in the world. My main thought there was a leaked isbn shouldn’t be detrimental to safety etc. (in most circumstances).

At this point you don’t even need the seal, so it’s simpler than giftwraps

Thoughts nostr:npub1gcxzte5zlkncx26j68ez60fzkvtkm9e0vrwdcvsjakxf9mu9qewqlfnj5z ?

I would not use a p-tag since anyone can copy all the p-tags out there and send you a bunch of "private notes" in a DoS attack.

I would derive the key, sign with and filter by that pubkey instead. You basically get the same privacy (people can know how many notes are there for each key/p-tag), but now you are the only one that can create those events (no spamming)

Which means that I wouldn't reuse the GiftWrap kind for this.

Agree that you don't need a seal. The goal for the seal+wrap strategy is to privately connect two keys, which you don't need here.

Oh right of course lol

This could be a spec if its not already

I’ll write a draft!

Very cool 😍😍

nostr:nprofile1qqsr9cvzwc652r4m83d86ykplrnm9dg5gwdvzzn8ameanlvut35wy3gpz4mhxue69uhhyetvv9ujumt0wd68ytnsw43qz9nhwden5te0wfjkccte9ec8y6tdv9kzumn9wsd8vkwa what if I want to create private notes encrypted and stored on relays. Is there a tag or kind I can use it to pull the private note. Just like notes app.