auths-keri 0.1.3

KERI protocol types, SAID computation, and validation
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
//! Typed operator-independence model for witness quorums.
//!
//! A quorum is only meaningful as a non-equivocation / censorship-resistance
//! guarantee if its members are genuinely independent. This module models the
//! three independence axes as fail-closed newtypes and provides ONE pure
//! predicate, [`spans_distinct`], that both the static roster-capability check and
//! the security-decisive per-attestation check reuse:
//!
//! 1. **Organization** — two witnesses run by the same org are not independent.
//! 2. **Jurisdiction** — all-in-one-jurisdiction is a single legal chokepoint.
//! 3. **Infrastructure** — three orgs all in one cloud region/ASN share a
//!    correlated-failure and single-censorship point; infra is first-class, as in
//!    Chrome CT / transparency.dev operator policies.
//!
//! Missing attributes mean "cannot prove independence" → fail closed, never
//! "assume distinct". A pubkey appearing under two operator labels is a Sybil and
//! counts once.

use std::collections::HashSet;

use serde::{Deserialize, Serialize};

/// Failure constructing an independence newtype from untrusted input.
#[derive(Debug, thiserror::Error, PartialEq, Eq)]
#[non_exhaustive]
pub enum IndependenceError {
    /// A required attribute was empty/whitespace.
    #[error("{field} must not be empty")]
    Empty {
        /// Which attribute was empty.
        field: &'static str,
    },
}

macro_rules! validated_string_newtype {
    ($name:ident, $field:literal, $doc:literal) => {
        #[doc = $doc]
        #[derive(Debug, Clone, PartialEq, Eq, Hash, Serialize, Deserialize)]
        #[serde(try_from = "String", into = "String")]
        pub struct $name(String);

        impl $name {
            /// Construct, rejecting empty/whitespace input (fail-closed).
            ///
            /// Args:
            /// * `value`: The attribute string.
            ///
            /// Usage:
            /// ```ignore
            #[doc = concat!("let v = ", stringify!($name), "::new(\"x\")?;")]
            /// ```
            pub fn new(value: impl Into<String>) -> Result<Self, IndependenceError> {
                let v = value.into();
                if v.trim().is_empty() {
                    return Err(IndependenceError::Empty { field: $field });
                }
                Ok(Self(v))
            }

            /// Borrow the inner string.
            pub fn as_str(&self) -> &str {
                &self.0
            }
        }

        impl TryFrom<String> for $name {
            type Error = IndependenceError;
            fn try_from(v: String) -> Result<Self, Self::Error> {
                Self::new(v)
            }
        }

        impl From<$name> for String {
            fn from(v: $name) -> String {
                v.0
            }
        }
    };
}

validated_string_newtype!(
    OperatorId,
    "operator",
    "Stable identifier for a witness operator instance (the entity running it)."
);
validated_string_newtype!(
    Organization,
    "organization",
    "The organization/affiliation a witness operator belongs to. Two operators \
     sharing an organization are NOT independent."
);
validated_string_newtype!(
    Jurisdiction,
    "jurisdiction",
    "Legal/governance jurisdiction (e.g. an ISO 3166 country code or region tag)."
);
validated_string_newtype!(
    Infrastructure,
    "infrastructure",
    "Network/infrastructure zone — ASN or cloud-provider+region. Three distinct \
     orgs all in one zone are a correlated-failure and single-censorship point."
);

/// The independence attributes pinned alongside a witness key.
///
/// The key itself lives on the witness ref / trust-root entry; combine the two
/// via [`WitnessOperatorInfo::to_attributes`]. Shared by the KERI `WitnessRef` and
/// the CT `TrustRootWitness` so both sides describe operators identically.
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
pub struct WitnessOperatorInfo {
    /// The operator running this witness.
    pub operator: OperatorId,
    /// The operator's organization/affiliation.
    pub organization: Organization,
    /// The operator's legal/governance jurisdiction.
    pub jurisdiction: Jurisdiction,
    /// The operator's network/infrastructure zone (ASN or cloud+region).
    pub infrastructure: Infrastructure,
}

impl WitnessOperatorInfo {
    /// Combine these attributes with a witness key into [`OperatorAttributes`].
    ///
    /// Args:
    /// * `key`: The witness's curve-tagged verkey/AID (the Sybil-collapse key).
    ///
    /// Usage:
    /// ```ignore
    /// let attrs = info.to_attributes(witness.aid.as_str());
    /// ```
    pub fn to_attributes(&self, key: impl Into<String>) -> OperatorAttributes {
        OperatorAttributes {
            operator: self.operator.clone(),
            organization: self.organization.clone(),
            jurisdiction: self.jurisdiction.clone(),
            infrastructure: self.infrastructure.clone(),
            key: key.into(),
        }
    }
}

