tessl install tessl/pypi-josepy@2.1.0JOSE protocol implementation in Python with support for JSON Web Algorithms, Keys, and Signatures
Agent Success
Agent success rate when using this tile
73%
Improvement
Agent success rate improvement when using this tile compared to baseline
1.16x
Baseline
Agent success rate without this tile
63%
{
"context": "Evaluates whether the solution relies on josepy’s JWK helpers to load RSA, EC, and octet keys, emit proper JWK JSON, and compute RFC 7638 thumbprints for the provided sample material. Emphasis is on exercising the library’s loaders, public_key views, JSON helpers, and thumbprint routines rather than reimplementing crypto logic.",
"type": "weighted_checklist",
"checklist": [
{
"name": "RSA load",
"description": "Parses the provided PKCS#8 RSA PEM using josepy.JWKRSA.load (or JWK.load) and uses the returned JWKRSA fields—including CRT parameters—rather than hand-derived values.",
"max_score": 25
},
{
"name": "EC load",
"description": "Uses josepy.JWKEC.load (or JWK.load) to import the P-256 PEM and relies on the resulting JWKEC for crv/x/y/d values and public_key() extraction instead of manual coordinate handling.",
"max_score": 25
},
{
"name": "Oct key",
"description": "Constructs the symmetric JWK via josepy.JWKOct (e.g., JWKOct(key=...)) and lets josepy handle base64url normalization for the k member instead of crafting it manually.",
"max_score": 15
},
{
"name": "Thumbprints",
"description": "Computes RFC 7638 thumbprints by calling .thumbprint() on the josepy JWK instances (RSA/EC/oct) and matches the expected values without reimplementing the hashing/JSON normalization.",
"max_score": 25
},
{
"name": "JWK JSON",
"description": "Serializes JWKs through josepy’s JSON helpers (e.g., json_dumps() or to_partial_json()) with the required indent/compact options rather than ad-hoc JSON assembly.",
"max_score": 10
}
]
}