DatabaseProtocol

public protocol DatabaseProtocol : AnyObject, Sendable

The database acting as a core crypto keystore.

  • getLocation() Asynchronous

    Get the location of the database Returns null if in-memory

    Declaration

    Swift

    func getLocation() async throws -> String?
  • updateKey(key:) Asynchronous

    Updates the key of the database.

    This reencrypts it with the new key.

    Declaration

    Swift

    func updateKey(key: DatabaseKey) async throws