/// The independence-relevant attributes of one attester in a quorum.
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
pub struct OperatorAttributes {
    /// The operator running this witness.
    pub operator: OperatorId,
    /// The operator's organization/affiliation.
    pub organization: Organization,
    /// The operator's jurisdiction.
    pub jurisdiction: Jurisdiction,
    /// The operator's infrastructure zone.
    pub infrastructure: Infrastructure,
    /// The attester's curve-tagged verkey/AID. Collapses Sybil duplicates: the
    /// same key under two operator labels counts once.
    pub key: String,
}

/// Minimum-diversity thresholds an independent quorum must clear.
///
/// Mirrors the diversity thresholds in `witness_policy.json` /
/// `docs/security/witness-diversity.md`.
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
pub struct IndependencePolicy {
    /// Minimum distinct organizations (default 3).
    #[serde(default = "default_min_organizations")]
    pub min_organizations: usize,
    /// Minimum distinct jurisdictions (default 2).
    #[serde(default = "default_min_jurisdictions")]
    pub min_jurisdictions: usize,
    /// Minimum distinct infrastructure zones (default 2).
    #[serde(default = "default_min_infra_zones")]
    pub min_infra_zones: usize,
}

fn default_min_organizations() -> usize {
    3
}
fn default_min_jurisdictions() -> usize {
    2
}
fn default_min_infra_zones() -> usize {
    2
}

impl Default for IndependencePolicy {
    fn default() -> Self {
        Self {
            min_organizations: default_min_organizations(),
            min_jurisdictions: default_min_jurisdictions(),
            min_infra_zones: default_min_infra_zones(),
        }
    }
}

impl IndependencePolicy {
    /// The "no diversity required" policy (all thresholds zero).
    ///
    /// Use where a consumer pins no policy and must keep legacy behavior — as
    /// opposed to [`IndependencePolicy::default`], the strict 3/2/2 commons policy.
    ///
    /// Usage:
    /// ```ignore
    /// let policy = IndependencePolicy::unconstrained();
    /// ```
    pub fn unconstrained() -> Self {
        Self {
            min_organizations: 0,
            min_jurisdictions: 0,
            min_infra_zones: 0,
        }
    }
}

/// The verdict from evaluating a set of attesters against an [`IndependencePolicy`].
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
pub struct Independence {
    /// Whether the attesters clear every threshold.
    pub independent: bool,
    /// Distinct operators after Sybil collapse.
    pub distinct_operators: usize,
    /// Distinct organizations after Sybil collapse.
    pub distinct_organizations: usize,
    /// Distinct jurisdictions after Sybil collapse.
    pub distinct_jurisdictions: usize,
    /// Distinct infrastructure zones after Sybil collapse.
    pub distinct_infra_zones: usize,
    /// Human-readable shortfalls (empty iff independent) — for status surfaces.
    pub shortfalls: Vec<String>,
}

impl Independence {
    /// A fail-closed verdict for when independence cannot even be evaluated
    /// (e.g. an attester is missing required attributes).
    ///
    /// Args:
    /// * `reason`: Why independence could not be proven.
    ///
    /// Usage:
    /// ```ignore
    /// return Independence::cannot_prove("a witness is missing its jurisdiction");
    /// ```
    pub fn cannot_prove(reason: impl Into<String>) -> Self {
        Self {
            independent: false,
            distinct_operators: 0,
            distinct_organizations: 0,
            distinct_jurisdictions: 0,
            distinct_infra_zones: 0,
            shortfalls: vec![reason.into()],
        }
    }
}

