“Smart Contracts” using Nostr and Bitcoin only … we have some work to do.
@Derek Ross
@Sergio
@bizarreglee
@TheDarkSith
Login to reply
Replies (7)
We'll get it figured out, but we may need to ask a few wizards.
I’m SURE others have already put thought into this … yea but who?
anyone can run a service that does stuff over nostr, that is basically a dvm, lets say a simple calculator, you would send an event with the params and the service(dvm) you want to use, could be via dm, or onthe event itself and the dvm would execute and give the result, the problem is trust, because someone is running the code and can run a badcalculator so afaik you dont have a way to do this trustless, bc we dont have a mechanism to execute the code we want in a trustless way.
I’ve got three words for you, Derek. Frostr. Giftwrap. Blossom. 
we should schedule a jam session to talk about it more sometime next week.
Trustless transactions is what smart contracts solve for. We can do this with Bitcoin and Nostr … I’m positive.
I’m driving now … but quick thoughts off the top of my noggin:
1 Access Keyed Content : This is a nip that specifies a new kind for encrypted blossom events, where the “p” tag references a pubkey (specifically for this content item) that decrypts the event content. Some other tag on the event references a url or some event detailing “how to get the access key”. Users can fetch any number of these events from relays, but only decrypt if they have the appropriate access key (shard).
2. Frostr shards for the content keys, which can be activated and deactivated from any client “dashboard” setup for this. Could be triggered on lightning payment within the dashboard.
This solution only requires a “trusted” key manager app … which is kind of a given for Nostr anyway.