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
//! # polar-bear-biochip
//!
//! Bio-chip intelligence framework for Polar Bear (๐จ).
//!
//! ## Architecture
//!
//! ```text
//! โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
//! โ polar-bear-biochip โ
//! โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
//! โ sensors::bci EEG (ฮด ฮธ ฮฑ ฮฒ ฮณ bands + indices) โ
//! โ sensors::accelerometer 3-axis MEMS (m/sยฒ) โ
//! โ sensors::fusion SensorFusion โ FusedReading โ
//! โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
//! โ agent::biochip_agent rig-core LLM agent (ai-agent feat) โ
//! โ curl fallback (no feature flag) โ
//! โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
//! โ provenance::ecdsa_signer secp256k1 ECDSA sign + verify โ
//! โ SHA-256 payload hashing โ
//! โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
//! โ types BciReading ยท AccelerometerReading ยท FusedReading โ
//! โ InferenceResult ยท SignedOutput ยท AlertLevel โ
//! โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
//! ```
//!
//! ## Usage
//!
//! ```rust,no_run
//! use polar_bear_biochip::{
//! sensors::fusion::SensorFusion,
//! provenance::ecdsa_signer::EcdsaSigner,
//! };
//!
//! let mut fusion = SensorFusion::new();
//! let reading = fusion.sample(1);
//! println!("Cognitive load: {:.2}", reading.cognitive_load);
//!
//! let signer = EcdsaSigner::generate();
//! println!("Public key: {}", signer.public_key_hex());
//! ```
/// Re-exports error types for use by callers.
/// Re-exports error types for use by callers.
/// Re-exports provenance types for use by callers.
/// Re-exports sensor types for use by callers.
/// Re-exports type definitions for use by callers.