/// Evaluate whether a set of attesters spans distinct operators across enough
/// organizations, jurisdictions, and infrastructure zones to be independent.
///
/// Sybil collapse runs first: attesters sharing a `key` count once, so relabeling
/// one key under several operators cannot inflate diversity.
///
/// Args:
/// * `attesters`: The attesters to evaluate — for the security-decisive check,
///   the ACTUAL cosigning quorum (the receipts/cosignatures present), not the
///   configured roster.
/// * `policy`: The minimum-diversity thresholds.
///
/// Usage:
/// ```ignore
/// let verdict = spans_distinct(&cosigners, &IndependencePolicy::default());
/// if !verdict.independent { /* a single-operator quorum is visibly not independence */ }
/// ```
pub fn spans_distinct(
    attesters: &[OperatorAttributes],
    policy: &IndependencePolicy,
) -> Independence {
    // Sybil collapse: the same key counts once, regardless of operator label.
    let mut seen_keys = HashSet::new();
    let unique: Vec<&OperatorAttributes> = attesters
        .iter()
        .filter(|a| seen_keys.insert(a.key.as_str()))
        .collect();

    let operators: HashSet<&str> = unique.iter().map(|a| a.operator.as_str()).collect();
    let organizations: HashSet<&str> = unique.iter().map(|a| a.organization.as_str()).collect();
    let jurisdictions: HashSet<&str> = unique.iter().map(|a| a.jurisdiction.as_str()).collect();
    let infra_zones: HashSet<&str> = unique.iter().map(|a| a.infrastructure.as_str()).collect();

    let mut shortfalls = Vec::new();
    if organizations.len() < policy.min_organizations {
        shortfalls.push(format!(
            "organizations: {} < required {}",
            organizations.len(),
            policy.min_organizations
        ));
    }
    if jurisdictions.len() < policy.min_jurisdictions {
        shortfalls.push(format!(
            "jurisdictions: {} < required {}",
            jurisdictions.len(),
            policy.min_jurisdictions
        ));
    }
    if infra_zones.len() < policy.min_infra_zones {
        shortfalls.push(format!(
            "infrastructure zones: {} < required {}",
            infra_zones.len(),
            policy.min_infra_zones
        ));
    }

    Independence {
        independent: shortfalls.is_empty(),
        distinct_operators: operators.len(),
        distinct_organizations: organizations.len(),
        distinct_jurisdictions: jurisdictions.len(),
        distinct_infra_zones: infra_zones.len(),
        shortfalls,
    }
}

/// Whether cross-operator equivocation detection is merely sampled or
/// non-repudiable. Until the gossip layer (W.3) lands, detection is `Sampled` —
/// a surface must say so rather than imply a guarantee it cannot make.
#[derive(Debug, Clone, Copy, PartialEq, Eq, Serialize, Deserialize)]
pub enum EquivocationDetection {
    /// Best-effort monitoring; a hidden split-view may go undetected.
    Sampled,
    /// Cross-operator detection with non-repudiable evidence is live.
    NonRepudiable,
}

/// The honest current truth about a witness set, rendered identically by every
/// surface — CLI `witness` status, verify output, and the cross-repo badge (via
/// the serialized form). Computing it in ONE place means no surface can forget
/// the ceiling or re-derive met/failing differently.
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
pub struct HonestyCeiling {
    /// Distinct operators (after Sybil collapse).
    pub distinct_operators: usize,
    /// Distinct organizations.
    pub distinct_organizations: usize,
    /// Distinct jurisdictions.
    pub distinct_jurisdictions: usize,
    /// Distinct infrastructure zones.
    pub distinct_infra_zones: usize,
    /// Whether the diversity policy is met.
    pub policy_met: bool,
    /// Whether equivocation detection is sampled or non-repudiable.
    pub equivocation: EquivocationDetection,
    /// Why the policy is unmet (empty iff `policy_met`).
    pub shortfalls: Vec<String>,
    /// One-line human-readable ceiling label — the canonical honest summary.
    pub label: String,
}

/// Compute the [`HonestyCeiling`] from an [`Independence`] verdict and the current
/// equivocation-detection capability.
///
/// This is the single source of truth for honest witness-status text: every
/// surface renders the returned value rather than re-deriving met/failing.
///
/// Args:
/// * `independence`: The verdict from [`spans_distinct`] over the relevant set.
/// * `equivocation`: Whether split-view detection is sampled or non-repudiable.
///
/// Usage:
/// ```ignore
/// let ceiling = honesty_ceiling(&spans_distinct(&attrs, &policy), EquivocationDetection::Sampled);
/// println!("{}", ceiling.label);
/// ```
pub fn honesty_ceiling(
    independence: &Independence,
    equivocation: EquivocationDetection,
) -> HonestyCeiling {
    let equivocation_phrase = match equivocation {
        EquivocationDetection::Sampled => "equivocation sampled, not yet non-repudiable",
        EquivocationDetection::NonRepudiable => "equivocation detection non-repudiable",
    };

    let label = if independence.independent {
        format!(
            "witnessed by {} operators across {} orgs / {} jurisdictions / {} infra zones (independent; {})",
            independence.distinct_operators,
            independence.distinct_organizations,
            independence.distinct_jurisdictions,
            independence.distinct_infra_zones,
            equivocation_phrase,
        )
    } else {
        let posture = if independence.distinct_operators <= 1 {
            "single-operator — not yet independent"
        } else {
            "not yet independent"
        };
        format!(
            "witnessed by {} operators ({}: {}); {}",
            independence.distinct_operators,
            posture,
            independence.shortfalls.join(", "),
            equivocation_phrase,
        )
    };

    HonestyCeiling {
        distinct_operators: independence.distinct_operators,
        distinct_organizations: independence.distinct_organizations,
        distinct_jurisdictions: independence.distinct_jurisdictions,
        distinct_infra_zones: independence.distinct_infra_zones,
        policy_met: independence.independent,
        equivocation,
        shortfalls: independence.shortfalls.clone(),
        label,
    }
}

