function completeSetup
completeSetup(
username: string,
adminPassword: string,
currencyCode: string,
): Promise<void>

Complete initial setup by storing all configuration Generates the encryption key hierarchy:

  • DATA_KEY: random symmetric key for encrypting private key
  • RSA key pair: public key encrypts attendee PII, private key decrypts
  • KEK: derived from password hash + DB_ENCRYPTION_KEY, wraps DATA_KEY Creates the first owner user row instead of storing credentials in settings.

Parameters

username: string
adminPassword: string
currencyCode: string

Return Type

Promise<void>

Usage

import { completeSetup } from "docs/database.ts";