NIP90 - Add addressable job results and spontaneous job results #1546
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.