@grandlinex/core
    Preparing search index...

    Class CoreDb

    CoreDb handles the storage, retrieval, and deletion of cryptographic keys (GKey entities) within the underlying database.

    ICoreDb

    The CoreDBCon instance that this CoreDb wraps.

    initPrefabDB

    Generates a seed and a unique identifier, then stores them in the configuration. This method is called to initialize the prefab database.

    deleteKey

    The identifier of the GKey to delete.

    Removes the GKey identified by e_id from the database.

    getKey

    The identifier of the GKey to retrieve.

    Retrieves a GKey object by its identifier. Returns null if no matching key is found.

    setKey

    The secret key value.

    The initialization vector.

    The authentication data.

    Creates a new GKey entry with the provided parameters and returns the newly generated identifier.

    Hierarchy (View Summary)

    Implements

    Index

    Constructors

    Properties

    channel: string
    db: any
    logger: CoreLogger | null

    Methods

    • Parameters

      • secret: string
      • iv: Buffer
      • auth: Buffer

      Returns Promise<string>