Module jwk

Source
Expand description

JSON Web Key (JWK) generation and management. JSON Web Key (JWK) generation and management for AT Protocol OAuth.

Provides functionality for creating and managing JSON Web Keys with AT Protocol-specific algorithm mappings. Supports bidirectional conversion between atproto-identity key data and JWK format with proper algorithm identifiers for P-256 (ES256), P-384 (ES384), and K-256 (ES256K) elliptic curves.

Structs§

WrappedJsonWebKey
A wrapped JSON Web Key with additional metadata.
WrappedJsonWebKeySet
A set of JSON Web Keys.

Functions§

generate
Generate a WrappedJsonWebKey from KeyData.
thumbprint
Calculate the JWK thumbprint according to RFC 7638.
to_key_data
Convert a WrappedJsonWebKey to KeyData.