Optionaloptions: PersistorOptions = {}Hex destination hashes slated for persistence — communicated-with OR explicitly favorited.
True when a backend exposing the KV interface is configured.
Writes every persisted destination's identity, ratchet ring and path entry to the adapter now, cancelling any pending debounced flush. No-op when disabled.
Hydrates the in-memory maps from the adapter and rebuilds the persisted set. Call once at startup. Corrupt records are skipped with a warning.
Marks a destination as communicated-with and schedules a debounced flush. Called by the transport layer at real send/receive points.
Explicitly persists a destination (e.g. a favorited contact), regardless of whether we have communicated with it.
If the destination has already been learned from a heard announce, its
current identity/ratchet/path state is written immediately. To persist a
peer that has not been learned yet — or to refresh from a specific announce
— pass announce; it accepts a transport announce event's detail
object directly (see StorableAnnounce).
Flushes immediately so the favorite survives an ungraceful crash.
Optionaloptions: { announce?: StorableAnnounce } = {}
Coordinates selective persistence of learned peers, ratchet rings and path entries across restarts.