Skip to main content

qualia_core_db/crypto/network/cose/
mod.rs

1//! Bounded paired COSE_Sign1 candidate for QBDL publication proofs.
2//!
3//! This strict profile is NOT a generic COSE implementation. Both signatures
4//! authenticate one exact expected binding. A verified pair is NOT authority:
5//! QBS-04 must independently admit the supplied keys and current controller.
6//! Legacy contextual adapters and their qualification flags are unchanged.
7
8mod binding;
9mod cbor;
10mod envelope;
11#[cfg(not(target_arch = "wasm32"))]
12mod managed_signing;
13// Portable authority fixtures and mixed-HMC stream bundles use raw signing; production custody stays native.
14mod raw_signing;
15mod types;
16mod verify;
17
18pub use binding::{decode_binding, encode_binding, PairedPublicKeys};
19pub use envelope::{decode_pair, encode_pair, sig_structure_into, ParsedPair};
20#[cfg(not(target_arch = "wasm32"))]
21pub use managed_signing::sign_pair;
22pub(crate) use raw_signing::{sign_pair_raw, SigningKeys};
23pub use types::*;
24pub use verify::{verify_pair, VerifiedPair};
25
26#[cfg(all(test, not(target_arch = "wasm32")))]
27mod tests;