Skip to main content

acp_runtime/
constants.rs

1// Copyright 2026 ACP Project
2// Licensed under the Apache License, Version 2.0
3// See LICENSE file for details.
4
5pub const ACP_VERSION: &str = "1.0";
6pub const ACP_IDENTITY_VERSION: &str = "1.0";
7pub const DEFAULT_CRYPTO_SUITE: &str = "ACP-AES256-GCM+X25519+ED25519";
8pub const DEFAULT_IDENTITY_DOCUMENT_PATH: &str = "/api/v1/acp/identity";
9
10pub const TRUST_PROFILES: &[&str] = &[
11    "self_asserted",
12    "domain_verified",
13    "enterprise_managed",
14    "regulated_assured",
15];
16
17pub fn is_supported_trust_profile(profile: &str) -> bool {
18    TRUST_PROFILES.iter().any(|item| *item == profile)
19}