Show what I am being asked to decrypt
Opened this issue · 4 comments
When I launch Amethyst, I am asked to decrypt a message each time. It is NIP4 but I have no idea what it is decrypting.
Here is some details:
When clicking show details, it shows the encrypted data again and when clicking the "copy Encrypted/Decrypted data" button, I get this:
[["p","cd0c30bf2e327c8d04433314596cdda5330246eb3df5093ce995ed10e6c2f29a"],["p","cd0c30bf2e327c8d04433314596cdda5330246eb3df5093ce995ed10e6c2f29a"],["p","ccec23ef54ebcfd3bcbf71c4e28d8c32087addda00710197e72275a04828648e"],["p","75587ce7e16aae13788969b0a3150eac9ec9d906914b578abf99dc6e44430b93"],["p","3590133ca790acdee90c70c11ee7da4e04e3afac68568182b24e30b2e879de0f"],["p","10c712af113bdd77971b79e97ccfd1070476ec577bb11a621af00a2454f3d231"],["p","881d88ae028db5ec8cfa7c9582d4a46124e8b35fad7d692f5ac9bdb672c2802e"],["p","d4a2f2a06ac25d8cd496ca7e04260bd645a2705ce0d5a30c245ab9fb4def3159"],["p","c8b40ae7ce27ef4ea21f84e1a9d375068a1c95d38889aa6d7cf5c92591a0f9fc"],["p","620fa6800af4ceb8d7be27dcf6df50c15402a050b383b501d5fae83346de17ab"],["p","f0fb31d1810a9f95df3d178fcd67ca0b09879ad11e8689e56962cd839fb8ead4"],["p","fb7d9edb022881ac80da6369832f67e300f06d8524a2a55d1aa88aed51b481ba"],["p","6e468422dfb74a5738702a8823b9b28168abab8655faacb6853cd0ee15deee93"]]
Is this the Decrypted data? It only has tags.
I'll try to improve this screen. The p tags are you block list
How do we determine what is remembered? If it were by post id that would be good.
I don't want to remember to decrypt everything that's NIP04, but if I identify certain posts that I want to auto permit for Amethyst (like this one), can I do that?
It's remembered by the type
Nip44 decrypt/encrypt
Nip4 decrypt/encrypt
decrypt private zaps
Sign event + event kind
I can implement the decryption by the event id but every time you block/unblock someone you would have to remember this new event.
Because the contents change the ID right?
🤔 I think this needs some more thought, but building up to creating NIP aware rulesets could be a useful feature.
In this case, we would create a rule that matches by kind and author which should be enough to express that I want to allow my block list. But eventually I think users should have "recipes" for commonly used configurations.