dpp-crypto
Cryptographic primitives for the Odal Node Digital Product
Passport system: Ed25519 key management, JWS signing and verification, AES-256-GCM
field-level encryption, did:web document builder, W3C Verifiable Credentials, and
the ESPR Art. 10 access-tier policy engine.
When to use this crate
- You need to sign or verify DPP data with Ed25519.
- You are issuing or verifying W3C Verifiable Credentials for supply-chain actors.
- You need to enforce read-access tiers (Public / Professional / Confidential) on passport fields per ESPR Article 10.
- You are building a
did:webidentity for a manufacturer or operator.
Example
use ;
use Utc;
let subject = DppCredentialSubject ;
let credential = new
.expires_in_days
.build;
Relationship to other crates
| Crate | Role |
|---|---|
dpp-domain |
Provides AccessTier and IdentityPort — required by this crate |
Minimum Rust version
1.96 (MSRV is enforced in CI)
License
Apache-2.0 — see LICENSE