Skip to main content

ic_auth/
lib.rs

1//! Pure application-token encoding and optional signature/token/session machinery.
2//!
3//! Hashing untrusted material does not authenticate it. Applications must not
4//! admit tokens by hashing them or checking just one signature. Use the optional
5//! token verifier with protected host inputs. The optional session engine uses
6//! one explicit host transaction for admission and replay consumption.
7
8pub mod canonical;
9pub mod certificate_issuance;
10pub mod chain_key_batch;
11pub mod token_preparation;
12
13#[cfg(feature = "chain-key-verification")]
14pub mod chain_key_signature;
15
16#[cfg(feature = "canister-signature-preparation")]
17pub mod signature_store;
18
19#[cfg(feature = "canister-signature-verification")]
20pub mod canister_signature;
21
22#[cfg(feature = "token-verification")]
23pub mod token;
24
25#[cfg(feature = "sessions")]
26pub mod session;