vios_app 0.1.1

Small JSON vaults: Argon2id + AES-GCM, with optional AAD binding.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// ✅ reem_code.rs — REEM Protocol Core

/// Generates a REEM code based on tone and intent.
/// This is a placeholder logic for demonstration — replace with REEM glyph engine later.
pub fn generate_reem_code(tone: &str, intent: &str) -> String {
    format!("REEM-{}-{}", tone.to_uppercase(), intent.to_uppercase())
}

/// Validates that a REEM code is well-formed.
/// Current check: starts with "REEM-" and has two segments.
pub fn is_valid_reem_code(code: &str) -> bool {
    let parts: Vec<&str> = code.split('-').collect();
    parts.len() == 3 && parts[0] == "REEM"
}