ecc_load_key(
key_file) ->key_obj,err
Load an ECC key object from a JWK file
Reads an RFC 7517 P-256 JWK file, or a legacy { x, y, d, pub } file
without kty and crv, and returns a key object table with raw binary
fields: private, public, x, y, and optionally kid.
Derives public as "\4" .. x .. y when pub is absent; when pub
is present, it must match "\4" .. x .. y. Returns nil and a reason on
unreadable files, invalid JSON, unsupported kty or crv, or missing
or malformed fields.