#[cfg(test)]
mod tests {
    use super::*;

    fn attester(
        operator: &str,
        org: &str,
        jur: &str,
        infra: &str,
        key: &str,
    ) -> OperatorAttributes {
        OperatorAttributes {
            operator: OperatorId::new(operator).unwrap(),
            organization: Organization::new(org).unwrap(),
            jurisdiction: Jurisdiction::new(jur).unwrap(),
            infrastructure: Infrastructure::new(infra).unwrap(),
            key: key.to_string(),
        }
    }

    fn diverse_three() -> Vec<OperatorAttributes> {
        vec![
            attester("op-a", "org-a", "US", "aws/us-east-1", "K_AAA"),
            attester("op-b", "org-b", "DE", "gcp/eu-west-1", "K_BBB"),
            attester("op-c", "org-c", "JP", "azure/jp-east", "K_CCC"),
        ]
    }

    #[test]
    fn three_distinct_orgs_jurisdictions_infra_is_independent() {
        let verdict = spans_distinct(&diverse_three(), &IndependencePolicy::default());
        assert!(verdict.independent, "shortfalls: {:?}", verdict.shortfalls);
        assert_eq!(verdict.distinct_organizations, 3);
        assert_eq!(verdict.distinct_jurisdictions, 3);
        assert_eq!(verdict.distinct_infra_zones, 3);
    }

    #[test]
    fn three_same_organization_is_not_independent() {
        let attesters = vec![
            attester("op-a", "acme", "US", "aws/us-east-1", "K_AAA"),
            attester("op-b", "acme", "DE", "gcp/eu-west-1", "K_BBB"),
            attester("op-c", "acme", "JP", "azure/jp-east", "K_CCC"),
        ];
        let verdict = spans_distinct(&attesters, &IndependencePolicy::default());
        assert!(!verdict.independent);
        assert_eq!(verdict.distinct_organizations, 1);
    }

    #[test]
    fn three_orgs_one_jurisdiction_fails() {
        let attesters = vec![
            attester("op-a", "org-a", "US", "aws/us-east-1", "K_AAA"),
            attester("op-b", "org-b", "US", "gcp/us-west-1", "K_BBB"),
            attester("op-c", "org-c", "US", "azure/us-central", "K_CCC"),
        ];
        let verdict = spans_distinct(&attesters, &IndependencePolicy::default());
        assert!(!verdict.independent);
        assert_eq!(verdict.distinct_jurisdictions, 1);
    }

    #[test]
    fn three_orgs_two_jurisdictions_one_infra_fails() {
        let attesters = vec![
            attester("op-a", "org-a", "US", "aws/us-east-1", "K_AAA"),
            attester("op-b", "org-b", "DE", "aws/us-east-1", "K_BBB"),
            attester("op-c", "org-c", "JP", "aws/us-east-1", "K_CCC"),
        ];
        let verdict = spans_distinct(&attesters, &IndependencePolicy::default());
        assert!(!verdict.independent);
        assert_eq!(verdict.distinct_infra_zones, 1);
    }

    #[test]
    fn single_operator_quorum_fails_closed() {
        let attesters = vec![
            attester("solo", "solo-org", "US", "aws/us-east-1", "K_AAA"),
            attester("solo", "solo-org", "US", "aws/us-east-1", "K_BBB"),
            attester("solo", "solo-org", "US", "aws/us-east-1", "K_CCC"),
        ];
        let verdict = spans_distinct(&attesters, &IndependencePolicy::default());
        assert!(!verdict.independent);
        assert_eq!(verdict.distinct_operators, 1);
    }

