Skip to main content

Crate omwei_atom

Crate omwei_atom 

Source
Expand description

§OMWEI 32B Semantic Atom

Hardware-native integrity for Agentic AI and Industrial IoT. The L0 layer defining the next decade of Silicon Sincerity through mathematical certainty and zero-latency trust determination.

§Mission

The OMWEI 32-bit Semantic Atom (32BSA) standard provides the universal grammar for Agentic AI systems, establishing hardware-enforced trust hierarchies through single-bit operations. This is not a utility library—it is the foundational protocol for silicon-level data integrity.

§Performance Metrics

Zero-Latency Trust Determination:

  • Latency: 8.86 nanoseconds per operation
  • Throughput: 113 million operations/second
  • Memory: Zero allocation, stack-only execution
  • Hardware: Single bit-mask operation (id & 0x80000000)

§Quick Start

use omwei_atom::trust_hierarchy::{get_trust_level, validate_atom, Atom, TrustLevel, ValidationResult};

fn process_sensor_data(global_id: u32, payload: [u8; 28]) {
    let atom = Atom::new(global_id, payload);

    // Zero-latency trust determination
    let trust_level = get_trust_level(global_id);

    match trust_level {
        TrustLevel::Managed => {
            // Production-grade processing with PQC verification
            match validate_atom(&atom) {
                ValidationResult::Trusted => {
                    println!("Trusted atom stored");
                }
                ValidationResult::InvalidSignature => {
                    println!("Security alert: Invalid signature");
                }
                _ => unreachable!(),
            }
        }
        TrustLevel::Community => {
            println!("Community atom: No global trust");
        }
    }
}

§Features

  • Zero-Cost Abstractions: All operations compile to optimal machine code
  • Hardware Efficiency: Single bit-mask trust determination
  • Post-Quantum Ready: Built-in PQC signature verification framework
  • Embedded Friendly: no_std compatible with minimal dependencies
  • WebAssembly Support: Same guarantees in browser environments

§Trust Hierarchy

SpaceBit 31RangeTrust LevelVerification
Managed00x00000000 - 0x7FFFFFFFSincerePQC Signature Required
Community10x80000000 - 0xFFFFFFFFUnverifiedNone

§Modules

  • trust_hierarchy - Core trust hierarchy implementation with zero-latency determination

§Configuration

§Feature Flags

  • std: Standard library support (default)
  • serde: Serialization/deserialization support
  • pqc: Post-quantum cryptography primitives

§Embedded Targets

[dependencies.omwei-atom]
version = "0.1.2"
default-features = false
features = ["pqc"]  # For bare-metal environments

Modules§

trust_hierarchy
OMWEI 32BSA Trust Hierarchy Implementation

Structs§

Configserde
Entityserde
Predicateserde
SemanticAtom

Enums§

AtomError

Constants§

HEADER_ENCRYPTED
HEADER_RAW_DATA
HEADER_SIGNED
HEADER_VERIFIED
PREDICATE_ANOMALY
PREDICATE_API_DATA_INCONSISTENCY
PREDICATE_CONSISTENCY
PREDICATE_CRITICAL
PREDICATE_NORMAL
PREDICATE_POTENTIAL_DATA_ANOMALY
PREDICATE_SENSOR_STUCK_WARNING
PREDICATE_TREND_RISING_FAST
PREDICATE_TREND_STABLE
PREDICATE_TRIANGULATED
PREDICATE_WARNING
TAG_HYDROLOGICAL
TAG_METEOROLOGICAL
TELEMETRY_HUMIDITY_PERCENT
TELEMETRY_PRECIPITATION_MM
TELEMETRY_PRESSURE_PA
TELEMETRY_TEMPERATURE_C
TELEMETRY_WATER_LEVEL_MM
TRUST_ANOMALY
TRUST_ENTERPRISE
TRUST_RAW
TRUST_VERIFIED

Type Aliases§

BsaResult