Skip to main content

dpp_crypto/
lib.rs

1//! `dpp-crypto` — Ed25519 signing, JWS compact serialisation, DID documents,
2//! and access-tier Verifiable Credentials.
3//!
4//! All modules are pure (no I/O, no network). The crate compiles to `std` for
5//! the node and to `wasm32` (where conditional) for plugin guests.
6
7pub mod access;
8pub mod identity;
9pub mod jws;
10pub mod keystore;
11
12// ── Flat re-exports — maintain stable paths for external callers ─────────────
13
14pub use access::{
15    AccessTier, AllowAllIssuers, CredentialBuilder, CredentialRole, CredentialStatus,
16    DppAccessCredential, DppCredentialSubject, PolicyDecision, RevocationOutcome,
17    SectorAccessPolicy, StaticTrustedIssuers, StatusList, TrustedIssuerRegistry,
18    VerificationResult, check_revocation, filter_by_access_tier, verify_credential_claims,
19    verify_credential_claims_with_trust, verify_credential_with_revocation,
20    verify_credential_with_revocation_and_trust,
21};
22pub use identity::{LocalIdentityService, PassportCredential, PassportCredentialSubject};