Database

public final class Database

The database needed to initialize CoreCrypto.

  • Initialise or open a Database.

    Declaration

    Swift

    public convenience init(keystorePath: String, key: DatabaseKey) async throws

    Parameters

    keystorePath

    path to the database

    key

    secret key to unlock the database

  • init(key:) Asynchronous

    Initialise an in-memory Database whose data will be lost when the instance is dropped.

    Declaration

    Swift

    public convenience init(key: DatabaseKey) async throws

    Parameters

    key

    secret key to unlock the database