nips icon indicating copy to clipboard operation
nips copied to clipboard

State machines on Nostr through External computation off relays

Open AndrewRyanChama opened this issue 9 months ago • 2 comments

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

  • nip-72: A computer can manage the 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 with kind:4550 as timeline state.
  • #875 : The computer can validate the claim tag tag and automatically grant membership.
  • (upcoming nip made by me)

AndrewRyanChama avatar May 17 '24 16:05 AndrewRyanChama