affinidi-crypto
Cryptographic primitives and JWK types for the Affinidi Trust Development Kit. Provides key generation, encoding, and conversion utilities across multiple elliptic curve families.
Supported Algorithms
| Algorithm | Feature Flag | Curve |
|---|---|---|
| Ed25519 / X25519 | ed25519 |
Curve25519 |
| P-256 (secp256r1) | p256 |
NIST P-256 |
| P-384 | p384 |
NIST P-384 |
| secp256k1 | k256 |
secp256k1 |
All features are enabled by default.
Installation
[]
= "0.1"
Or with only specific curves:
[]
= { = "0.1", = false, = ["ed25519", "p256"] }
WASM Support
This crate supports wasm32 targets with the getrandom/js feature
automatically enabled.
Related Crates
affinidi-encoding— Multibase/multicodec encoding (dependency)affinidi-secrets-resolver— Secret management built on this crateaffinidi-data-integrity— W3C Data Integrity proofs