Skip to main content

Crate affinidi_crypto

Crate affinidi_crypto 

Source
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)

Modules§

ed25519
Ed25519 and X25519 key operations
p256
P-256 (secp256r1/prime256v1) key operations
p384
P-384 (secp384r1) key operations
secp256k1
secp256k1 key operations

Structs§

ECParams
Elliptic Curve parameters (P-256, P-384, secp256k1)
JWK
RFC 7517 JWK Struct
OctectParams
Octet Key Pair parameters (Ed25519, X25519)

Enums§

CryptoError
KeyType
Known cryptographic key types
Params
JWK Key Types and associated Parameters