pub fn record_event( conn: &Connection, action: &str, provider: &str, details: Option<&str>, actor: Option<&str>, ) -> Result<(), String>
Records a hash-chained audit event with the current timestamp.