Paso 1 de 5
Tu relay como base de datos de la app
Las apps que no necesitan compartir datos con otras apps pueden igualmente guardarlos en Nostr: tú eliges un relay y la app lee y escribe ahí sus propios eventos.
NIP-78
BorradorEventosRelay
Permite a las apps guardar sus propios datos privados, como ajustes, en tus relays y en el formato que quieran, como kind 30078 (un registro por clave) o kind 78 (muchos registros).
Edita el formulario o el JSON: ambos se mantienen sincronizados, la insignia indica si el resultado es válido y, al tocar cualquier campo, se explica qué hace.
Aún sin firmar · Solo claves de demo. Las claves secretas de estos personajes son públicas a propósito.
Selecciona cualquier campo del formulario o del JSON para ver qué hace.
Paso 1 de 5
Las apps que no necesitan compartir datos con otras apps pueden igualmente guardarlos en Nostr: tú eliges un relay y la app lee y escribe ahí sus propios eventos.
Ningún capítulo del curso cubre este NIP todavía. El editor de arriba es la forma más rápida de empezar.
30078 es direccionable (se reemplaza por d); 78 es un evento normal.
Los relays solo deberían servir estos eventos al autor autenticado.
Cifra los valores sensibles para ti mismo con NIP-44.
El texto de las especificaciones se cita en inglés del repositorio nostr-protocol/nips. Nuestras explicaciones y la interfaz están traducidas. Código fuente en GitHub en el commit 0046368
The goal of this NIP is to enable remoteStorage-like capabilities for custom applications that do not care about interoperability.
Even though interoperability is great, some apps do not want or do not need interoperability, and it wouldn't make sense for them. Yet Nostr can still serve as a generalized data storage for these apps in a "bring your own database" way, for example: a user would open an app and somehow input their preferred relay for storage, which would then enable these apps to store application-specific data there.
These kinds are not meant to be used as a generic interchange format for data that should be public or exchanged between different applications. Applications that need such interoperability should use dedicated kinds instead.
This NIP specifies the use of event kinds 30078 (an addressable event) with a d tag containing some reference to the app name and context -- or any other arbitrary string. content and other tags can be anything or in any format.
It also defines the kind 78 (a normal event) for when the app needs to store and query multiple events of the same type. Apps should use some unique tag (even a d tag) for grouping these events together.
Because this data is private to the user, relays SHOULD require clients to perform the NIP-42 AUTH flow before accepting or serving kind 78 and kind 30078 events, and SHOULD only serve these events to the authenticated owner, i.e. the client must authenticate with the same pubkey as the event author.