Expand description
Cryptographic primitives and JWK types for Affinidi TDK
This crate provides:
- JWK (JSON Web Key) types per RFC 7517
- Key generation for various curves (Ed25519, X25519, P-256, P-384, secp256k1)
- Key conversion utilities (e.g., Ed25519 → X25519)
did:keyencode/decode helpers for raw-bytes APIs (HPKE, ECDH) — seedid_key- Post-quantum signatures (FIPS 204 ML-DSA, FIPS 205 SLH-DSA) behind
the
post-quantumfeature (off by default; also available individually asml-dsa/slh-dsa)
Re-exports§
pub use ed25519::KeyPair as Ed25519KeyPair;pub use p256::KeyPair as P256KeyPair;pub use p384::KeyPair as P384KeyPair;pub use secp256k1::KeyPair as Secp256k1KeyPair;
Modules§
- bls12381
- BLS12-381 G2
did:keyframing (BBS+ issuer keys). Curve-free, so it needs no feature gate.did:keyframing for BLS12-381 G2 public keys (BBS+ issuer verification keys). - did_key
did:keyhelpers for Ed25519 / X25519 with raw-bytes ergonomics.- ed25519
- Ed25519 and X25519 key operations
- p256
- P-256 (secp256r1/prime256v1) key operations
- p384
- P-384 (secp384r1) key operations
- p521
- P-521 (secp521r1) key operations
- secp256k1
- secp256k1 key operations
Structs§
- ECParams
- Elliptic Curve parameters (P-256, P-384, secp256k1)
- JWK
- RFC 7517 JWK Struct
- Octect
Params - Octet Key Pair parameters (Ed25519, X25519)
Enums§
- Crypto
Error - KeyType
- Known cryptographic key types.
- Params
- JWK Key Types and associated Parameters