NIP90 - Add addressable job results and spontaneous job results#1546
Open
blackcoffeexbt wants to merge 2 commits into
Open
NIP90 - Add addressable job results and spontaneous job results#1546blackcoffeexbt wants to merge 2 commits into
blackcoffeexbt wants to merge 2 commits into
Conversation
Member
|
can you give some examples of what kind of data would be published? I'm not sure I'm reasoning about this without more context |
Author
|
Sure. I've PRd a kind to the DVM repo with some more detail. Does this help @pablof7z ? |
Author
|
@pablof7z you can test a DVM IoT simulator I've put together here: https://nostr-relay-h4xor.vercel.app/ Send a request (bottom textarea) with and then send a job request with This is a demo of a standard job request and result but might help you understand the direction I want to go with this |
Reworded spontaneous events desc.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds addressable job results and spontaneous job results to the NIP90 spec.
Extending NIP90 to support these features will allow the use of Nostr DVMs by IoT devices rather than implementing IoT in a standalone spec. The will also be uses for these updates beyond IoT.
Addressable Job Results will allow IoT devices with high frequency data updates to use public relays without bloating a relay's resources. This range is optional and the standard job result range 3600 - 36999 still exists if this isn't desired.
Spontaneous Job Results have been added to the spec to allow a DVM to operate autonomously. A DVM can publish events without the need of a job request trigger. This can be useful in the case of periodic or triggered IoT updates or other non-IoT uses such as a DVM reacting to a news event.