affinidi-crypto 0.1.3

Cryptographic primitives and JWK types for Affinidi TDK
Documentation

affinidi-crypto

Crates.io Documentation Rust License

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

[dependencies]
affinidi-crypto = "0.1"

Or with only specific curves:

[dependencies]
affinidi-crypto = { version = "0.1", default-features = false, features = ["ed25519", "p256"] }

WASM Support

This crate supports wasm32 targets with the getrandom/js feature automatically enabled.

Related Crates

License

Apache-2.0