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 audience/disclosure access 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 by audience (Public / LegitimateInterest / Authority) on passport fields, per ESPR Art. 11(b) and the access rights each product group's delegated act sets.
- 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 Audience, Disclosure and IdentityPort — required by this crate |
Minimum Rust version
1.96 (MSRV is enforced in CI)
License
Apache-2.0 — see LICENSE