Skip to main content

Crate dpp_crypto

Crate dpp_crypto 

Source
Expand description

dpp-crypto — Ed25519 signing, JWS compact serialisation, DID documents, and access-tier Verifiable Credentials.

All modules are pure (no I/O, no network). The crate compiles to std for the node and to wasm32 (where conditional) for plugin guests.

Re-exports§

pub use access::AllowAllIssuers;
pub use access::CredentialBuilder;
pub use access::CredentialRole;
pub use access::CredentialStatus;
pub use access::DppAccessCredential;
pub use access::DppCredentialSubject;
pub use access::PolicyDecision;
pub use access::RevocationOutcome;
pub use access::SectorAccessPolicy;
pub use access::StaticTrustedIssuers;
pub use access::StatusList;
pub use access::TrustedIssuerRegistry;
pub use access::VerificationResult;
pub use access::check_revocation;
pub use access::filter_by_access_tier;
pub use access::verify_credential_claims;
pub use access::verify_credential_claims_with_trust;
pub use access::verify_credential_with_revocation;
pub use access::verify_credential_with_revocation_and_trust;
pub use identity::LocalIdentityService;

Modules§

access
Access control — sector access policies, VC issuance/verification, and status lists.
identity
DID / identity orchestration — did:web document builder and IdentityPort impl.
jws
JWS signing primitives — EdDSA over RFC 8785 (JCS) canonical bytes.
keystore
AES-256-GCM encrypted Ed25519 key store with Argon2id key derivation.

Structs§

PassportCredential
A W3C Verifiable Credential 2.0 envelope binding a DPP passport to its signed payload.
PassportCredentialSubject
Claims about the DPP passport being attested.

Enums§

AccessTier
Re-export the canonical AccessTier from dpp-domain. ESPR access tier levels for DPP data gating.