Skip to main content

ic_auth/
lib.rs

1//! Portable authentication, delegation proofs and optional local session machinery.
2//!
3//! Hashing untrusted material does not authenticate it. Applications must not
4//! admit credentials by hashing them or checking just one signature. Application
5//! authentication admits a credential through the optional session engine, then checks
6//! the caller-bound session for each operation with current protected host inputs.
7//! Admission uses one explicit host transaction for verification and replay
8//! consumption. Standalone proof verification establishes no session or resource grant.
9
10/// Host-owned verification work budgets shared across unauthenticated callers.
11pub mod admission_budget;
12pub mod canonical;
13pub mod certificate_issuance;
14pub mod chain_key_batch;
15mod limits;
16pub mod portable;
17
18#[cfg(feature = "persistent")]
19pub mod persistent;
20
21#[cfg(any(
22    feature = "portable-signature-verification",
23    feature = "certified-proof-verification"
24))]
25pub mod portable_credential;
26pub mod session_request;
27
28#[cfg(feature = "portable-signature-verification")]
29pub mod portable_signature;
30
31#[cfg(feature = "chain-key-verification")]
32pub mod chain_key_signature;
33
34#[cfg(feature = "canister-signature-preparation")]
35pub mod signature_store;
36
37#[cfg(feature = "canister-signature-verification")]
38pub mod canister_signature;
39
40#[cfg(feature = "chain-key-verification")]
41pub mod delegation;
42
43#[cfg(feature = "certified-proof-verification")]
44pub mod portable_certified;
45
46#[cfg(feature = "sessions")]
47pub mod session;
48
49#[cfg(feature = "sessions")]
50mod storage_codec;