xmpp_p2p
    Preparing search index...

    Class XmppOpenPgpStateManager

    Stores the local OpenPGP keypair and persists it asynchronously.

    Index

    Constructors

    Methods

    • Generates a new OpenPGP keypair and persists it immediately.

      Returns Promise<void>

      Nothing.

    • Returns the loaded private key or throws if unavailable.

      Returns PrivateKey

      The active private key.

      If the key has not been loaded yet.

    • Returns the loaded public key or throws if unavailable.

      Returns PublicKey

      The active public key.

      If the key has not been loaded yet.

    • Loads persisted OpenPGP state or generates a fresh keypair.

      Returns Promise<void>

      Nothing.

    • Writes the current state file to persistent storage.

      Returns Promise<void>

      Nothing.

    • Queues a persistence write so repeated updates coalesce in order.

      Returns Promise<void>

      The in-flight persistence promise.