lumehq / nostr-connect

nostr signer extension, fork of nos2x by fiatjaf
14 stars 1 forks source link

Prepossession config #3

Closed kehiy closed 3 weeks ago

kehiy commented 2 months ago

I think we can define a JSON config in an extension which will be like this (just an example):

{
    "1":true,
    "2": false
}

Using this, we can determine for example kin x, y and z can be automatically signed in all platforms. and kind n and m need to ask always.

This helps us to set something like if it was a creation to a post, just sign it. if it was a new event for me, ask me. so everything will be confined and we don't have to select remember my choice and this kind of stuff each time. (if the config was set...)

On the other hand, if the user goes with remember my choice and these options, we can simply fill this config with their selections.

Also, the above JSON is just an example!!! it can be way more organized and generalized. Export and import option for config can help users to share an well-defined and standard config as well.

kehiy commented 2 months ago

Also, it can be specific to a domain or some domains.

Defining a proper config is the most important part.