    #[test]
    fn honesty_ceiling_independent_is_met_and_sampled() {
        let verdict = spans_distinct(&diverse_three(), &IndependencePolicy::default());
        let ceiling = honesty_ceiling(&verdict, EquivocationDetection::Sampled);
        assert!(ceiling.policy_met);
        assert!(ceiling.label.contains("independent"));
        assert!(ceiling.label.contains("sampled"));
    }

    #[test]
    fn honesty_ceiling_single_operator_is_failing() {
        let attesters = vec![
            attester("solo", "solo-org", "US", "aws/us-east-1", "K_A"),
            attester("solo", "solo-org", "US", "aws/us-east-1", "K_B"),
        ];
        let verdict = spans_distinct(&attesters, &IndependencePolicy::default());
        let ceiling = honesty_ceiling(&verdict, EquivocationDetection::Sampled);
        assert!(!ceiling.policy_met);
        assert!(ceiling.label.contains("single-operator"));
        assert!(ceiling.label.contains("not yet independent"));
    }

    #[test]
    fn honesty_ceiling_round_trips() {
        let verdict = spans_distinct(&diverse_three(), &IndependencePolicy::default());
        let ceiling = honesty_ceiling(&verdict, EquivocationDetection::NonRepudiable);
        let json = serde_json::to_string(&ceiling).unwrap();
        let back: HonestyCeiling = serde_json::from_str(&json).unwrap();
        assert_eq!(ceiling, back);
    }

    #[test]
    fn honesty_ceiling_label_changes_with_config() {
        let diverse = honesty_ceiling(
            &spans_distinct(&diverse_three(), &IndependencePolicy::default()),
            EquivocationDetection::Sampled,
        );
        let same_org = vec![
            attester("op-a", "acme", "US", "aws/us-east-1", "K_A"),
            attester("op-b", "acme", "DE", "gcp/eu-west-1", "K_B"),
            attester("op-c", "acme", "JP", "azure/jp-east", "K_C"),
        ];
        let failing = honesty_ceiling(
            &spans_distinct(&same_org, &IndependencePolicy::default()),
            EquivocationDetection::Sampled,
        );
        assert_ne!(diverse.label, failing.label);
        assert!(diverse.policy_met && !failing.policy_met);
    }

    #[test]
    fn quorum_not_roster_two_same_org_cosigners_fail() {
        // The roster spans 3 orgs, but the ACTUAL cosigning quorum is two
        // attesters from the same org → not independent.
        let actual_cosigners = vec![
            attester("op-a", "org-a", "US", "aws/us-east-1", "K_AAA"),
            attester("op-a2", "org-a", "DE", "gcp/eu-west-1", "K_AAA2"),
        ];
        let verdict = spans_distinct(&actual_cosigners, &IndependencePolicy::default());
        assert!(!verdict.independent);
        assert_eq!(verdict.distinct_organizations, 1);
    }

    #[test]
    fn duplicate_key_under_two_labels_counts_once() {
        // Same key relabeled as two operators/orgs must not inflate diversity.
        let attesters = vec![
            attester("op-a", "org-a", "US", "aws/us-east-1", "K_SHARED"),
            attester("op-b", "org-b", "DE", "gcp/eu-west-1", "K_SHARED"),
            attester("op-c", "org-c", "JP", "azure/jp-east", "K_CCC"),
        ];
        let verdict = spans_distinct(&attesters, &IndependencePolicy::default());
        // K_SHARED collapses to one → only 2 distinct orgs, not 3.
        assert_eq!(verdict.distinct_organizations, 2);
        assert!(!verdict.independent);
    }

    #[test]
    fn cannot_prove_is_fail_closed() {
        let verdict = Independence::cannot_prove("missing jurisdiction");
        assert!(!verdict.independent);
        assert_eq!(verdict.shortfalls.len(), 1);
    }

    #[test]
    fn newtypes_reject_empty_input() {
        assert_eq!(
            OperatorId::new("  "),
            Err(IndependenceError::Empty { field: "operator" })
        );
        assert!(Organization::new("").is_err());
    }

    #[test]
    fn newtype_deserialize_is_fail_closed() {
        // Empty string must be rejected at deserialize, not silently accepted.
        assert!(serde_json::from_str::<Organization>("\"\"").is_err());
        let ok: Organization = serde_json::from_str("\"acme\"").unwrap();
        assert_eq!(ok.as_str(), "acme");
    }
}