Skip to content

Commit 7fe7f32

Browse files
vvillait88claude
andcommitted
docs(identity): fix sign_ucp_profile docstring example constructor
The example used `UCPSigningKey(**key.public_jwk)`, which raises TypeError because UCPSigningKey only accepts kid/kty/alg/use/crv/extras (the JWK `x`/`y` fields belong in extras). Switch to the `UCPSigningKey.from_jwk(...)` classmethod, matching the runnable example in examples/signed_ucp_merchant.py. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 3013392 commit 7fe7f32

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

agentscore_commerce/identity/ucp_jwks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ def sign_ucp_profile(
260260
261261
Example::
262262
263-
profile = build_ucp_profile(..., signing_keys=[UCPSigningKey(**key.public_jwk)])
263+
profile = build_ucp_profile(..., signing_keys=[UCPSigningKey.from_jwk(key.public_jwk)])
264264
signed = sign_ucp_profile(profile.to_dict(), signing_key=key.private_key, kid='merchant-2026-05')
265265
"""
266266
_load_joserfc()

0 commit comments

Comments
 (0)