jose.jwk.from_ecc

jose.jwk

from_ecc(key_obj) -> key, err

Build an EC key from a crypto P-256 key object

Takes the { private, public, x, y } table crypto.ecc_generate_key and crypto.ecc_load_key return. A kid on the object is not copied: an ACME account's kid is its URL, which goes in a header and never beside a jwk (RFC 8555 §6.2).