Skip to main content

ic_platform/
lib.rs

1//! IC certificate boundaries, separate from identity, execution and protocol codecs.
2//!
3//! Opt-in capabilities decode untrusted certificates and authenticate direct-root
4//! or singly delegated certificates with explicit trust, authority and time inputs.
5//! Defaults are empty.
6#![forbid(unsafe_code)]
7
8#[cfg(feature = "certificate-decode")]
9pub mod certificate;
10#[cfg(feature = "ecdsa")]
11pub mod ecdsa;
12#[cfg(feature = "ed25519")]
13pub mod ed25519;
14/// Upstream BLS signing types for explicitly selected fixtures.
15#[cfg(feature = "certificate-fixture-signing")]
16pub mod fixture_signing {
17    pub use ic_verify_bls_signature::PrivateKey;
18}
19#[cfg(all(feature = "ingress-packets", not(target_family = "wasm")))]
20pub mod ingress;
21#[cfg(all(feature = "native-read", not(target_family = "wasm")))]
22pub mod native;
23
24/// Upstream stable collections and memory traits, without wrappers or format changes.
25/// Callers own memory allocation, layout, migrations and upgrade policy.
26#[cfg(feature = "stable-structures")]
27pub use ic_stable_structures as stable_structures;