open
fun open(secretKey: ByteArray, databaseDirectory: File, logging: SoftchatLogging? = null): SoftchatAccount
Open or create one Rust-owned account database.
databaseDirectory must be an existing absolute app-private directory, normally Context.noBackupFilesDir. Rust derives the account ID and filename from secretKey, preventing a caller from accidentally pairing one authority with another account file.
The mutable secretKey buffer is cleared before this method returns, whether opening succeeds or fails.