State machines on Nostr through External computation off relays#1242
State machines on Nostr through External computation off relays#1242AndrewRyanChama wants to merge 1 commit into
Conversation
|
Isn't this NIP-90? |
Semisol
left a comment
There was a problem hiding this comment.
DVMs exist (they suck though)
|
@vitorpamplona @Semisol This may seem similar to nip-90/DVM on the surface, but it's actually quite distinct Overall nip-90 is a sort of rpc job model where where users use nostr as a transport layer to call a different service. The user makes a request and gets a response back. The example given is that a user will request image generation and get the image back. This nip is for running a state machine on nostr for enablement of social features, such as group user management and moderation. Computation is modeled as several independent state machines, and each state machine includes an overall state object as well as a timeline view that can be paged through. The critical parts of this NIP that make it work is the use of the 3XXXX parameterized replaceable events to store the state, as well as a way to page through the timeline events. (I should rename the title of this nip) |
view here
The difficulty of managing users and permissions has existed since time immemorial, since systems such as LDAP have existed. Users need permissions, and with those permissions they can edit theirs and other permissions. The handling of this system essentially requires the computation of a state machine.
This nip describes a way to perform computation of a state machine, such as permissions management or moderation, and communicate the results over nostr. Computation is necessary for certain functions, and nip-29 proposes an alternative model of computation where the relay acts as the computer. Unlike nip-29, this nip proposes that computation should be owned by a keypair, while the inputs and results are decentralized across multiple relays.
A Computer can be used to add interactive functionality to existing nips
kind:34550, giving a way to edit the community outside of just a single private key. The computer can also automate the approval of posts withkind:4550as timeline state.