We store just the header of the wraps (empty content) so that if any client decides to tag a wrap (like for reports), we at least know what it is and which inner event it is talking about.

Reply to this note

Please Login to reply.

Discussion

I wonder if i should store the original wrap id in the rumor signature for reference

I do this too. Rumor and seal store the id of the wrap in case the user hits broadcast note, which they I re-download the wrap and send it to his/her DM and public inbox relays. Wrap and seal store the id of the inner note so that I can set the relay list that has each chat message without having to decrypt them all the time.

i decided to add the pubkey that unwraps the giftwrap to the rumor signature as well, since we'll want to be able to filter this locally for multi account