Documentation
    Preparing search index...

    Interface IAgentKeyStore

    Storage for the agent's own private key, which is never shared with other peers.

    interface IAgentKeyStore {
        loadKey(): Promise<Uint8Array<ArrayBufferLike> | undefined>;
        storeKey(privateKey: Uint8Array): Promise<void>;
    }

    Implemented by

    Index

    Methods

    • Loads the agent's private key, or returns undefined if not found. The key is expected to be in raw binary format.

      Returns Promise<Uint8Array<ArrayBufferLike> | undefined>

    • Stores the agent's private key. The key is expected to be in raw binary format.

      Parameters

      • privateKey: Uint8Array

      Returns Promise<void>