Creates a state manager for one local XMPP JID.
Persistence backend for armored key material.
Local JID used as the OpenPGP identity.
Generates a new OpenPGP keypair and persists it immediately.
Nothing.
Returns the loaded or generated state file.
The current state file, if one exists.
Loads persisted OpenPGP state or generates a fresh keypair.
Nothing.
Writes the current state file to persistent storage.
Nothing.
Queues a persistence write so repeated updates coalesce in order.
The in-flight persistence promise.
Stores the local OpenPGP keypair and persists it asynchronously.