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
11#[cfg(feature = "ed25519")]
12pub mod ed25519;
13
14#[cfg(feature = "ecdsa")]
15pub mod ecdsa;
16
17/// Upstream BLS signing types for explicitly selected native fixtures.
18#[cfg(all(feature = "certificate-fixture-signing", not(target_family = "wasm")))]
19pub mod fixture_signing {
20    pub use ic_verify_bls_signature::PrivateKey;
21}
22
23#[cfg(all(feature = "native-read", not(target_family = "wasm")))]
24pub mod native;